RFM LCD End Node (4-Pin I2C Interface) Mar 20, 2017 20:52:38 GMT
Post by papa on Mar 20, 2017 20:52:38 GMT
An RFM69 LCD End Node (4-Pin I2C Interface)
Thread Updated March 31, 2019 for
At Least openHAB 2.5.0.M1, MQTT 2.x Binding, & the Embedded MQTT Broker
Needed in order for the following to work: See this thread on achieving an RFM69 Gateway & RFM69 nodes. See this thread on installing openHAB/MQTT on a local network-connected computer.
Computourist's RFM_LCD_node_21.ino is for an LCD with 12 pin connections to the Arduino. It's two buttons could not be used in DEBUG mode because they both use D0 & D1. I adapted the sketch code (& a necessary library) to an LCD with an ONLY 4-pin I2C interface & included it in my multi-choice end node sketch.
^^ Front & back, my LCD & I2C serial interface look similar to this, sold here. As you see it is 4 rows by 20 columns & the I2C interface is labelled YwRobot Arduino LCM1602 IIC VI. Here's another from a U.S. vendor I like that may also work in a similar way.
Key to getting this work is downloading & installing a large collection of LCD library files, the New LiquidCrystal Library by Francisco Malpartida. One possible hitch is if several New LiquidCrystal library files (including two we need) use the term DATA that conflicts with the RFM69 library's use. I believe that may no longer be the case. However, if the conflict is still there, you need to use a Linux text editor or Notepad++ to replace DATA (all caps, match case) with INFO.
The following assumes one has these working: OpenHAB, MQTT, & computourist-style gateway. (I believe a ESP8266 wifi node could also be used without a gateway.) This thread could help with that, if needed.