Naman Chauhan
Published © GPL3+

Using 16x2 LCD with Arduino

Learn how to use the 16x2 LCD with Arduino for various projects.

BeginnerProtip1 hour56,133
Using 16x2 LCD with Arduino

Things used in this project

Hardware components

UTSOURCE Arduino UNO
×1
UTSOURCE 16x2 LCD
×1
UTSOURCE Potentiometer
×1
UTSOURCE Jumper Wires
×1
UTSOURCE Breadboard
×1
UTSOURCE Resistor 220 ohm
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematic

Code

Code

C/C++
#include<LiquidCrystal.h>
String words;

LiquidCrystal lcd(13,12,5,4,3,2);

void setup()
{
    Serial.begin(9600);
    lcd.begin(16,2);
    lcd.setCursor(0,0);
    lcd.print("Initialising.");
    delay(1000);
    lcd.clear();
    lcd.print("Initialising..");
    delay(1000);
    lcd.clear();
    lcd.print("Initialising...");
    delay(1000);
    lcd.clear();
    lcd.print("Maker : Techduino");
    delay(2000);
}

void loop()
{
    lcd.clear();
    Serial.print("Enter the line : ");
    while (Serial.available()==0) {
    }
    words = Serial.readString();
    Serial.println(words);
    lcd.setCursor(0,0);
    lcd.print(words);
    delay(5000);
    Serial.println(" ");
}

Credits

Naman Chauhan
41 projects • 132 followers
Programmer, electronic adept masquerading as Computer Science student. Email for Cooperation/Sponsorships to chauhannaman98@gmail.com
Contact

Comments

Please log in or sign up to comment.