100% found this document useful (2 votes)
221 views7 pages

Fall in Love With I2C LCD Displays PDF

This instructable teaches how to connect and program an I2C LCD display. It discusses I2C communication protocol and lists the required materials. The steps show how to wire the LCD to an Arduino, find the LCD's hexadecimal address, add the necessary libraries, and write code to display text on the LCD screen. Advanced features like scrolling text are suggested for future tutorials to keep this focused on the basics for beginners.

Uploaded by

bluesky_1976
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
221 views7 pages

Fall in Love With I2C LCD Displays PDF

This instructable teaches how to connect and program an I2C LCD display. It discusses I2C communication protocol and lists the required materials. The steps show how to wire the LCD to an Arduino, find the LCD's hexadecimal address, add the necessary libraries, and write code to display text on the LCD screen. Advanced features like scrolling text are suggested for future tutorials to keep this focused on the basics for beginners.

Uploaded by

bluesky_1976
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

instructables

Fall in Love With I2C L.C.D. Displays.

by MissionCritical

Hello there! Fellow electronics enthusiasts, I am quite USER INTERFACE, so here is a quick tutorial about
sure we all make some or the other projects, as a part LCD displays, in which we will learn how to wire and
of our learning experience or academics. We sure program a I²C LCD Display
would want to display some data present on our
micro controllers, from sensors or simply create a

Step 1: Watch the VIDEO

//www.youtube.com/embed/YgF1ZgCP2Nw

Fall in Love With I2C L.C.D. Displays.: Page 1


Step 2: Understand Whatis I²C Communication?

I²C (Inter-Integrated Circuit) is a synchronous, multi- I²C uses only two bidirectional open collector or open
master, multi-slave, packet switched, single-ended, drain lines, Serial Data Line (SDA) and Serial Clock
serial computer bus invented in 1982 by Philips Line (SCL), pulled up with resistors.Typical voltages
Semiconductor. used are +5 V or +3.3 V. The I²C reference design
has a 7-bit address space, with a rarely-used 10-bit
It is widely used for attaching lower-speed peripheral extension. Common I²C bus speeds are the 100
IC's to processors and micro-controllers in short- kbit/sstandard mode and the 400 kbit/s Fast mode.
distance, intra-board communication.

Step 3: Gather the Requirements

for this demonstration, we will require https://store.arduino.cc/arduino-uno-rev3

1. I²C L.C.D. Display 3. Male to Female Jumper Wire

https://www.amazon.in/Generic-Serial-Character-Dis.. https://www.amazon.com/Foxnovo-Breadboard-Jump
. er-W...

https://www.amazon.com/LGDehome-Interface-Adapt https://www.amazon.in/Rees52-Dupont-Jumper-2-54
er-... mm-...

https://www.banggood.com/IIC-I2C-1602-Blue-Backli https://www.banggood.com/40pcs-20cm-Male-To-Fe
g... male...

2. Arduino UNO microcontroller

Fall in Love With I2C L.C.D. Displays.: Page 2


Fall in Love With I2C L.C.D. Displays.: Page 3
Step 4: Connecting the L.C.D. Display to Microcontroller

By using this I2C technique, we can operate our LCD so for this tutorial, we will use an ARDUINO UNO
Display to display data from our sensors or any text microcontroller, which has SCL as pin A5, SDA pin
from Microcontroller by using only 2 pins, i.e. SCL as A4.)
(which is clock pin) and SDA (which is data pin),also
we would need to use 2 more pins for power. i.e. Vcc
and Gnd.

steps 2. connect 5V to 5V, and Gnd to ground pin of


arduino.
1.connect the SCL data and SDA data pin to SCL
and SDA pins in your microcontroller, 3. Adjust the Contrast of L.C.D using Pot on the back
side of LCD module.
(if you don’t know which pin is SCL and which is
SDA, check the data sheet for pin-out)

Fall in Love With I2C L.C.D. Displays.: Page 4


Attachments
Download
https://www.instructables.com/ORIG/FJE/SHKC/JJ4ZU5BK/FJESHKCJJ4ZU5BK.fzz

Step 5: Finding the HexaDecimal Address of I²C LCD

We can connect multiple I²C devices at a same time, Previous Step).


but to distinguish between devices,
aHexadecimaladdress is allotted to eachI²C device, 2.Download the Attached Code and Upload it to your
which we need to know before proceeding any IDE.
further.
3.open Serial Moniter, which will return you the Hex
To know this address, Address of the Connected I²C Device.

1. Connect your I²C device to Arduino Uno, (Follow

Attachments
Download
https://www.instructables.com/ORIG/FBZ/D69G/JJ4ZU5L6/FBZD69GJJ4ZU5L6.ino

Fall in Love With I2C L.C.D. Displays.: Page 5


Step 6: Add Required LIBRARIES

Before proceeding any further, lets download and 2. open ide, under sketch menu, include library tab,
install custom library for our “I²C LCD” on IDE, select “add .zip library“ option, and select the
downloaded file.
For which, We will use LiquidCrystal_I2C library by
frank. link

steps. https://github.com/fdebrabander/Arduino-LiquidCrys...

1.download the zip file.

Attachments
Download
https://www.instructables.com/ORIG/FQG/2ZF8/JJ4ZU69V/FQG2ZF8JJ4ZU69V.zip

Step 7: Coding

steps 4. Turn on the backlight by using lcd.backlight();

1. Include the two libraries. (i.e. wire.h and


LiquidCrystal_I2C.h)

2. Define the address and set up the lcd 5. Set cursor, which can be done using the syntax
lcd.setCursor( rows, columns)
by LiquidCrystal_I2C lcd(0x27,16,2);
(here we are using 16X2 LCD, which means we have
where, "0X27" is hexadecimal address obtained 16 rows and 2 colums)
from previous step and "16,2" is columns, rows.
6. type Required Message inside the syntax
3.In void setup, initialize the lcd by lcd.init(); lcd.print( “hello friends”);

Fall in Love With I2C L.C.D. Displays.: Page 6


Attachments
Download
https://www.instructables.com/ORIG/FNK/6ZTG/JJ4ZU7EC/FNK6ZTGJJ4ZU7EC.ino

That's something advanced, I wish to add those things in next topic, because the focus of this
tutorial was to understand and setup the i2c lcd for beginners, thank you :)
That's great tutorial, but you can add much more info about scrolling text and other stuff

Fall in Love With I2C L.C.D. Displays.: Page 7

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy