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.
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)
@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.
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.
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.
That'll do it....good eyesight....
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?
@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.