Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Controlled 16x2 I2C LCD Display

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled 16x2 I2C LCD Display

Circuit Documentation

Summary

This circuit consists of an Arduino UNO microcontroller and a 16x2 I2C LCD display. The Arduino UNO is used to control the LCD, which displays a simple message. The I2C interface allows for easy communication between the Arduino and the LCD, utilizing only two data lines (SDA and SCL) along with power and ground connections.


Component List

Arduino UNO

16x2 I2C LCD


Wiring Details

Arduino UNO


16x2 I2C LCD


Documented Code

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup() {
  // Initialize the LCD with the number of columns and rows
  lcd.begin(16, 2);
  // Turn on the backlight
  lcd.backlight();
  // Print "Hello, World!" to the LCD
  lcd.setCursor(0, 0); // Set the cursor to column 0, line 0
  lcd.print("Hello, World!");
}

void loop() {
  // Nothing to do here
}

This code initializes the LCD and displays the message "Hello, World!" on the screen. The setup function is called once when the program starts, while the loop function runs continuously, but in this case, it does nothing.