Control an LED sign with Node.js thru the serial port.
- Node.js
- Yarn or npm
- A 3.3V TTL serial port. Tested with CP2102 module.
- Edit serial port in index.js if not ttyUSB0.
- Run
yarn
ornpm install
to install dependencies. - Run
yarn start
ornpm start
to run. Puts "HELLO WORLD!!!" on the sign.
- Connects a TTL 3.3v serial port to the LED sign's J1708 port, e.g.:
- Raspberry Pis
- 3.3v Arduinos
- USB to 3.3V TTL serial adapters. Tested with CP2102 module.
- If you just want to write to the sign, i.e. you don't care about receiving from the sign, the circuit is very simple: one 680 ohm resistor from TXD to A, and one 680 ohm resistor from +3.3V to B.
- Drives one LED sign. To daisy chain you need to modify the resistor divider, i.e. the ones with asterisks.
- circuitjs.txt can be imported at https://www.falstad.com/circuit/