16*2 LCD showing first 12 letters only

Hi there,

I am pretty new. I think this is hardware issue but wanted to check in case I am missing anything.

I connected a 16*2 LCD display with the following code;

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 7, 6, 5, 4);

void setup() {
lcd.begin(16, 2);
lcd.print("1234567890123456");
lcd.setCursor(0, 1);
lcd.print("1234567890123456");

}

void loop() {

}

LCD screen is showing only 123456789012 in both lines.

Anything I am missing?

Thanks.

A new info, if I disconnect arduino completely from electricty and connect again, rightmost 4 letter boxes in both lines become completely white for 5-6 seconds, then they become empty. It doesnt happen if I reset or upload new code.

It's looking very much like a dud display, isn't it? :astonished:

By the way, as I always explain, you should not connect the potentiometer to 5 V, only the wiper to pin 3 - "Vo" and ground. This is just a general correction to a longstanding error in designs. Not related to your problem. :roll_eyes:

Paul__B:
It's looking very much like a dud display, isn't it? :astonished:

By the way, as I always explain, you should not connect the potentiometer to 5 V, only the wiper to pin 3 - "Vo" and ground. This is just a general correction to a longstanding error in designs. Not related to your problem. :roll_eyes:

Noted, thanks. I did copy what was written on the example yet it works just fine the way you said.

Display is almost dead now. The second line is completely dead and the first line shows what second line should :slight_smile: A new display is needed :smiley: