Fall in Love With I2C LCD Displays PDF
Fall in Love With I2C LCD Displays PDF
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
//www.youtube.com/embed/YgF1ZgCP2Nw
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.
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...
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.
Attachments
Download
https://www.instructables.com/ORIG/FBZ/D69G/JJ4ZU5L6/FBZD69GJJ4ZU5L6.ino
…
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...
Attachments
Download
https://www.instructables.com/ORIG/FQG/2ZF8/JJ4ZU69V/FQG2ZF8JJ4ZU69V.zip
…
Step 7: Coding
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”);
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