brambi001
Published © GPL3+

LCD screen simple project!

A simple project to get started with a 16x2 LCD screen.

BeginnerProtip262
LCD screen simple project!

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Alphanumeric LCD, 16 x 2
Alphanumeric LCD, 16 x 2
×1
Rotary Potentiometer, 10 kohm
Rotary Potentiometer, 10 kohm
×1
Jumper wires (generic)
Jumper wires (generic)
×15

Story

Read more

Schematics

Wiring Scheme

Code

Untitled file

C/C++
#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
void setup() {
lcd.begin(16, 2);
pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
lcd.setCursor(1, 0);
digitalWrite(LED_BUILTIN, HIGH);
lcd.print("Hello!");
delay(500);
lcd.setCursor(8, 0);
lcd.print("This");
delay(500);
lcd.setCursor(1, 1);
lcd.print("is");
delay(500);
lcd.setCursor(4, 1);
lcd.print("my");
delay(500); 
lcd.setCursor(7, 1);
lcd.print("first");
delay(500);
lcd.clear();
lcd.setCursor(1, 0);
lcd.print("project.");
delay(500);
lcd.setCursor(9, 0);
lcd.print("Enjoy!");
delay(1000);
lcd.clear();
}

Credits

brambi001

brambi001

6 projects • 2 followers

Comments