USB-RJ12-8X8-5V (SET OF 2)
Features:
The Controller (BrightSign or other controller) has to send a single byte to control the 8 outputs. The bits of an 8 bit byte controls the 8 outputs.
At any time, the Brightsign sends out the 'Set Port Byte', then the outputs will turn on according to the bit pattern of the 'Port Byte'. I.E. Bit 0 of the byte set to '1', will control output 1. Bit 7 of the byte set to '1' will turn on control output 8.
I.E. To control the outputs, send the byte that represents the bits of the lights (see table below). The single byte turns on/off the LED's according to the bits and option 2 setting.
Option 2 (OFF) The port byte is not inverted. So sending a binary '1' turn on the output 1
Option 2 (ON) The port byte is inverted. So that sending a binary '1' turns off the output 1
Just add the decimal numbers together to get the bits set that you want. Setting all bits is 255d (decimal). Setting bits 0 and 7 is 128+1 or 129 decimal
As inputs are closed, a string representing inputs 1 to 8 is sent (2 bytes). I.E. "1",13 (ascii 1 followed by a carriage return for input 1 closure. This way the BrightSign will respond to the inputs after a carriage return.
When all inputs are released, a 'zero string' is sent. I.E. "0",13 (ascii 0 followed by a carriage return
Options:
Option 1 does a cycle diagnostic (cycles the outputs and sends decimal 170 to the BrightSign
Option 2 'OFF' passes the port byte to the outputs. So that bits that = 1 turns on the light
Option 2 ON inverts the port byte so that bits = 1 turns off the light
Note: It is highly recommended that you use a 'serial port terminal' with your computer to get familiar with the operation of the board
LINK: RJ12 Cables |
Author: Richard Harkey
Revised: August 17, 2024