Using LCD Displays with Arduino

Share this & earn $10
DroneBot Workshop
Published at : 26 Oct 2020
731104 views
7411
160

Article with code at https://dbot.ws/lcdarduino
More projects at https://dronebotworkshop.com

Today in the workshop we will look at Liquid Crystal Displays or LCD’s.

We will examine the use of two type of LCD displays - the common LCD1602 display module and a popular LCD Keypad Shield for the Arduino. We’ll also see how to use the I2C adapter for the LCD1602 display module.

LCD’s are a very simple way to add display capabilities to your Arduino project. They are inexpensive, easy to use and very versatile. They also don’t consume a lot of current you they are ideal for battery powered projects.

I'll show you a couple of ways to interface an LCD with an Arduino, including the use of an I2C adapter. If you’re not familiar with the I2C (Inter-Integrated Circuit) bus it’s a very versatile method of adding sensors and peripherals to your Arduino using only a few wires. I’ll give a brief explanation about the operation of the IC2 bus in the video.

To use the I2C adapter we'll make use of a library called NewLiquidCrystal. I'll show you how to install it, you'll find the link to this library in the article at . The library is actually a replacement for teh Arduino LiquidCrystal library so you can use it for all your LCD sketches, not just the I2C ones.

We will also build something practical while we are at it - a digital temperature and humidity gauge. This will make use of the I2C adapter and the DHT22 temperature and Humidity sensor.

The video, and the accompanying article, will also show you how to use a very common LCD Keypad Shield for the Arduino Uno. The neat thing about this device is in how the push buttons are wired. I’ll explain that and show you a demonstration sketch that you can build upon for your own projects.

Here is the Table of Contents for this video:

The LCD1602 Display Module - 4:27
Hooking up the LCD and Arduino - 7:04
Demo Sketch 1 - Hello World - 9:49
Demo Sketch 2 - Scroll - 12:59
Demo Sketch 3 - Custom Characters - 15:39
Introducing I2C - 20:00
Hooking up the I2C Adapter - 23:44
I2C Address Test - 26:15
I2C Display Test - 27:08
Building the Temperature & Humidity Gauge - 32:48
LCD Keypad Shield - 37:39
LCD Keypad Shield Demo Sketch - 41:00

By the way I should mention I had a “slip of the tongue” while narrating this video. During the “Custom Character” demo I described the LCD as having a 5 x 7 matrix, it’s actually 5 x 8. Sorry about that! One extra row for you to define your custom characters.

The article accompanying this video at https://dbot.ws/lcdarduino contains a link to a very handy resource, an online custom character generator that you can use to write the code to define your own custom characters. You’ll want to check that out.

As usual the article has links to more resources and to a ZIP file with all of the code you see displayed here.

Hope you enjoy this video and that you use it to display something wonderful in your next Arduino project!
ArduinoLCDarduino LCD

Train Conductor World (The Voxel Agens) - iOS / Android HD Gameplay Trailer

Train Conductor World (The Voxel Agens) - iOS / Android HD Gameplay Trailer

For a greater purpose some small sacrifices have to be made. By Adv. Vibhor Anand

For a greater purpose some small sacrifices have to be made. By Adv. Vibhor Anand

WE MATCH AN UNREAL PRO PLAYER IN FUT CHAMPIONS! FIFA 21 ULTIMATE TEAM

WE MATCH AN UNREAL PRO PLAYER IN FUT CHAMPIONS! FIFA 21 ULTIMATE TEAM

We Almost Got Married  | The Time We Broke Up

We Almost Got Married | The Time We Broke Up

I’m Actually A Guy? 🤔 (The Truth)

I’m Actually A Guy? 🤔 (The Truth)

IN THIS MOMENT - Whore (OFFICIAL VIDEO)

IN THIS MOMENT - Whore (OFFICIAL VIDEO)

Damage enemy Heroes 10 15 20 times with a minimum of 100 magic or pure damage within 10 second

Damage enemy Heroes 10 15 20 times with a minimum of 100 magic or pure damage within 10 second

Who Should Become The New NBA Logo?

Who Should Become The New NBA Logo?

The Right to an Impartial Judge (s8a)

The Right to an Impartial Judge (s8a)

GOLDEN BUZZER! Sign Along With Us put on the GREATEST show in EMOTIONAL Audition | BGT 2020

GOLDEN BUZZER! Sign Along With Us put on the GREATEST show in EMOTIONAL Audition | BGT 2020

It Is So ~ Elevation Worship (Lyrics)

It Is So ~ Elevation Worship (Lyrics)

TRAVEL UPDATE: PHILIPPINES TO ALLOW SOME FOREIGNERS TO ENTER THE COUNTRY STARTING NOVEMBER 1, 2020

TRAVEL UPDATE: PHILIPPINES TO ALLOW SOME FOREIGNERS TO ENTER THE COUNTRY STARTING NOVEMBER 1, 2020

What are Like and Unlike Terms? | Don't Memorise

What are Like and Unlike Terms? | Don't Memorise

Drift Off Road Skyline Бобёр Мастер

Drift Off Road Skyline Бобёр Мастер

MGMT - When You Die (Official Video)

MGMT - When You Die (Official Video)

None of Akufo Addo's appointee is involved in money laundering as the NDC's insists-EU clarifies

None of Akufo Addo's appointee is involved in money laundering as the NDC's insists-EU clarifies

Conquer A Pressured Day Ticket Venue With Andy Parr! | Carp Fishing Advice

Conquer A Pressured Day Ticket Venue With Andy Parr! | Carp Fishing Advice

The Viral "Invisible Bathtub" That Broke the Internet

The Viral "Invisible Bathtub" That Broke the Internet

What is Ethics? - PHILO-notes Whiteboard Edition

What is Ethics? - PHILO-notes Whiteboard Edition

Prosperous Sounds - Hiyo Kweli (Official Gospel Music Video)

Prosperous Sounds - Hiyo Kweli (Official Gospel Music Video)

The meaning of happiness, as opposed to the meaning of life.

The meaning of happiness, as opposed to the meaning of life.

There is nothing that makes HOA board members fear more than to "eggspose" their deeds!

There is nothing that makes HOA board members fear more than to "eggspose" their deeds!

He will carry me - Mark Schultz

He will carry me - Mark Schultz

Otarutyun - Cover by Zoya Baraghamyan

Otarutyun - Cover by Zoya Baraghamyan

Andra Day - Rise Up legendado (Tradução)

Andra Day - Rise Up legendado (Tradução)

TOXIC Leak UNDERWATER while Searching for Ladies Lost RING with Metal Detectors

TOXIC Leak UNDERWATER while Searching for Ladies Lost RING with Metal Detectors

He opened 900 CASES with no luck, UNTIL TODAY...

He opened 900 CASES with no luck, UNTIL TODAY...

White Lion - When The Children Cry

White Lion - When The Children Cry

blackheads filaments on nose remove with tweezers にきびを押します กดสิว สิว บีบสิว ดึงสิว

blackheads filaments on nose remove with tweezers にきびを押します กดสิว สิว บีบสิว ดึงสิว

Blippi at an Outdoor Children's Museum | Learning Activities for Kids | Learn at Home | Blippi

Blippi at an Outdoor Children's Museum | Learning Activities for Kids | Learn at Home | Blippi

the various types of obama 2

the various types of obama 2

The Industrial Revolution (18-19th Century)

The Industrial Revolution (18-19th Century)

There are various types of large!

There are various types of large!

Snowrunner What's new in Phase 2 update | New Vehicles, Maps, features, etc

Snowrunner What's new in Phase 2 update | New Vehicles, Maps, features, etc

Conversations #2 - Curiosity is Encouraged

Conversations #2 - Curiosity is Encouraged

25 TYPES OF KISSES!!

25 TYPES OF KISSES!!

VRS Design High Pro Shield for iPhone SE: Slim, Attractive and Reasonably Priced!

VRS Design High Pro Shield for iPhone SE: Slim, Attractive and Reasonably Priced!

Overcoming challenges to achieve goals

Overcoming challenges to achieve goals

2nd Attempt at Making Plywood Gears

2nd Attempt at Making Plywood Gears

Will the Inner Circle Operate as One Unit After the Ultimatum? | AEW Dynamite, 12/9/20

Will the Inner Circle Operate as One Unit After the Ultimatum? | AEW Dynamite, 12/9/20

Is India Going To Give A Strong Respond To Chin@ ?

Is India Going To Give A Strong Respond To Chin@ ?

George Takei Would Appear in Quentin Tarantino’s “Star Trek” Remake

George Takei Would Appear in Quentin Tarantino’s “Star Trek” Remake

Trav - You Choose (feat. Tory Lanez) (Official Audio) [Drop a 🔥 in the comments]

Trav - You Choose (feat. Tory Lanez) (Official Audio) [Drop a 🔥 in the comments]

Card Throwing Trick Shots 2 | That's Amazing

Card Throwing Trick Shots 2 | That's Amazing

Loits - You, That May Wither [BLACK] Ved Buens Ende cover

Loits - You, That May Wither [BLACK] Ved Buens Ende cover

Four Jailed For Murder Of Jack Donoghue In Solihull (cctv/bodycam) #streetnews

Four Jailed For Murder Of Jack Donoghue In Solihull (cctv/bodycam) #streetnews

20th Century Fox Intro [HD]

20th Century Fox Intro [HD]

Major Lazer - Jump (feat. Busy Signal) (Official Music Video)

Major Lazer - Jump (feat. Busy Signal) (Official Music Video)

夜ごはんの時刻(村本 咲)/ It’s time for supper. (Saki MURAMOTO)

夜ごはんの時刻(村本 咲)/ It’s time for supper. (Saki MURAMOTO)