How to Say Happy New Month Using Arduino And I2C LCD DISPLAY
This project is for beginners who just bought a I2C 16×2 LCD display. if you want to make a simple and small project of this LCD,then…
“HAPPY NEW MONTH” Is perfect for you! see the schematic and build the circuit then copy paste the program on your Arduino IDE software
And then you have a simple LCD display circuit,displaying “HAPPY NEW MONTH!”
Hardware Required
1 | × | Arduino UNO or MEGA | |
1 | × | USB 2.0 cable type A/B | |
1 | × | LCD I2C | |
n | × | Jumper Wires |
Quick Steps
- Connect Arduino to PC via USB cable.
- Open Arduino IDE.
- Select Arduino board
About LCD I2C 16×2
However, wiring between Arduino and the normal LCD is complicated. Therefore, LCD I2C has been created to simplify the wiring. Actually, LCD I2C is composed of a normal LCD, an I2C module and a potentiometer.
Pinout
LCD I2C uses I2C interface, so it has 4 pins:
- GND pin needs to be connected to GND (0V).
- VCC pin the power supply for the LCD, needs to be connected to VCC (5V).
- SDA pin I2C data signal
- SCL pin I2C clock signal
Wiring Diagram
for Arduino mega you can connect the SDA AND SLC directly the board SDA 20 AND SCL 21.
Writing code
#include <LiquidCrystal_I2C.h>
#include <LiquidCrystal_I2C.h>
/* I2C LCD with Arduino example code. More info: https://www.makerguides.com */
// Include the libraries:
// LiquidCrystal_I2C.h: https://github.com/johnrickman/LiquidCrystal_I2C
#include <Wire.h> // Library for I2C communication
#include <LiquidCrystal_I2C.h> // Library for LCD
// Wiring: SDA pin is connected to A4 and SCL pin to A5.
// Connect to LCD via I2C, default address 0x27 (A0-A2 not jumpered)
LiquidCrystal_I2C lcd = LiquidCrystal_I2C(0x27, 20, 4); // Change to (0x27,16,2) for 16×2 LCD.
void setup() {
// Initiate the LCD:
lcd.init();
lcd.backlight();
}
void loop() {
// Print ‘Hello World!’ on the first line of the LCD:
lcd.setCursor(0, 0); // Set the cursor on the first column and first row.
lcd.print(“HAPPY NEW MONTH!”); // Print the string “Hello World!”
lcd.setCursor(2, 1); //Set the cursor on the third column and the second row (counting starts at 0!).
lcd.print(“FROM ALEX”);
}
Video Tutorial
FOR MORE PROJECT
Subscribe to academicprojectworld.com
IF YOU NEED HELP USE THE COMMENT I WILL BE GLAD TO TO HELP, BASE ON THIS RESEARCH.
Lastest Arduino Microcontrollers Programming Beginners Guard