Akshay Joseph
Published © GPL3+

Interface 16x2 LCD (parallel interface) with Arduino Uno

In this article discuss about the interfacing of a 16x2 LCD and print an analog value from potentiometer (variable resistor).

BeginnerProtip90,540
Interface 16x2 LCD (parallel interface) with Arduino Uno

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
16x2 LCD
×1
Breadboard
×1
Male/Male Jumber Wire
×1
Resistor 220 ohm
Resistor 220 ohm
×1
Single Turn Potentiometer- 10k ohms
Single Turn Potentiometer- 10k ohms
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Interface 16x2 LCD (parallel interface) with Arduino Uno

Circuit without breadboard

Interface 16x2 LCD (parallel interface) with Arduino Uno

Circuit with breadboard

Code

Interface 16x2 LCD (parallel interface) with Arduino Uno

Arduino
#include <LiquidCrystal.h>

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

void setup() {
 
 lcd.begin(16, 2);
 
}

void loop() {
 
 
  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print("Hello Hackster");
  lcd.setCursor(0, 1);
  lcd.print("Value : ");
  lcd.setCursor(10, 1);
  lcd.print(analogRead(A0));
  Serial.println(analogRead(A0));
delay(500);
}

Credits

Akshay Joseph

Akshay Joseph

25 projects • 154 followers
B.Sc. Electronics Student at Govt. College Tanur

Comments