Friday 8 September 2017

Interfacing 162*2 LCD with arduino


                          A Liquid Crystal Display commonly abbreviated as LCD is basically a display unit built using Liquid Crystal technology. The most basic form of electronic display available is 7 Segment display – which has its own limitations. The next best available option is Liquid Crystal Displays, 16×2 LCD Module can display 32 ASCII characters in 2 lines ,16 characters in each line. 


16×2 LCD Module Pin Out 















Download datasheet here

                        

                      LCD modules are very important part in many arduino based embedded system projects. So the knowledge on interfacing LCD module to arduino is very essential in designing embedded systems.The LCD module has 16 pins and can be operated in 4-bit mode (using only 4 data lines) or 8-bit mode (using all 8 data lines). Here we are using the LCD module in 4-bit mode.



PROGRAMME
//                                       http://electronicshobbycorner.blogspot.in
//                                       Rajeev TR
//                                       rajeev.emb402@gmail.com

//  INTERFACING 16*2 lcd WITH ARDUINO 

//  LCD         ARDUINO
//   RS         8
//   EN         9
//   D4         10
//   D5         11
//   D6         12
//   D7         13                                  



#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 9, 10, 11, 12, 13);
void setup() 
{
 lcd.begin(16, 2);
 lcd.print("hello, world!");

}

void loop()
{
 

}

Download code here




No comments:

Post a Comment