- The i2c library used by dependency i2c-lcd does not compile any more with Node V10.x, so either use V8.x or below, or else feel free to help move this over to a more updated i2c/i2c-lcd library!
A simple node-red node that provides basic control of 1602 LCD's with i2c driver backpacks (using PCF8574P drivers). Based on the i2c-lcd library.
Use topic line1 and line2 to send message payload to each line, and topic init to clear screen. Currently not checking for lengths.
Tested on Raspbian Jessie and should work with all RPi models.
- Raspberry Pi of your choice
- A LCD 1602 panel that has an i2c driver
- i2c-lcd (available in npm repo, but may require a manual compile since the i2c library v0.1.x do not compile on current node versions)
cd ~/.node-red/node_modules
git clone https://github.com/johnty/node-red-contrib-i2clcd
cd ~/.node-red/node_modules/node-red-contrib-i2clcd
npm i
- Designed to work with Infusion System's PiShield where everything is converted to 5V, but should also work directly by connecting directly to the i2c pins
- Should work fine on a larger display (e.g. 2004), but addtional lines are not supported by default
- Super fast updates can cause the display to glitch out, so consider using the Delay node in speed limiting mode if you have input that changes very quickly
- Feel free to suggest new features and corrections!
Johnty Wang ([email protected])
Input Devices and Music Interaction Laboratory
McGill University
In collaboration with Infusion Systems
July 2016