I am following the instructions from the Adafruit tutorial to make my LCD screen (16x2) connected with the Arduino to display some characters, but I cannot make it. I can only see the white boxes on the first row and half of the second row. Do you have any suggestions on what is going wrong?
You can find attached my circuit. The sketch is the one from the Liquid Crystal Library Hello World!
The LiquidCrystal library is set up so that you can assign any Arduino pins to any LCD pin. Your photo is taken at such an angle that it is impossible to determine which Arduino pins you are using but it seems that the pins you have used are not the ones that were specified in the sketch that you referenced.
You will have to change either the wiring or the sketch so that the pin usage matches. It is the 'constructor' that is the key to doing this. It is unfortunate that the perpetrators of the Arduino sketch did not include appropriate comments.
//LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // put your Arduino pin numbers here
I can only see the white boxes on the first row and half of the second row.
I forgot about this part. The fact that he can see white boxes means that the contrast is acceptable. The boxes on half of the second row is something I haven't come across previously and is troubling.
Thank you all very much for your time and your help! That was my first post ever and I guess I didn't do the best job ever! I have altereded the code accordingly (LiquidCrystal lcd(7, 8, 9, 10, 11, 12);), (that's the only thing I changed in the original code by the way) but I cannot see any characters. I also measured the voltage at all pins with my voltmeter and everything seems fine! I also played with the contrast (using the pot) but still nothing. Is there a chance my lcd screen is faulty?
Yes there is a very tiny chance the lcd is broken but there is a much higher chance you made a mistake elsewhere.
Have you done any prior projects with your Arduino?
What do you mean " measured the voltage at all pins with my voltmeter and everything seems fine! " ?
Yes, I have done some other projects with the Arduino. I am working with the Arduino for 6 months now.
The voltages at the pins tied to ground exhibit 0V, those tied to Vcc exhibit 5V, and the data lines exhibit a voltage between these two values.
My 16x2 character LCD is the one from Adafruit (16x2 Blue LCD #181 (Standard HD44780 LCDs) ).And yes I have already checked the soldering and reheated the solder spots.
Thanks guys for all your help!!! I really appreciate it!
I found what was wrong after two days of troubleshooting and all of your help!
There was one cable I used that it was broken. I checked all my cables for connectivity with the multimeter and I discovered that there was one broken, though it seems perfectly fine!!
Now the whole project works fine!!
Your second photo still does not show the Arduino pins but it does show several things that we couldn't see before which would have helped get a quicker diagnosis.
First of all it clarifies the statement "I can only see the white boxes on . . . half of the second row." I interpret half a row as either the left half or the right half due to how the device works internally. Your display shows 3 out of 7 horizontal rows of pixels which is a completely different situation.
With the right or left half not working there would almost certainly be a problem with the display itself. In your situation it means that the device is improperly initialized as a 1-line display which is typically due to improper programming or improper wiring.
What we should have picked up on earlier was the use of those prefabricated jumper cables which unfortunately are frequently faulty as you have found out.
Don
EDIT: Your display will be clearer if you remove the clear plastic film.
Your second photo still does not show the Arduino pins but it does show several things that we couldn't see before which would have helped get a quicker diagnosis.
First of all it clarifies the statement "I can only see the white boxes on . . . half of the second row." I interpret half a row as either the left half or the right half due to how the device works internally. Your display shows 3 out of 7 horizontal rows of pixels which is a completely different situation.
With the right or left half not working there would almost certainly be a problem with the display itself. In your situation it means that the device is improperly initialized as a 1-line display which is typically due to improper programming or improper wiring.
What we should have picked up on earlier was the use of those prefabricated jumper cables which unfortunately are frequently faulty as you have found out.
Don
EDIT: Your display will be clearer if you remove the clear plastic film.
Thanks again! Now I can move on building my mini portable meteorological station!