How to Connect I2C Lcd Display to Arduino Uno
by JunezRiyaz in Circuits > Arduino
272093 Views, 69 Favorites, 0 Comments
How to Connect I2C Lcd Display to Arduino Uno
![IMG_20171016_225538_HDR.jpg](/proxy/?url=https://content.instructables.com/FKX/ERV7/J8UH089X/FKXERV7J8UH089X.jpg&filename=IMG_20171016_225538_HDR.jpg)
Hello Guys , In this Instructable you are going to see how to connect i2c lcd display to arduino and how to print on lcd display .
Before going to start this tutorial you must know a brief about i2c communication .
Each I2C bus consists of two signals: SCL and SDA. SCL is the clock signal, and SDA is the data signal. The clock signal is always generated by the current bus master; some slave devices may force the clock low at times to delay the master sending more data (or to require more time to prepare data before the master attempts to clock it out). This is called “clock stretching” and is described on the protocol page.
For more information visit Electronics Projects Hub
Now lets start this Instructable ..
Components Required
![IMG_20171017_213222.jpg](/proxy/?url=https://content.instructables.com/FTE/DK2L/J8UH0DGV/FTEDK2LJ8UH0DGV.jpg&filename=IMG_20171017_213222.jpg)
Arduino Uno : https://goo.gl/TlOucU
I2C LCD Display : https://goo.gl/Fh6su4
Male to female jumpers - 4 : https://goo.gl/nsAkuw
Circuiting
![Screenshot (85).png](/proxy/?url=https://content.instructables.com/FW0/56GU/J8UH083V/FW056GUJ8UH083V.png&filename=Screenshot (85).png)
I2C Board of LCD Arduino
GND <---> GND
VCC <---> 5V
SDA <---> A4
SCL <---> A5
Code
![Screenshot (86).png](/proxy/?url=https://content.instructables.com/FYN/VTAU/J8UH0AV4/FYNVTAUJ8UH0AV4.png&filename=Screenshot (86).png)
We must require to include two libraries ,in order to work the code attached .
Download the libraries from the attachment LCD library .
Basic functions we use in code
lcd.begin(16,2); //Defining 16 columns and 2 rows of lcd display
lcd.backlight(); //To Power ON /OFF the back light
lcd.setCursor(0,0); //Defining positon to write from first row,first column .
lcd.setCursor(0,1); //Defining positon to write from second row,first column .
lcd.print(" write here to print"); //You can write 16 Characters per line within quotations.
lcd.clear(); //Clean the screen
Output
![IMG_20171016_230750.jpg](/proxy/?url=https://content.instructables.com/FM0/I9ZH/J8UH0C5J/FM0I9ZHJ8UH0C5J.jpg&filename=IMG_20171016_230750.jpg)
![IMG_20171016_230800.jpg](/proxy/?url=https://content.instructables.com/FSB/Q5X4/J8UH0C6N/FSBQ5X4J8UH0C6N.jpg&filename=IMG_20171016_230800.jpg)
![tech-2.jpg](/proxy/?url=https://content.instructables.com/FNS/1SU7/J8UH0C12/FNS1SU7J8UH0C12.jpg&filename=tech-2.jpg)
![tech-1.jpg](/proxy/?url=https://content.instructables.com/FI6/52A0/J8UH0BZZ/FI652A0J8UH0BZZ.jpg&filename=tech-1.jpg)
The outputs attached are done according to code attached above .
Complete Video Tutorial
![How to connect I2C 16X2 LCD Display for Arduino](/proxy/?url=https://content.instructables.com/F62/H3TT/J8UH0CU4/F62H3TTJ8UH0CU4.jpg&filename=How to connect I2C 16X2 LCD Display for Arduino)
If you want to learn C Programming you can easily learn at codingtute. It will enhance your arduino programming skills.
Don't forget subscribe my YouTube Channel
Check out my website Electronics Projects Hub