How to Test a 16*2 LCD?

RaghuRaj's picture

Offline

Joined: Aug 31, 2018

Replies: 2
How to Test a 16*2 LCD?
August 31, 2018 - 5:13pm

Hi guys,

i am interfacing my 16*2 LCD with Arduino but the LCD is not working, i am sure that the connections and code are correct.

I also tried with another Arduino UNO but still it is not working.

So can anyone tell me how to test that the LCD is working properly or not.  

Hiro_Hamada's picture

Offline

Joined: Apr 17, 2018

Replies: 115
Testing and Debugging 16*2 Alphanumeric LCD Display
September 1, 2018 - 8:21am

Be it Arduino or any other Microcontroller the testing and debugging method is the same.

These methods are discussed based in personnel experience. 

Check you connections: Most of the the problem will be your connections. Since we use a pre-tested library for our LCD displays there are very less chance for your code to be wrong. Instead concentrate on your connections make sure you have connected to the correct digital pins of the MCU.

Power up display: After making the connection when you power on the LCD, even if there is no code on the MCU you LCD should display boxes as shown below

d055e0e5-e6eb-47be-95ca-4e8d0db7cdae_RC162001BNHDWB-360x360.JPG

 

Check your contrast pin: Another trouble maker is your contrast pin (3rd pin). Make sure this pin is connected to a potentiometer and vary the pot till you something on the screen. Because sometimes your LCD might be working just fine but your contrast level might be too low or high for you to visualize it.

Have a handy replacement: Sometimes the crude way is the best way. If you are still struggling to get it work. Try replacing it with a new LCD if the new also ones also does not work then the problem is with your code or connections. LCD displays can be easily damaged by normal reverse polarity or over voltage so having a replacement just in case is a good idea 

 

Vashu's picture

Offline

Joined: Jun 10, 2015

Replies: 4
Nice explanation @Hiro_Hamada
September 3, 2018 - 11:28am

Nice explanation @Hiro_Hamada

Tapsi_Lactolite's picture

Offline

Joined: Aug 15, 2018

Replies: 3
Testing procedure for 16*2 Green color LCD
September 7, 2018 - 11:26am

Hi Hiro_Hamada..

I am also struggling to get my LCD display to work, that is when I stumbled upon your answer. 

But I have a Green color LCD display unlike the blue one shown in your answer. What is the testing procedure for this one? I am not getting that black boxes 

Thanks

Hiro_Hamada's picture

Offline

Joined: Apr 17, 2018

Replies: 115
Testing procedure is the same
September 7, 2018 - 12:12pm

Both the Green Color and Blue Color 16*2 LCD are almost the same expect for the backlight color. So the testing procedure for both the LCD is same.

If you are not getting any black boxes then most likely your LCD is not powered properly check your power source and also your connections.