Learn_With_RoboElements

Interface 16×2 LCD with Arduino 2

About 16×2 LCD:

It is a programmable liquid crystal display which consists of 16 rows and 2 columns, which means you can display 32 alpha-numeric characters. Further, each character is displayed in a 5×7 matrix.  

Pinout of 16×2 LCD

Features

  • Supply: 4.5-5.3 v
  • Can produce 16 characters
  • Backlight
  • Both 4-bit and 8-mode

Components needed

  • 16×2 LCD
  • 10k Potentiometer
  • Arduino UNO
  • Jumper Wires

Pin Connection

  • VSS->GND
  • VDD->Pot middle pin
  • VEE->VCC
  • RS->Pin 2
  • RW->GND
  • E->Pin 3
  • D4->Pin A0
  • D5->Pin A1
  • D6->Pin A2
  • D7->Pin A2

Circuit Diagram

Arduino IDE code

#include "LiquidCrystal.h"
const int rs = 2, en = 3, d4 = A0, d5 = A1 ,d6 = A2, d7 = A3;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
 
void setup() {
  lcd.begin(16, 2);
  lcd.print("Arduino");
}
 
void loop() {
  lcd.setCursor(0, 1);
  lcd.print("Learn NoW");
}
 

Replace #include “LiquidCrystal.h”  with  #include <LiquidCrystal.h>

Library link:https://github.com/arduino-libraries/LiquidCrystal

2 Comments

  1. How do we connect Arduino to 3D Printer

    1. Hello Khushru, for connecting 3d printer to Arduino you will need Arduino mega, ramps1.4 and ramps LCD, and a bunch of hardware products.
      Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *