Skip to Content

LCD Display with I2C


Certainly! In this project, you're essentially introducing yourself to interfacing peripherals with Arduino microcontrollers. The primary component is the liquid crystal display (LCD), which acts as the output device. You'll also be using an Arduino board to control the display. The "Hello, World" message is a classic starting point in programming, and in this context, it serves as the output that you'll be displaying on the LCD screen. By following a simple wiring diagram and writing a basic Arduino sketch, you'll learn how to initialize the LCD, set up its parameters, and send text to be displayed. This hands-on experience lays a foundation for understanding how to interface various components with Arduino and write code to control them. It's a fundamental project that helps beginners grasp the basics of both hardware and software aspects of Arduino development.


 Circuit Diagram :-



Code :-


/*
  BY Arduino Techy
*/
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 16, 2); 

void setup()
{
  lcd.init();         // initialize the lcd
  lcd.backlight();    // Turn on the LCD screen backlight
}

void loop()
{
  lcd.setCursor(1, 0);
  lcd.print("Hello World.!");
  delay(3000);
  lcd.clear();

  lcd.setCursor(2, 0);
  lcd.print("This is by");
  lcd.setCursor(2, 1);
  lcd.print("Arduino Techy");
  delay(3000);
  lcd.clear();
}



Components :-

blue and black circuit board

Arduino Uno 

 Buying Link - 

https://amzn.to/4aAzDJe

LCD Display 

 Buying Link - 

https://amzn.to/4cSnsJ8

 I2C 

 Buying Link - 

https://amzn.to/4cXTCD8


Jumper Wires 

Buying Link - 

https://amzn.to/3JsOskR

Smart Gloves