# Can't make a 16x2 LCD Display work with Node-RED

**URL:** https://discourse.nodered.org/t/cant-make-a-16x2-lcd-display-work-with-node-red/37400
**Category:** General
**Created:** [12 December 2020 14:54 UTC](https://discourse.nodered.org/t/cant-make-a-16x2-lcd-display-work-with-node-red/37400 "2020-12-12T14:54:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![danilo-lorenzo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/danilo-lorenzo/32/33481_2.png) [@danilo-lorenzo](https://discourse.nodered.org/u/danilo-lorenzo)
#### Post date: [12 December 2020 14:54 UTC](https://discourse.nodered.org/t/cant-make-a-16x2-lcd-display-work-with-node-red/37400/1 "2020-12-12T14:54:44Z")

</div>

Hello guys,

I'm new to this Node-RED world and i'm simply in love with it 🙂. However i really need some help.

I would like to use a 1602 display with my Raspberry via Node-RED. I've tried doing this with three libraries:

1. [node-red-contrib-i2clcd](https://github.com/johnty/node-red-contrib-i2clcd)
2. [node-red-contrib-i2c-lcd-adafruit-sainsmart](https://flows.nodered.org/node/node-red-contrib-i2c-lcd-adafruit-sainsmart)
3. [node-red-contrib-lcd](https://flows.nodered.org/node/node-red-contrib-lcd)

The first library didn't work at all for me, i did exactly the steps mentioned in the " Install Instructions:", but the node doesn't appear in my Node-RED nodes

The second library uses I²C Serial communication, and i used a 1602 display with a I²C module with it. I know that the hardware is OK because i can easily program it with C++ or Python. However, in Node Red the following happens

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/4/a486610d96c31cb81d596db01329c4ecf348a8ad.png)

When I deploy the code everything seams fine. No erros appear. In the debug output the msg.payload of the first line is shown. But as i look in the Display two diferrent things happen

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/b/0be4a53c8e734d57f3becf8b99336c664985729d.png)

When i set the manufacture to "adafruit". The light of the display becomes very dark and nothing is written:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/0/40db5811c8f08be713145c78c4568f46006dce42.jpeg)

When i set the manufacture to "sainsmart" the opossite occur:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/2/f2bc485c5bf211ab5b39847292603a542c3e6c47.jpeg)

For the last library. I get two sorts of error. First when i send a string:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/2/923759a8128fe9787230f27a8df3cc0a7b26538b.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/b/dbcca60e015794431a5d4b098ee33e39b1ebeb61.png)

And also when i send a number:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/e/de58a991a5d8283dd08f2423ec0320243e80903b.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/a/3aff597539e1a63ee40714691a21f88545bcd71e.png)

The Display node is configured as following:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/8/d8994e2ffef63cb71d2247deb69288c2dd021761.png)

This is my first Topic so i apollogize for the long post; i tried to explain every thing that happened to me. Hope anyone has a clue. Thank you very much for your attention.

P.S. For the last library example i used another 16x2 Display (without the I²C module)

---

<div class="post-metadata">

### Author: ![Brew](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/brew/32/19776_2.png) [@Brew](https://discourse.nodered.org/u/Brew)
#### Post date: [12 December 2020 22:22 UTC](https://discourse.nodered.org/t/cant-make-a-16x2-lcd-display-work-with-node-red/37400/2 "2020-12-12T22:22:53Z")

</div>

Can you prove it by putting your python example scrip on a python function node?

Or can you run the example code from an Exec node to get your self a little step closer?

---

<div class="post-metadata">

### Author: ![danilo-lorenzo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/danilo-lorenzo/32/33481_2.png) [@danilo-lorenzo](https://discourse.nodered.org/u/danilo-lorenzo)
#### Post date: [13 December 2020 14:37 UTC](https://discourse.nodered.org/t/cant-make-a-16x2-lcd-display-work-with-node-red/37400/3 "2020-12-13T14:37:52Z")

</div>

Hello @Brew i can't thank you enough, this worked like a charm 🙂

I put a step by step tutorial in my Github repository so that other people don't waste so much time in this awsome project

> **[danilo-lorenzo/I-C-16x2-Display-with-Node-RED](https://github.com/danilo-lorenzo/I-C-16x2-Display-with-Node-RED)**
>
> Learn how to run a Python code inside Node-RED to write stuff in a 1602 Display

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [27 December 2020 14:38 UTC](https://discourse.nodered.org/t/cant-make-a-16x2-lcd-display-work-with-node-red/37400/4 "2020-12-27T14:38:06Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
