Go Down

Topic: Request Help with Interfacing LCD 162A with arduino (Read 2 times) previous topic - next topic


I have just bought an LCD 162A and i am trying to interface it with arduino ,i wired the attached circuit as it iis and all i could get is the backlight,now display on the screen,can any one help me with how to interface the LCD 162A.


I have attached an image of what i am talking about.


RW, pin 5 on LCD, connect it to ground.

Pin 3 on LCD, the contrast, are you sure about that resistor value? Replace it with potentiometer to be sure contrast is set correctly so the characters are visible on LCD.

Have you used the HelloWorld sketch from LiquidCrystal? According to your first post, you should use this:
LiquidCrystal lcd( 12, 11, 5, 4, 3, 2);


yeah i have used the Hello world sketch from the liquid crystal,the resistors are 10k Ohms,i went further to ground pin 5,and its still the same problem.i have just bought a JHD162A LCD,and have tried interfacing it with arduino but all in vain,tried every possible thing but cant get it to display anything,I connected it exactly like this and ran the hello world code,but am just getting the backlights lighting,no display,i have tried grounding pin 5 of the LCD,still nothing,please help me get out of this state of quagmire,i have been doing the same circuit since yeaterday,at first i thought i had made a mistake in the connection,then i re-did everything but the same.I even thought i bought a faulty LCD,then went back and bought a new one but all the same.Sorry if this is a really stupid question! I really have no idea and so am asking


// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("hello, world!");

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, 1);
  // print the number of seconds since reset:
That is the code i am using

Go Up