Using LCD with arduino
style="display:inline-block;width:468px;height:15px"
data-ad-client="ca-pub-3507530299542268"
data-ad-slot="6937426494">
For this tutorial,you will need
1 x Arduino uno or any other arduino.
1 x half sized breadboard
1 X 10k potentiometer. Pot is needed to adjust the contrast of the LCD.
1 X 10k resistor (optional)
A strip of male header pins
Some gauge wires
and
16X2 LCD(Liquid crystal display) or you can use any sized LCD.
Back of the LCD
Solder the male headers to the LCD pins so that the LCD can be stacked on the breadboard
The pin configurations of the LCD can be found in the datasheet attached.
Connect LCD to arduino as per this circuit(LCD pins are 1 to 16 from left to right in the below image)
You can power the arduino using 9V battery or USB cable.
Connection details
LCD |
Arduino |
Pin 1(Vss) |
Ground |
Pin 2(Vdd) |
5V |
Pin 3(Vo) |
Potentiometer’s middle pin |
Pin 4(RS) |
Digital pin 12 |
Pin 5(R/W) |
Ground |
Pin 6(E/Enable) |
Digital pin 11 |
Pin 7(DB0) |
Not used |
Pin 8(DB1) |
Not used |
Pin 9 (DB2) |
Not used |
Pin 10 (DB3) |
Not used |
Pin 11(DB4) |
Digital pin 5 |
Pin 12(DB5) |
Digital pin 4 |
Pin 13(DB6) |
Digital pin 3 |
Pin 14(DB7) |
Digital pin 2 |
Pin 15(Vee) |
5V |
Pin 16(K) |
Ground |
Actual image of the LCD and potentiometer connected to arduino uno.
Now open the arduino IDE and go to File > Examples >LiquidCrystal > HelloWorld
and upload the sketch.
Heres what it will look like after uploading the sketch
If you dont see anything then adjust the contrast using the potentiometer till you see the displayed text on the LCD.
If still it doesn't work then check the connections or post in the forum about your problem.
I tried uncountable times. It
I tried uncountable times. It isn't working. No display on-screen.