Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arduino By Example

You're reading from  Arduino By Example

Product type Book
Published in Sep 2015
Publisher
ISBN-13 9781785289088
Pages 242 pages
Edition 1st Edition
Languages
Authors (2):
 Adith Jagadish Boloor Adith Jagadish Boloor
Profile icon Adith Jagadish Boloor
Adith Jagdish Boloor Adith Jagdish Boloor
Profile icon Adith Jagdish Boloor
View More author details

Hooking up an LCD to the Arduino


The LCD screen that we will be using is an I2C LCD1602.

This display screen can be programmed to display whatever you want in a 16x2 matrix. This means that the screen (as you will soon find out) has two rows capable of fitting 16 characters in each row.

Before setting up the complete circuit, look at the back of the LCD. Plug in four wires, as follows:

And then set up the circuit, as follows:

Now you will have to trust me on this next step. We are going to manually install a library that the LCD requires to run. You will be using this same method in future, so be patient and try to understand what we are doing here.

Download the LiquidCrystal_I2C.zip file from http://www.wentztech.com/filevault/Electronics/Arduino/.

Now, in the Arduino IDE, go to Sketch | Include Library | Add ZIP library and browse to the downloaded ZIP file. You are good to go.

If this doesn't work, you can manually extract the contents to: C:\Users\<Username>\Documents\Arduino\libraries...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}