Lcd With Arduino

by Rachna Aggarwal in Circuits > Arduino

543 Views, 1 Favorites, 0 Comments

Lcd With Arduino

20200807_125557.jpg
lcd.png

An LCD (Liquid Crystal Display) screen is an electronic display module and has a wide range of applications. A 16x2 LCD display is very basic module and is very commonly used in various devices and circuits. A 16x2 LCD means it can display 16 characters per line and there are 2 such lines. In this LCD each character is displayed in 5x7 pixel matrix. The 16 x 2 intelligent alphanumeric dot matrix display is capable of displaying 224 different characters and symbols. This LCD has two registers, namely, Command and Data.

Command register stores various commands given to the display. Data register stores data to be displayed. The process of controlling the display involves putting the data that form the image of what you want to display into the data registers, then putting instructions in the instruction register. In Arduino project Liquid Crystal Library simplifies this for you so you don't need to know the low-level instructions. Contrast of the display can be adjusted by adjusting the potentiometer to be connected across VEE pin.

Components Required

  1. Arduino - https://amzn.to/32jAMUA
  2. 16 X 2 LCD Display - https://amzn.to/35VXFQl
  3. Potentiometer 10K ohms - https://amzn.to/2ZuPNRN
  4. 220 ohms resistor(optional) - https://amzn.to/2ZuPNRN
  5. Jumper wires - https://amzn.to/3iqdBxM

Circuit Schematic

hello_world.PNG

GND/VDD pin - - > GND of Arduino

VCC/VSS pin - - > 5V of Arduino

VEE pin - - > pin 2 of potentiometer

RS - - > pin 12 of arduino

RW - - > GND

E(enable) - - > pin 11

D7 - - > Pin 2 of arduino

D6 - - >Pin 3 of arduino

D5 - - >Pin 4 of arduino

D4 - - >Pin 5 of arduino

K(led cathode -) - - > Gnd

A(led Anode +) - - > 5V

Pin 1 of potentiometer - - > 5V

Pin 3 of potentiometer - - > GND

Arduino Code