Open up the Arduino IDE and paste in the sketch below:
However, a blank LCD screen isn’t very impressive or of much use, so we need to put some code behind it to print some text! If you now provide power to your Arduino, you should see your screen power up along side it. Once finished wiring it up, you should have something that looks something like this (hopefully a bit tidier than mine!): The resistors used to connect pin 3 to GND and 5v can be changed in order to change the contrast of the screen, or can alternatively be replaced with a 10k potentiometer for this example though we will stick to the 1k and 10k resistors as this provides a good level of contrast. Pin 15 to 5v through a 220 ohm resistor.Pin 3 to GND through a 1k ohm resistor and to 5v through a 10k ohm resistor.Once you are able to connect it to your breadboard, it’s time to wire it all up as per the illustration and instructions below: The first thing you will need to do, more than likely, is solder the headers to the JHD162A module, as typically they do not come ready soldered together. A breadboard and a bunch of jumper cables.The checklist of things we’ll need for this are: Note: Although this guide has been written with the JHD162A in mind, any LCD display controller that is compatible with the Hitachi HD44780 interface will work which is the majority of small display controllers like this. The JHD162A display controller is a monochrome LCD module which you can find bundled with various Arduino starter kits or on their own usually in the price range of around $10.
Using a JHD162A LCD Screen with an Arduino Uno