Introduction: How to Interface LCD (16X2) to Arduino

Picture of How to Interface LCD (16X2) to Arduino

This instructables explains you regarding interfacing LCD(Liquid Crystal Dispaly ) 16X2 to arduino.

Some basics Points regarding LCD :-

  • LCD consists of 16 rows and 2 columns of 5×7 or 5×8 LCD dot matrices.
  • LCD is available in a 16 pin package with back light ,contrast adjustment function and each dot matrix has 5×8 dot resolution.
  • The JHD162A has two built in registers namely data register and command register.
  • Data register is for placing the data to be displayed , and the command register is to place the commands.

  • The 16×2 LCD module has a set of commands each meant for doing a particular job with the display.

Hardware Components Required:-

1) LCD JHD162A (Liquid Crystal Display)

2) Arduino

3)10k Resistor Pot

4) BreadBoard

Step 1: Hardware Connections

Picture of Hardware Connections

LCD (Liquid Crystal Display) Interfacing to Arduino and Resistor 10k Pot

LCD Pin 1 (GND) Connected to Arduino ground and Resistor 10k Pot One End.

LCD Pin 2 (Vcc) Connected to Arduino 5volts and Resistor 10k Pot One End.

LCD Pin 3 Connect to Resistor 10k Pot Middle pin.

LCD Pin 4 Connected to Arduino 7th Pin

LCD Pin 5 Connected to Arduino Ground Pin

LCD Pin 6 Connected to Arduino 6th Pin

LCD Pin 11 Connected to Arduino 8th Pin
LCD Pin 12 Connected to Arduino 9th Pin

LCD Pin 13 Connected to Arduino 10th Pin

LCD pin 14 Connected to Arduino 11th Pin

LCD pin 15 Connected to Arduino 5v Pin // Used for Back light

LCD pin 16 Connected to Arduino Ground Pin // Used for Back light

Step 2: Program and Results

Picture of Program and Results

Copy and Paste below code in Arduino New sketch. Compile and Upload it to Arduino Uno.

// include the library code:

#include<LiquidCystal.h>

// initialize the library with the numbers of the interface pins

LiquidCrystal lcd(7, 6, 8, 9, 10, 11);

void setup()

{

// set up the LCD's number of columns and rows:

lcd.begin(16, 2); // Print a message to the LCD.

lcd.print("TechPonder"); }

void loop()

{ // set the cursor to column 0, line 1 // (note: line 1 is the second row, since counting begins with 0): lcd.setCursor(0, 0);

lcd.print(" TechPonder ");

lcd.setCursor(0,1);

lcd.print(" Arduino LCD ");

}

Please View the Results in below Video

Thanks,

TechPonder.

Comments

indavidjool made it! (author)2017-07-05

I made it, but I do get slightly different behaviour. As you can see I get multiple repetitions of TechPonder. Not sure what causes the repetition yet. Let me know if you know why this could be please. Thank You!

indavidjool (author)indavidjool2017-07-05

Oops, I just noticed my LCD uses the HD44780U not the JHD162A display controller.

MaverickL1 (author)2017-01-28

this isnt very clear if you could show step by step wiring using a bread bord it would be preffered

siddharthm22 (author)2016-08-03

Hey anyone could tell me please how to learn programming arduino

MichelM24 made it! (author)2016-02-19

Hi,

Nice tutorial.

just update the code, there's a mistyping (r is missing)

#include<LiquidCystal.h> =>> #include<LiquidCrystal.h>

Thanks,

TechPonder (author)2015-09-06

Did you follow the same steps as mentioned above ..

eppa (author)2015-09-04

why my arduino not display any word ..

About This Instructable

13,268views

47favorites

License:

More by TechPonder:how to interface LCD (16X2) to arduinoHow to Interface Ultrasonic Sensor (HCSR04) to arduino unoFire  detection  using Arduino and flame sensor
Add instructable to: