How to Use Multiple LCDs with One Arduino! (I2C Tutorial)

LeMaster Tech
183 followers
3 Video Views·Apr 20, 2025
Using the I2C Communication module in this video we quickly learn how to control multiple LCDs from one Arduino!
Code from this project can be found here:
https://github.com/plemaster01/ArduinoMultipleLCDs
Some Good, Affordable I2C LCDs:
20x4: https://amzn.to/4adjDwi
16x2: https://amzn.to/43KptDe
Elegoo's Amazon Storefront (tons of awesome hobby electronics):
https://amzn.to/3ITgdDb
Thank you so much to my Patreon Supporters!
https://www.patreon.com/LeMasterTech
Don't forget to leave a like on the video, subscribe to the channel, and comment what you'd like to see next! Thanks for watching and see you next time!
welcome back to L Master Tech and in
today's video I'm going to show you how
to control multiple LCDs or liquid
Crystal displays from one
[Music]
Arduino the communication protocol that
enables us to talk to a lot of these
devices using the same pins from our
Arduino is known as inter integrated
circuit Communications or i squ c you'll
usually see it written as i2c or
sometimes I I but technically it's i squ
c i don't really care what you call it
as long as you know what it is and how
to use it but basically what it means is
that a lot of data gets passed along a
common data Highway referred to as the
bus and every packet of data has a
device ID attached to it that is telling
the end devices what data belongs to it
and what doesn't if you have not yet
purchased your LCDs for your project I
recommend you look for that have an
integrated i squar c chip which you
typically can find soldered into the 16
pins that are standard on LCDs and then
with just four output pins a voltage a
ground and then an SDA and SC pin you
might just want to get yourself some new
LCDs that have the I squared seat chip
on them they're not very expensive I can
leave links to a few good ones below
that are not very expensive and save you
a lot of soldering so like we already
said the four pins require to do I squ C
communication for these LCDs are ground
and voltage which are pretty
straightforward and then SDA and which
stands for serial data and serial clock
one of those is used to synchronize the
data and the other one is the actual
data payload now on the Arduino Uno it's
not clearly marked on the board itself
which pins are SDA and the quick search
online can show you that the Arduino yes
it does support i squ c Communications
and the pins you need are A4 and A5
analog pin a A4 acts as the SDA pin for
data and analog pin A5 acts as the clock
pin wiring is super simple for these
devices but if you're building it on a
breadboard it's a good idea to put the
SDA and pins on a power rail just like
you would with the power and ground on
the other power rail the only slightly
tricky aspect to the physical components
in controlling multiple LCDs is that
these all have an iqu C address which is
how they know what data being passed
along that bus belong to them and the
standard out of the box configuration
not applicable to all LCDs but the
standard is that they come with a
hexadecimal address of 0x 27 and the
most common thing you'll see is on the
back of these boards they have three
pads labeled a z A1 and A2 these pads
can be thought of as three binary bits
that allow you to change the address of
the device up to eight times but the
important part to know is if you want to
change the addresses so each board has a
unique address you need to solder
different combinations of those pins
together otherwise they're going to look
like they have the same address and
they're going to pull the same data so
just by taking my second board and
soldering the contacts for a z together
I've made the address of this board 0
x26 now if I do the same thing but
solder pins A1 together on my third
board I've just made the address of this
board
0x2 again if you take a look at the
binary breakout for these different
combin ations it's pretty easy to see
how just three pins give you up to eight
different LCD addresses now let's take a
look at the software side of this which
is really straightforward as well so
open a new sketch in the Arduino IDE and
then go to the library manager search
for the i squar c scanner Library again
typed i2c by LS llamas click install and
then hit the three dots and go to
examples either scanner or check will
let you quickly verify if your boards
are plugged in and being seen at the
addresses you think think you assigned
them but scanning goes out there and it
checks for the full range of possible
available addresses while check is
looking for a specific address so again
they both work but scanning is a little
bit easier so open that up load it onto
your board and now let's open the serial
Monitor and hopefully you'll see
whatever addresses you assign to the
LCDs you have hooked up if not double
check your wiring to the boards and
double check the soldered address
connections on your boards if your
boards are not physically powered on
it's a good sign that something
something's wrong with your wiring but
if they're powered on and not being
discovered at the addresses you saw them
at it's a good indication something's
not quite right with how you assigned
your addresses now assuming you found
the devices the easy part of this
project is really just addressing each
of those LCDs as an individual device
using the same basic setup code we can
see from the LCD iqu C library examples
that we were just using we can Define
our various LCDs at their hexadecimal
addresses like we just discovered and if
you have nonstandard non6 column to row
LCDs you can input those parameters here
as well my actual code which I'll link
below I'm just going to create two lists
of hilarious dad jokes in the loop
section of my code I'm just going to
have one LCD display the joke the
question and then a few seconds later
I'll have my second LCD show the answer
while the first one's still showing the
question is it the best application for
using multiple LCDs maybe not but it
serves the purposes for this tutorial
and here hopefully you can see how quick
and easy it is to use multiple devices
communicating over an i c data bus and
this is also super flexible and useful
if you find yourself needing to just add
another device down the line you can
easily plug it in on the same sort of
connectors and quickly give yourself
another iqu C compatible device so again
all the code that I used here will be
linked in the description below as well
as the hardware if you need some LCDs
for your project be sure to leave a
comment if you had any questions about
what you saw in today's video and let me
know what you want to see more of on the
channel don't forget to leave a like on
the video subscribe to the channel a
massive thank you to my patreon
supporters Dale and philli and a special
thank you again to eligo for providing
the hardware used in this video eligo is
an industry-leading hobby electronics
and 3D printing manufacturer and I use a
ton of their products in my builds
they're super high quality and easy to
use so thank you again to eligo and be
sure to check out their Amazon store
Page link in the description below as
well which has a ton of components you
can use for getting started in the world
of hobby electronics okay that is going
to do it for today's video I hope it
showed you what you were hoping for when
you clicked on the video thank you so
much for watching until next time good
luck with your projects
bye
