Tutorial 2 - The Liquid Crystal Display (with I2C backpack)

Learn how to display text using an I2C LCD screen with Arduino. This intermediate tutorial introduces the LiquidCrystal library and LCD wiring.

Circuit Diagram

πŸ’‘Tip: This tutorial is for I2C LCDs with a 4-pin backpack (GND, VCC, SDA, SCL) β€” not compatible with 16-pin parallel LCDs.

What You'll Need

  1. Arduino Uno x 1
  2. 16x2 LCD Display (HD44780 & PCF8574-compatible) x 1
  3. Jumper wires x 4
  4. USB Cable x 1
  5. Arduino IDE installed

Instructions

  1. Wire the LCD to the Arduino's SDA and SCL pins.
  2. Wire the GND and VCC pins from the LCD to the Arduino's GND and VCC pins.
  3. Plug your Arduino into your computer using a USB cable.
  4. Open the Arduino IDE and paste the code below.
  5. Select your board and port under Tools.
  6. Click Upload to see "Hello, World!" appear on the LCD.

The Code


#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 16, 2);  // Matching Tinkercad address

void setup() {
  lcd.init();         // Initialize the LCD
  lcd.backlight();    // Turn on the backlight
  lcd.print("Hello, World!"); //Displays "Hello, World!"
}

void loop() {}
      

Schematic Diagram

LCD Hello World Schematic

Schematic diagrams show how current flows and how components connect logically β€” not just physically.

I1. Servo Sweep I3. Ultrasonic Sensor
Β© 2025 Ohmly