- Arduino uno= https://bit.ly/30v5XcY
- LCD display = http://bit.ly/37SLuRJ
Diagram:-
Connections:-
LCD display to arduino
- Vss = Arduino GND
- VDD = Arduino 5V
- V0 = Potentiometer center pin
- RS = Digital pin 9
- RW = Arduino GND
- E = Digital pin 8
- D4 = Arduino digital pin 4
- D5 = Arduino digital pin 3
- D6 = Arduino digital pin 2
- D7 = Arduino digital pin 1
- A = Arduino 5V
- K = Arduino GND
Potentiometer to arduino
- Left pin = Arduino GND
- Right pin = Arduino 5v
- center pin = Display VO
Downloads:-
LCD display library(LiquidCrystal.h) = http://bit.ly/2VeF5xt
Code :-
#include <LiquidCrystal.h>//Include LCD library
#include <LiquidCrystal.h>//Include LCD library
LiquidCrystal lcd(9,8, 4, 3, 2, 1);// initialize the library with the numbers of the interface pins
void setup() {
lcd.begin(16, 2);
lcd.print("Mr.Arduino");// Print a message to the LCD.
}
void loop() {
lcd.setCursor(0, 1);
lcd.print(" LCD Tutorial");//Print a message to second line of LCD
}