# Lcd 2004A Show nothing with I2C

**URL:** <https://forum.arduino.cc/t/lcd-2004a-show-nothing-with-i2c/1253385>\
**Category:** Displays\
**Created:** [April 28, 2024, 11:25pm UTC](https://forum.arduino.cc/t/lcd-2004a-show-nothing-with-i2c/1253385 "2024-04-28T23:25:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fatard20](https://avatars.discourse-cdn.com/v4/letter/f/958977/32.png) [@fatard20](https://forum.arduino.cc/u/fatard20)\
**Post date:** [April 28, 2024, 11:25pm UTC](https://forum.arduino.cc/t/lcd-2004a-show-nothing-with-i2c/1253385/1 "2024-04-28T23:25:02Z")

</div>

Hello  
I have a problem with the screen. Before adding I2C, it was working well. After adding I2C, it became as you see, even though I put the necessary libraries and the linking is correct. I even tried all the necessary addresses. Note that the screen is 20×04. Where is the problem?

 ![FB_IMG_1714346390822](https://europe1.discourse-cdn.com/arduino/original/4X/3/3/6/33642d755bba2a8fa90b30f53f65ae06b9e74f10.jpeg)  
 ![FB_IMG_1714346388239](https://europe1.discourse-cdn.com/arduino/original/4X/6/b/2/6b2f1e4ad0ea52feacaae2ee9fb64ceb3f2ba3c3.jpeg)  
.......  
This is the program I used:

#include \<wire.h\>  
#include \<LiquidCrystal\_I2C.h\>

LiquidCrystal\_I2C lcd(0x27, 20, 4); // I2C address 0x27, 20 column and 4 rows

void setup() {  
lcd.init(); // initialize the lcd  
lcd.backlight();

lcd.setCursor(0, 0); // move cursor the first row  
lcd.print("LCD 20x4"); // print message at the first row  
lcd.setCursor(0, 1); // move cursor to the second row  
lcd.print("I2C Address: 0x27"); // print message at the second row  
lcd.setCursor(0, 2); // move cursor to the third row  
lcd.print("hello,wolrd");  
}

void loop() {  
}

---

<div class="post-metadata">

**Author:** ![groundFungus](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@groundFungus](https://forum.arduino.cc/u/groundFungus)\
**Post date:** [April 28, 2024, 11:40pm UTC](https://forum.arduino.cc/t/lcd-2004a-show-nothing-with-i2c/1253385/2 "2024-04-28T23:40:46Z")

</div>

You could try address0x3f.

Better yet, install and use [the hd44780 library.](https://github.com/duinoWitchery/hd44780)

The library is available to install through the IDE library manager.

The library will automatically determine the I2C address and backpack to LCD pin mapping.

If you have trouble, [there is a diagnostic.](https://github.com/duinoWitchery/hd44780/tree/master/examples/ioClass/hd44780_I2Cexp/I2CexpDiag)

There is[lots of documentation.](https://github.com/duinoWitchery/hd44780/tree/master/examples/Documentation)

Read the how to get the best from the forum to see how to properly post code.

> [@How to get the best out of this forum](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966):
>
> See also [FAQ - Arduino Forum](https://forum.arduino.cc/faq) for general rules on forum behavior and etiquette. Hello, Welcome to the Arduino Forum. This guide explains how to get the best out of this forum. Please read and follow the instructions below. Being new here you might think this is having rules for the sake of rules, but that is not the case. If you don’t follow the guidelines all that happens is there is a long exchange of posts while we try to get you to tell us what we need in order to help you, which is frus…

---

<div class="post-metadata">

**Author:** ![fatard20](https://avatars.discourse-cdn.com/v4/letter/f/958977/32.png) [@fatard20](https://forum.arduino.cc/u/fatard20)\
**Post date:** [April 29, 2024, 5:19am UTC](https://forum.arduino.cc/t/lcd-2004a-show-nothing-with-i2c/1253385/3 "2024-04-29T05:19:15Z")

</div>

Yes, I used that title I used all possible addresses but it did not work I searched and found that it might be a compatibility issue i2c  
And 2004A I found that there are two types of screen: Type A and Type B and each type corresponds I2c Dedicated to him, noting that my screen is type A. I could not find a type I2c Dedicated to her!!

---

<div class="post-metadata">

**Author:** ![groundFungus](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@groundFungus](https://forum.arduino.cc/u/groundFungus)\
**Post date:** [April 29, 2024, 7:19am UTC](https://forum.arduino.cc/t/lcd-2004a-show-nothing-with-i2c/1253385/4 "2024-04-29T07:19:09Z")

</div>

I have used many such LCD I2C enabled displays and have not found, even, one functional display that did not work with the hd44780 library.

Please run the diagnostic sketch and post the tesults. @bperrybap (library author) may see the result and have an answer quickly.

---

<div class="post-metadata">

**Author:** ![bperrybap](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/bperrybap/32/605367_2.png) [@bperrybap](https://forum.arduino.cc/u/bperrybap)\
**Post date:** [April 29, 2024, 12:30pm UTC](https://forum.arduino.cc/t/lcd-2004a-show-nothing-with-i2c/1253385/5 "2024-04-29T12:30:00Z")

</div>

Plain and simple the library is not properly communicating with the LCD.  
Because of this, the LCD is remaining in the default power on state.  
This could be caused by multiple issues, the most common being  
using incorrect address, wiring/soldering issues.

We don't know what arduino board you are using or how you have wired it up or if you might have a 3v vs 5v logic issue.  
We don't know what library you are using.  
So lots of unknowns.

There is the possibility that the backpack design that you have is not compatible with the "LiquidCrystal\_I2C" library you are using.  
note: there are many different "LiquidCrystal\_I2C" libraries out there, we don't know which one you used.  
Nearly all of them are hardcoded for one of the 5 different backpack designs out there.  
If there is a mismatch, between the library and the backpack design then the library cannot properly communicate with the LCD even if the i2c address specified is correct.

The other possibility is that there is an issue with the backpack.  
While it does happen from time to time, it is quite rare.

The simplest thing to do is install the hd44780 library and run the included I2CexpDiag sketch in the hd44780\_I2Cexp i/o class and see if can detect any issues.

The hd44780 library is the only library that will automatically locate the i2c address _and_ automatically detect the pin wiring used between the PCF8574 chip and the LCD.

Here is a link to the hd44780 library wiki for the hd44780 library hd44780\_I2Cexp i/o class:  
[https://github.com/duinoWitchery/hd44780/wiki/ioClass:-hd44780\_I2Cexp](https://github.com/duinoWitchery/hd44780/wiki/ioClass:-hd44780_I2Cexp)

--- bill

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [October 26, 2024, 12:30pm UTC](https://forum.arduino.cc/t/lcd-2004a-show-nothing-with-i2c/1253385/6 "2024-10-26T12:30:40Z")

</div>

Closed on October 26, 2024, 12:30pm UTC

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