Beginner Arduino User - 16x2 LCD not displaying any text

Hello All, I am an absolute beginner Arduino user and trying to follow a few online tutorials to learn Arduino.

I'm working on this YouTube tutorial to create text on an LCD display (from Arduino ELEGO Starter Kit). Arduino Tutorial 48: Connecting and Using an LCD Display - YouTube

I have followed the exact same steps, checked the connections multiple times, but my LCD display doesn't seem to display text when I run my code. Below is the code that I'm trying to run with no success:


#include <LiquidCrystal.h>
int rs=7;
int en=8;
int d4=9;
int d5=10;
int d6=11;
int d7=12;
LiquidCrystal lcd(rs,en,d4,d5,d6,d7);
void setup() {
  // put your setup code here, to run once:
lcd.begin(16,2);
}

void loop() {
  lcd.setCursor(0,0);
  lcd.print("Hello World");
  delay(1000);
  lcd.setCursor(0,0);
  lcd.print("My Name is Paul");
  delay(1000);
  lcd.clear();
}

I have also attached an image of my setup below. As you can see, I don't even see the rectangular blocks on my LCD. I have tried rotating the potentiometer knob as well, but no luck. Sorry, I know it's messy as I don't currently have smaller jumper wires. However, the LCD display lights up when I complete all connections so I am confident I connected the wires exactly as shown in the video (I have checked it multiple times)

Okey. Schematics had been nice but we see what we can do from here.
Number 1). Have You used the adjustment of contrast screw? Else do that! All LCD I've seen has one. Full swing from end to end all white or all black squares but somewhere between, the characters.
You power the build from USB. That's good enough for this build.
That code should work but I don't know that library, how to start it, giving pin numbers and so on.

Very hard to see how it's connected in that photo.

Can you take a couple more... closer if possible, and spread the jumpers out a bit so it's easier to see where they are plugged in.

Check the positive and negative rails on your breadboard.
Some breadboards are not continuous from one end to the other and require extra jumpers.

I have found that particular youtube channel to be confusing at times.
There are many others.

Hi @Railroader Thanks for replying. If you follow the link below from the author's website, the full schematics are shown in one image:

https://toptechboy.com/arduino-tutorial-48-connecting-and-using-an-lcd-display/

Oh, sorry for the dumb question, but do you mean contrast screws on the corners of LCD? The ELEGO Kit I bought has this LCD and no screws at its corners (image below)

@red_car I tried to take a couple of close-up pictures. Sorry, I've been finding it difficult to spread the jumpers. they just came back to their original position (wish I had shorter ones at my disposal)

@red_car

@bluejets that's interesting. I've been following tutorials over a month using this breadboard, and I didn't have any issues with the +ve and -ve rails on my breadboard so far.

So if you have a multimeter, it's a fairly simple process to confirm one way or the other.
Any continuity test would suffice.

Hi,

What is meant is, have you tried adjusting the trim pot you have on the Protoboard, it adjusts the contrast of the display.

Thanks,, Tom... :smiley: :+1: :coffee: :australia:

Ahh, my bad. Thanks for clarifying @TomGeorge

Yes, as I wrote in my original post, I've tried turning the potentiometer knob to adjust the contrast of the LCD, but the LCD display remains the same. In fact, that was the first thing I tried (even the video tutorial suggested the same)

Try taking a look in the "Displays" section of the forum. There have been at least two threads dealing with problems similar to yours in the past week or so.

You might want to request a moderator to move this thread over there. There's a "flag" icon with which to do this.

Don

Hi,
I can see the jumper +5v for the background LED, I can see the jumper 5+ to top of potentiometer.
But I cannot see a jumper 5+ to Vss or input power supply to the LCD module.

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

1 Like

Is the pot tested as working....????

That'll do it....good eyesight.... :grinning:
Then again...maybe not...very confusing with breadboards and jumpers that seem to go everywhere but where they are supposed to.......
"orange wire bottom" .....

My bets are on that pot....looks like out of an old tv or whatever...could be dodgy

Ahh, I see. Not sure if this is progress. But I just replaced the pot with a different one. I am now able to see the rectangles on the LCD screen, the display isn't blank anymore.

I tried adjusting the knob, but the text still doesn't appear.

@TomGeorge Oh, Vss input? I have shown a clearer image below. The red jumper wire from LCD's VSS goes to the negative rail. I'm exactly following the connection shown in the video. Am I missing something?

No thank You. You do the work digging up data. You use time to pinpoint needed information, not hepers.

Looks more promising.....ok

Check all those jumper wires for good connection and correct placement.
Looks like you're missing some data now.

Did the program upload without any errors to your Uno.?

Perhaps try uploading the basic one from within the IDE.
To allow that you will need to change some of the connections on your Arduino to suit.

File...examples.....LiquidCrystal......Hello World

@bluejets Thank you, it finally works now. I had to rigorously adjust the jumper wires for the display to show text. All connections were correct and there was no missing wire, thankfully.

Thanks for the help.