danushi1345132594
Published © GPL3+

LCD screen and i2c!

The i2c is the easiest way to control a LCD. Here it is!

IntermediateProtip1,914
LCD screen and i2c!

Things used in this project

Hardware components

Sunfounder LCD and I2C
×1
Jumper Wires
×1
Sunfounder Breadboard
×1
Arduino UNO
Arduino UNO
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematic

Connect the jumper wires as follows

Code

Code

Arduino
Paste in the Arduino IDE
If you want to show anything else uncomment lines 20-24
It is a loop it happens again and again!
#include <LiquidCrystal_I2C.h>
#include <Wire.h>

LiquidCrystal_I2C lcd(0x3F, 16, 2); //Make (0x3F, 16, 2),to(0x27,20,4) if the lcd screen is not showing anything

void setup() {
  Serial.begin(9600);
  lcd.init();
  lcd.backlight();

}

void loop() {
     lcd.setCursor(0, 0);            //starting position
     lcd.print("Arduino projects");  //Anything you want
     delay(2000);                    //delay 2 seconds
     lcd.clear();                    //clear all 
     lcd.setCursor(0, 0);            //starting position
     lcd.print("# <Your Name>");     //Type your name
     /*delay(2000);
     lcd.clear(); 
     lcd.setCursor(0, 0); 
     lcd.print("Something else"); 
     delay(2000);*/                
}

Credits

danushi13

danushi13

0 projects • 0 followers
45132594

45132594

0 projects • 2 followers

Comments