ThomTronics
Published © GPL3+

Easily Wire a 16x2 LCD

Wire a 16x2 LCD.

BeginnerShowcase (no instructions)1 hour12,548
Easily Wire a 16x2 LCD

Things used in this project

Hardware components

Resistor 221 ohm
Resistor 221 ohm
(220 or 330 Ohms resistor)
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
Rotary potmeter = 10K Ohms
×1
Standard LCD - 16x2 White on Blue
Adafruit Standard LCD - 16x2 White on Blue
(Or any other 2x16 Lcd)
×1
Jumper wires (generic)
Jumper wires (generic)
(15x)
×1
Arduino UNO
Arduino UNO
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematic

Code

Code

C/C++
// include library code
#include <LiquidCrystal.h>

// initialize library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  lcd.begin(16, 2);
  // Text goes in here |
  //                   \/
  lcd.print("Hello, Hacksterio!");
}

void loop() {
  lcd.setCursor(0, 1);
  lcd.print(millis() / 1000);
}

Credits

ThomTronics

ThomTronics

0 projects • 8 followers

Comments