My LCD is not printing anything and my serial monitor is blank. I'm getting very frustrated, please help me

This is the code I'm using:


I'm using an Arduino Uno. Please help me

And this is my Serial Monitor

@divyamgautam, your topic has been moved to a more suitable location on the forum.

No surprise there, you're not printing to the serial monitor.

Please provide a schematic of your connections between the Arduino (which one) and the display; a reasonable sized photo (around 300 kB) of a handdrawn one is OK). Have you adjusted the potentiometer and see if it makes any difference?

Please double check the connections.

Did you try adjusting the contrast pot?

Read the forum guidelines to see how to properly post code.

I'm sorry I'm new here and this is my 2nd day using Arduino in general. What is a contrast pot?

This is the schematic of the connections between my Arduino Uno and LCD. I have checked and re-done my connections twice now but still don't see anything being printed on the LCD

Usually there is a potentiometer connected to pin 3 (Vo) of the LCD. Instead, try a 1K resistor from pin 3 of the LCD to ground to set the contrast.

Hi, @divyamgautam
Welcome to the forum.

Can you please post a picture of your project so we can see your component layout?
Can you please post a picture of the front and back of your LCD screen?

Does your LCD display have a potentiometer on it for contrast?

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

Hey Tom! This is the front of my LCD


And this is the back. I have already uploaded the diagram for my setup and the live setup is very clumsy to look at so I doubt it would be of any help here

Hi,
Have you fitted this component, a potentiometer?
Have you tried adjusting it?

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

Well, at least you have the pins soldered to the LCD module as we not infrequently have people complaining that it is not working when they did not actually connect the header pins! :grinning:

OK, so you need to correct the longstanding mistake in the potentiometer wiring. It should not be connected to 5 V so you need to remove the connections on ether side of what is shown on that diagram as pin "1" of the potentiometer and put a wire directly from the "+" bus on the breadboard, to pin 2 of the LCD module.

Next, power up the Arduino with the reset button held down so that the code does not run. Adjust the contrast control - it will be near one end - until you see this on the display.


Once you have that, the contrast is set correctly and you can release the reset button and see if your code is correct.

Your code is running at the full speed of the processor. You are writing way too fast for the LCD to respond.

For testing I would add a delay(2000) in your code anywhere in the loop() code

Hi,
Have you tried running the Example codes that come with the library?

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

hello tom, u can try printing simple stuff like alphabets first and check whether the lcd is working or not and also this is my personal opinion but instead of labeling each and every pinout for the lcd u can just type the numbers as is in the order and it will still work ,for now try displaying various stuff and work your way up as that's how I did it.

any proof?

Hello again Tom. I tried adjusting the Potentiometer and have now stopped getting immense amounts of backlight from the LCD. Now what I'm getting is a series of boxes instead of the text that's supposed to be printed. I'm happy from the results but still haven't achieved my goal yet

Thank you Paul, that did work. Now I'm getting these boxes here instead of the text. I'll try putting a delay of 2000 in my code as another helpful person suggested on this thread. This is where I am right now

Okay so now I'm not getting any text on my LCD, just a series of black boxes. I don't think the fault is in the code anymore. Must be another wiring issue?

Hi,

You still haven't posted YOUR CODE, please we need to see it.

Have you tried the "Hello World" example in the IDE?

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