Interfacing lcd 16x2 with Arduino

Liquid Crystal Display:

                 A liquid-crystal display (LCD) is a flat-panel display or other electronically modulated optical device that uses the light-modulating properties of liquid crystals. Liquid crystals do not emit light directly, instead using a backlight or reflector to produce images in color or monochrome.

          16 represents number of columns and 2 represents number of rows.
                

Pin Description:


Hardware Required:

  •  Arduino &USB cable
  •  16X2 LCD
  •  Bread Board
  •  Connecting Wires

Connections:

Arduino program to print Hello World!:
#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
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!");
}
view raw LCD hosted with ❤ by GitHub

Working Model.......



   

                     

               Thanks for Watching..........

No comments:

Post a Comment