Skip to main content

7 Segment Display in Proteus

 7 Segment Display       Download

Interfacing LCD With Arduino for Beginners || 16x2 LCD with Arduino

 Interfacing LCD With Arduino for Beginners

LCD

LCD is a very common module which we use in different application and projects. A 16x2 LCD is small LCD which is used to print small and as well as large string. 16x2 means that it can display 16 characters per line.

A 16x2 LCD have 16 pins which are used to display the output string. The pinout of LCD are as follow;

PINS                            FUNCTION
1                                   GROUND 
2                                   VCC
3                                  V0 attach potentiomente out
4                                   RS (Register Select)            
5                                    R/W (Read/Write)    
6                                    Enable
7,8,9,10,11,12,13,14    Data pins
15                                Backlight VCC
16                                Backlight Ground
 

Circuit Diagram

 Connection

  • Connect pin 1 to GROUND of Arduino board.
  • Connect pin  2 to VCC of Arduino board.
  • Place potentiometer on bread board and give GROUND and VCC to it. The center is output pin of the potentiometer and attach it to the pin 3 of LCD.
  • The potentiometer is used to adjust the brightness of LCD.
  • Connect pin 4 to the pin 12 of the Arduino.
  • Connect pin 5 to the GROUND.
  • Connect pin 6 to the pin 11 of the Arduino.
  • Connect pin 11,12,13,14 to pin 5,4,3,2 of the Arduino.
  • Connect pin 15 to 5V and pin 16 to the ground.

Code 

#include <LiquidCrystal.h>

const int rs =12, en=11, d4=5, d5=4, d6=3, d7=2;
LiquidCrystal lcd(rs,en,d4,d5,d6,d7);
void setup() {
  lcd.begin(16,2);
}

void loop() {
 
  lcd.setCursor(0,0);
  lcd.print("DO SUBSCRIBE &");
  lcd.setCursor(0,1);
  lcd.print("LIKE MY CHANNEL ");
  lcd.print(millis()/1000);

}
 
 

Video 

Comments

Popular posts from this blog

How to drive Servo Motor with Arduino - Arduino Code - Servo Motor

How to drive Servo Motor with Arduino Servo Motor Servomotor is actually a revolving or linear drive which allow us to control the position either angular or linear , speed and acceleration . Servo motor is a electronics device which is used for to get desirable rotation. Uses For Specific rotation Use for linear as well as angular rotation Used in industrial application Used in robotics Radio control   Circuit With Arduino   Video LINK