Pages

8 Channel Relay Module USBRLY08



Overview
The USB-RLY08 provides eight volt free contact relay outputs with a current rating of up to 1Amp each. It is powered from any standard USB bus and has an exceptionally low maximum current consumption of approx. 90mA with all relays on. The relays are SPCO (Single Pole Change Over) types. The normally open, normally closed and common pins are all available on the screw terminals.

LED indication
The USB-RLY08 provides a red LED mounted immediately next to each relay to indicate whether it is in a powered state (LED on), there is also two LED's which will flash with USB transactions to and from the module, green indicating reception of data from the PC and yellow the transmission of data to the PC. Finally there is red power LED mounted on the opposite side of the board to the USB connector.

Relay power rating
If the contact load voltage and current of the relay are in the region enclosed by the solid and dotted lines in the figure below, the relay can perform stable switching operation. If the relay is used at a voltage or current exceeding this region, the life of the contacts may be significantly shortened.

First Step - Get The Drivers
The USB-RLY08 module uses the FTDI FT232R USB chip to handle all the USB protocols. The documentation provided by FTDI is very complete, and is not duplicated here. Before using the USB-RLY08, you will need to install FTDI's Virtual COM Port ( VCP ) Drivers. These drivers appear to the system as an extra Com Port ( in addition to any existing hardware Com Ports ). Application software accesses the USB device in the same way as it would access a standard Windows Com Port using the Windows VCOMM API calls or by using a Com Port Library. Drivers are available for Windows, Apple, Linux and Open BSD systems directly from the FTDI website. You should get and install the drivers now, before you connect the USB RLY08 to your computer. The Drivers page is here.

Which COM port?
After installing the drivers, and plugging in the USB-RLY08 module to a spare USB port, you will want to know which COM port it has been assigned to. This will vary from system to system depending on how many COM ports you currently have installed. To find out where it is, right click on your "My Computer" desktop icon and select the "Device Manager" tab. Now scroll down and open the "Ports (COM & LPT)" tab. You should see the USB serial port listed - COM2 in the example below. If you want to change the COM port number - just right click on it, select properties, select advanced and select the COM port number from the available list. The COM port should be set up for 19200 baud, 8 data bits, no parity and two stop bits.


Commands
The USB-RLY08 operates with an easy to use command set as described in the table below. Most commands are only a single byte and if applicable the USB-RLY08 will automatically send its response. The only exception to this being the "Set relay states" command which requires and additional desired states byte to be sent immediately after the command byte.

Test program and example source code

To get the USB-RLY08 up and running in the minimum amount of time we have put together an example program to demonstrate the functionality of the module.

0 comments:

Post a Comment