# Need help with displaying text on a LCD 16x2

**URL:** <https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046>\
**Category:** Displays\
**Created:** [October 28, 2024, 11:36am UTC](https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046 "2024-10-28T11:36:55Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![9andreidevloper](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/9andreidevloper/32/1075270_2.png) [@9andreidevloper](https://forum.arduino.cc/u/9andreidevloper)\
**Post date:** [October 28, 2024, 11:36am UTC](https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046/1 "2024-10-28T11:36:56Z")

</div>

Hello everyone,

I'm having trouble getting my 16x2 LCD to display text using my Arduino UNO. Right now, the screen just lights up blue, and absolutely nothing is displayed.

Here’s how I’ve connected the wires:

- **GND from LCD** ➔ **GND on Arduino**
- **VCC from LCD** ➔ **5V on Arduino**
- **SDA from LCD** ➔ **A4 on Arduino**
- **SCL from LCD** ➔ **A5 on Arduino**

I’ve double-checked my connections, and both the Arduino and the LCD appear to be functioning properly, but I can’t get the LCD to show "Hello World" or anything else.

If anyone has any suggestions or troubleshooting tips, I would greatly appreciate your help!

This is my code:

```arduino
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 16, 2); 

void setup() {
  lcd.begin(16, 2);
  lcd.backlight(); 
  lcd.setCursor(0, 0);  
  lcd.print("Hello World"); 
}

void loop() {
}

```

---

<div class="post-metadata">

**Author:** ![SurferTim](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/surfertim/32/1072341_2.png) [@SurferTim](https://forum.arduino.cc/u/SurferTim)\
**Post date:** [October 28, 2024, 11:41am UTC](https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046/2 "2024-10-28T11:41:27Z")

</div>

Is there a blue pot on the display driver?  
If so, you might want to adjust it. That is the contrast control.  
Did you run the i2c scanner sketch? Are you certain the address is 0x27?

Edit: I should have seen this right away. Don't use this:  
` lcd.begin(16, 2);`  
Use this:  
`lcd.init();`

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [October 28, 2024, 11:46am UTC](https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046/3 "2024-10-28T11:46:18Z")

</div>

Topic moved !! Please do not post in "Uncategorized"; see the sticky topics in [Uncategorized - Arduino Forum](https://forum.arduino.cc/c/using-arduino/uncategorized/184).

---

<div class="post-metadata">

**Author:** ![9andreidevloper](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/9andreidevloper/32/1075270_2.png) [@9andreidevloper](https://forum.arduino.cc/u/9andreidevloper)\
**Post date:** [October 28, 2024, 11:49am UTC](https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046/4 "2024-10-28T11:49:29Z")

</div>

Yes,on the back there is a blue potentiometer ont he back,how do i adjust it?

---

<div class="post-metadata">

**Author:** ![SurferTim](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/surfertim/32/1072341_2.png) [@SurferTim](https://forum.arduino.cc/u/SurferTim)\
**Post date:** [October 28, 2024, 11:50am UTC](https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046/5 "2024-10-28T11:50:15Z")

</div>

First try the code change. Mine won't work with the lcd.begin() call. It needs lcd.init().

---

<div class="post-metadata">

**Author:** ![9andreidevloper](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/9andreidevloper/32/1075270_2.png) [@9andreidevloper](https://forum.arduino.cc/u/9andreidevloper)\
**Post date:** [October 28, 2024, 11:51am UTC](https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046/6 "2024-10-28T11:51:15Z")

</div>

it doesnt work with lcd.init()Still shows empty blue screen

---

<div class="post-metadata">

**Author:** ![SurferTim](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/surfertim/32/1072341_2.png) [@SurferTim](https://forum.arduino.cc/u/SurferTim)\
**Post date:** [October 28, 2024, 11:52am UTC](https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046/7 "2024-10-28T11:52:51Z")

</div>

Are you certain the i2c address is 0x27? i2c\_scanner sketch should show that.  
If that doesn't work, then adjust the screw on the blue pot with a small screwdriver.

---

<div class="post-metadata">

**Author:** ![9andreidevloper](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/9andreidevloper/32/1075270_2.png) [@9andreidevloper](https://forum.arduino.cc/u/9andreidevloper)\
**Post date:** [October 28, 2024, 11:55am UTC](https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046/8 "2024-10-28T11:55:04Z")

</div>

i tested,and it is 0,27 address

---

<div class="post-metadata">

**Author:** ![SurferTim](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/surfertim/32/1072341_2.png) [@SurferTim](https://forum.arduino.cc/u/SurferTim)\
**Post date:** [October 28, 2024, 11:57am UTC](https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046/9 "2024-10-28T11:57:22Z")

</div>

Try adjusting the blue potentiometer.  
Are you certain the LCD driver board is connected correctly both ways?  
Jumpers connected to the Arduino are correct?  
The driver to the display is soldered correctly? Can't be just pushed in.

---

<div class="post-metadata">

**Author:** ![david\_2018](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/david_2018/32/1013044_2.png) [@david\_2018](https://forum.arduino.cc/u/david_2018)\
**Post date:** [October 28, 2024, 12:01pm UTC](https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046/10 "2024-10-28T12:01:46Z")

</div>

Using the IDE library manager, install the hd44780 library by Bill Perry.

Run the example sketch at File \> Examples \> hd44780 \> ioClass \> hd44780\_I2Cexp \> I2CexpDiag

See what the sketch outputs onto the serial monitor.

---

<div class="post-metadata">

**Author:** ![9andreidevloper](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/9andreidevloper/32/1075270_2.png) [@9andreidevloper](https://forum.arduino.cc/u/9andreidevloper)\
**Post date:** [October 28, 2024, 12:02pm UTC](https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046/11 "2024-10-28T12:02:46Z")

</div>

ill try to adjust the potentiometer

---

<div class="post-metadata">

**Author:** ![SurferTim](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/surfertim/32/1072341_2.png) [@SurferTim](https://forum.arduino.cc/u/SurferTim)\
**Post date:** [October 28, 2024, 12:05pm UTC](https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046/12 "2024-10-28T12:05:03Z")

</div>

Try that.

The driver board is soldered to the display, correct?  
Some come separate and expect the user to connect them. They can't just be pushed together. It must be soldered. Just checking.

---

<div class="post-metadata">

**Author:** ![9andreidevloper](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/9andreidevloper/32/1075270_2.png) [@9andreidevloper](https://forum.arduino.cc/u/9andreidevloper)\
**Post date:** [October 28, 2024, 12:12pm UTC](https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046/13 "2024-10-28T12:12:56Z")

</div>

Yes it works,thanks bud

---

<div class="post-metadata">

**Author:** ![SurferTim](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/surfertim/32/1072341_2.png) [@SurferTim](https://forum.arduino.cc/u/SurferTim)\
**Post date:** [October 28, 2024, 12:13pm UTC](https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046/14 "2024-10-28T12:13:23Z")

</div>

You are very welcome! Have fun!

---

<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:** [April 26, 2025, 12:13pm UTC](https://forum.arduino.cc/t/need-help-with-displaying-text-on-a-lcd-16x2/1316046/15 "2025-04-26T12:13:58Z")

</div>

Closed on April 26, 2025, 12:13pm UTC

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