RS-232 Weird 8 Relay Controller Help!

jmcdonald4

New elf
Joined
Dec 7, 2010
Messages
10
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,
 

David_AVD

Bite my shiny metal ass!
Community project designer
Generous elf
Joined
Jun 12, 2010
Messages
4,082
Location
Victoria Point (Brisbane)
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?
 

justinj

Apprentice elf
Joined
Aug 14, 2011
Messages
88
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
 

Attachments

jmcdonald4

New elf
Joined
Dec 7, 2010
Messages
10
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,
 

newaisa

New elf
Joined
Sep 5, 2011
Messages
20
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.
 

BradsXmasLights

WiFi Interactive
Joined
Dec 23, 2010
Messages
575
Location
Brisbane, Australia
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.
 
Top