1. New to Christmas lighting? Get started with the AusChristmasLighting 101 Manual:
    auschristmaslighting.com/wiki/AusChristmasLighting-101

RS-232 Weird 8 Relay Controller Help!

Discussion in 'Computers, Cabling & Other Miscellaneous Hardware' started by jmcdonald4, Nov 8, 2011.

  1. jmcdonald4

    jmcdonald4 New Elf

    Joined:
    Dec 7, 2010
    Messages:
    10
    Likes Received:
    0
    Location:
    Glenmore Park, NSW
    Hi all,


    Just as a little experiment I purchased an 8 relay opto-isolated serial board off ebay, I received it today and to no surprise it didn't come with any documentation.

    This is the board I purchased: http://www.ebay.com/itm/ws/eBayISAPI.dll?ViewItem&item=170703229148&ssPageName=ADME:X:AAQ:US:1123

    It's not a big deal but I was wondering if anybody had an idea of how to use is with Vixen if possible, I for the life of me couldn't work out how to write a plugin :D

    The main IC on the board reads the following:

    89C52RC
    40-1-PDIP
    1108RK8388-00D

    Any ideas? Is it even possible to use with Vixen? Not much information about the board is provided, I've attempted to contact the seller with no response as of yet. It's just an experiment, I wont be using it for anything serious.

    Thanks,
     
  2. David_AVD

    David_AVD Bite my shiny metal ass!

    Joined:
    Jun 12, 2010
    Messages:
    3,412
    Likes Received:
    43
    Location:
    Victoria Point (Brisbane)
    Find Me On:
    Going from the (lack of) info in that eBay listing, it's unclear if the board will do anything without someone writing the code for the microcontroller. It says "development board" in one part, which can imply that it's just the hardware.

    Maybe chase the seller to see if they have a demo program to make it run?
     
  3. OP
    OP
    jmcdonald4

    jmcdonald4 New Elf

    Joined:
    Dec 7, 2010
    Messages:
    10
    Likes Received:
    0
    Location:
    Glenmore Park, NSW
    Ok thanks for that, I'll try my luck in chasing the seller. :D

    Thanks,
     
  4. justinj

    justinj Apprentice Elf

    Joined:
    Aug 14, 2011
    Messages:
    88
    Likes Received:
    0
    Location:
    Pakenham, Victoria
    Try this attached example. Extract to a folder somewhere, look at what com port windows assigns to your relay and then edit test.bat and replace com3 with whatever com port number yours is.
    Edit: Don't touch the 4 .data files only the .bat
     

    Attached Files:

    • test.zip
      File size:
      739 bytes
      Views:
      7
  5. OP
    OP
    jmcdonald4

    jmcdonald4 New Elf

    Joined:
    Dec 7, 2010
    Messages:
    10
    Likes Received:
    0
    Location:
    Glenmore Park, NSW
    Thanks for the replys guys, I managed to get into contact with the seller and he has provided me with a demo program which turns the relays on and off successfully. Along with the program he sent me this file with some development information in it, it reads as follows;

    Code:
    
    1, Basic agreement£º
      Baud rate£º9600 
      Stop bits£º1
      Parity£º No
      Data bits£º8bit
    
    
    2£©Communication protocol£º
      Relay1 Open£º4F 28 30 30 2C 30 30 31 2C 31 29
      Relay2 Open£º4F 28 30 30 2C 30 30 32 2C 31 29
      Relay3 Open£º4F 28 30 30 2C 30 30 33 2C 31 29
      Relay4 Open£º4F 28 30 30 2C 30 30 34 2C 31 29
      Relay5 Open£º4F 28 30 30 2C 30 30 35 2C 31 29
      Relay6 Open£º4F 28 30 30 2C 30 30 36 2C 31 29
      Relay7 Open£º4F 28 30 30 2C 30 30 37 2C 31 29
      Relay8 Open£º4F 28 30 30 2C 30 30 38 2C 31 29
    
    
      Relay1 Shut£º4F 28 30 30 2C 30 30 31 2C 30 29
      Relay2 Shut£º4F 28 30 30 2C 30 30 32 2C 30 29
      Relay3 Shut£º4F 28 30 30 2C 30 30 33 2C 30 29
      Relay4 Shut£º4F 28 30 30 2C 30 30 34 2C 30 29
      Relay5 Shut£º4F 28 30 30 2C 30 30 35 2C 30 29
      Relay6 Shut£º4F 28 30 30 2C 30 30 36 2C 30 29
      Relay7 Shut£º4F 28 30 30 2C 30 30 37 2C 30 29
      Relay8 Shut£º4F 28 30 30 2C 30 30 38 2C 30 29  
    
    
    Note£ºSwitch according to the command of the relay communication protocol operation, ordered a 11 the length of bytes hexadecimal data
    Is there any way someone could teach me to make a plugin for vixen or make one for me if it's even possible with this information?

    Thanks in advance,
     
  6. newaisa

    newaisa New Elf

    Joined:
    Sep 5, 2011
    Messages:
    20
    Likes Received:
    0
    seems like a nice board. Anyway I am just curious about something, is relay meant to be used for high speed switching such as PWM?


    sorry if it's a silly question since i generally see PWM is used with FET or Transistor.
     
  7. BradsXmasLights

    BradsXmasLights WiFi Interactive

    Joined:
    Dec 23, 2010
    Messages:
    502
    Likes Received:
    8
    Location:
    Brisbane, Australia
    Find Me On:
    Nope, Relays are mechanical and thus slow and prone to thus failure too.
    You want solid state based switching - eg: Triac based - for high speed switching/dimming.
     

Share This Page