lakshyajhalani56
Published

How to Setup LCD 16*2 with Arduino | LCD not displaying text

Many of us face lots of issues when connecting LCD with Arduino. This tutorial helps you and solved all your problems.

IntermediateFull instructions provided5,003
How to Setup LCD 16*2 with Arduino | LCD not displaying text

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Alphanumeric LCD, 16 x 2
Alphanumeric LCD, 16 x 2
×1
Breadboard (generic)
Breadboard (generic)
×1
Resistor 1k ohm
Resistor 1k ohm
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Diagram

Code

Code for LCD

C Header File
// Electronics University
// SUBSCRIBE US

#include <LiquidCrystal.h>

// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to

LiquidCrystal lcd(7,8,9,10,11,12);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("Yeh!U learned it");
}

void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  lcd.print ("SUBSCRIBE US");
}

Credits

lakshyajhalani56

lakshyajhalani56

9 projects • 12 followers

Comments