I wrote a code for ADC using analog voltage read and LCD. As follows:-
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); //(RS,en,D4,D5,D6,D7)
The code works as it should on Proteus but when I am connecting my LCD(JHD162a) in reality to Arduino Uno nothing is being displayed on the display only the backlight is turning on.
Is there something wrong with my code or am i interfacing the lcd wrong ?
LCD connections are as follows:-
Pin 1 - Ground
Pin 2- +5v
Pin 3- Ground
Pin 4- Digital pin 12
Pin 5- Ground
Pin 6- Digital pin 11
D4, D5, D6, D7 to D5, D4, D3, D2 of the arduino respectively.
I adjusted the contrast using resistors and there were changes in contrast but display still remains blank. Also tried making RW pin high as in data sheet but same result.