I'm new learning to use the 1602 LED display using the basic "Hello World" example. All the connections are in line with those in the example and the code was just "copied and pasted" to my board. However, all the screen showing was as per the picture. Checked all the connections and couldn't find anything wrong with them. Also tried different holes on the breadboard but the problem remains.
Any suggestions to rectify the problem will be very much appreciated.
Thanks flashko. All the connections been checked a couple times. The display contrast in the picture was set to the highest. The 9V battery or proper power both have the same result.
void setup()
{
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Clears the LCD screen
lcd.clear();
}
void loop()
{
// Print a message to the LCD.
lcd.print(" Hello world!");
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// Print a message to the LCD.
lcd.print(" LCD Tutorial");
}
The picture shows that the contrast is set more-or-less correctly, the genuine "UNO" is being powered via the "Barrel jack" which is probably not a good idea but should still work and the unnecessary 220 Ohm resistor is not connected properly to the "A" pin on the display which is why the backlight is not working.
The LCD is not responding to the code, possibly due to faulty wiring and perhaps more likely due to the terrible soldering of the pin header to the LCD module. I cannot see a specific mistake, but it it pretty bad and just as likely something is not connecting.
We have no idea why there is a "smoke alarm" battery sitting alongside and we cannot see any connections to it. Put it away in case you need to replace it in the smoke alarm or your multimeter.
Not responsible for the problem, but get rid of the connection between the potentiometer and the 5 V line - that is a mistake in most of the frequently copied "tutorials". If it is the 10k potentiometer also always incorrectly specified, connect both ends to ground and it will work better!
Thank you all for your time. I have to admit they're really terrible soldering. Re-do the soldering again and continuity checked. It's working well now. Appreciate it.
Hold the soldering iron on the pad and wire until the solder flows like water. When it does you can see it wet the pad and wire. Remove your iron and if impatient like most of us blow on it. I think that will fix your solder joints.
If you are going to continue in electronics, soldering is an absolutely essential skill.
So it is worthwhile to actually buy some boards and cheap components specifically for practice.
Also get some dud PCB assemblies (should be no shortage of these) and practice removing components (get a solder sucker) and replacing them. Note you generally have to add fresh fluxed solder to properly melt a previously soldered joint.