How to Connect an I2C Lcd Display to an Arduino Uno Tutorial

preview_player
Показать описание

16x2 i2c display:

Arduino Kit:

FAQ:
Q. My lcd display is not showing anything?
Try changing the contrast potentiometer on the back of the display.

Q. The lcd display doesn't show anything or random just characters?
Your backpack might be wired differently.
Try this line instead: LiquidCrystal_I2C lcd(0x27, 4, 5, 6, 0, 1, 2, 3, 7, POSITIVE); // Change the 0x27 i2c address to your i2c address

Q. Com port not found errors
Run the windows "device manager", expand "Ports (COM & LPT)". Check that the serial (com) port exists.
Check the board is plugged in to a usb port.
Check the device driver is loaded.
Some clones use the CH340 driver, you will need to download and install it.

Q. The scanner sketch can't find the i2c address?
Check the wiring.
Some Arduino models use different pins for the I2C connections, if you are not using an UNO then check which pins you need to use.

Please visit the techydiy Amazon com shop and help support the channel:

NewliquidCrystal library:
Select the Code button and download zip

i2c Scanner:

SUBSCRIBE TECHYDIY CHANNEL:

SUBSCRIBE TECHYDIY REVIEWS CHANNEL:

Рекомендации по теме
Комментарии
Автор

very well explained to the minute details, i had my i2c working after following this post, hats off to you,

ltshering
Автор

Very happy to have bumped into this tutorial! I had the same LCD as in the video, hooked up to a Nano, and it ran in 10 mins. Thanks!

MauriceBierhuizen
Автор

Select the Code button and then download zip

16x2 i2c lcd display links and FAQ:


Arduino kit links:





FAQ:
Q. My lcd display is not showing anything?
Try changing the contrast potentiometer on the back of the display.

Q. The lcd display shows weird characters?
Your backpack might be wired differently.
Try this line instead: LiquidCrystal_I2C lcd(0x27, 4, 5, 6, 0, 1, 2, 3, 7, POSITIVE); // Change the i2c address

Q. Com port not found errors
Run the windows "device manager", expand "Ports (COM & LPT)". Check that the serial (com) port exists.
Check the board is plugged in to a usb port.
Check the device driver is loaded.
Some clones use the CH340 driver, you will need to download and install it.

Q. The scanner sketch can't find the i2c address?
Check the wiring.
Some Arduino models use different pins for the I2C connections, if you are not using an UNO then check which pins you need to use.

Q. Error message during compliation - 'POSITIVE' was not declared in this scope
Check that the newliquidcrystal library from F Malpartida has been installed.

The default LiquidCrystal library installed with the arduino ide doesn't support POSITIVE

From the Arduino IDE:
Select File - Preferences
Select Show verbose output during compilation
Ok

Compile your sketch again

You should see a message below that says something like:

Using library NewliquidCrystal in folder:

Check that the library path is correct.

If it is not finding the correct library NewliquidCrystal then that is the reason for the error. This might be due to a clash with the default LiquidCrystal library. In this case a possible solution is to delete the default LiquidCrystal library.

Please visit the techydiy US Amazon com shop and help support the channel:

techydiy
Автор

Changing contrast fixed the problem. You even updated the library link. You take your job very serious. Thanks alot!

yavuzerbas
Автор

Clear and excellent with no waffling or toxic music - thank you kindly

philiprose
Автор

Finally, some instruction that actually worked (and was not outdated). Was just a bit fast passed for my caveman like brain, but with generous use of <pause> and <rewind> I was able to follow all the instructions. I am really looking forward to reviewing your other posts. Thanks. JB

jimbobtucson
Автор

Very clearly presented. This was my first time connecting an LCD, including with an I2C board and your walk-through was flawless. Thank you!

colinleslie
Автор

BIIIG THANK YOU, my lcd does not worked, but when i wached your video it works!!!

GCKteamKrispy
Автор

very easy-to-follow tutorial, provided all software you used and describing clearly what to do when you have a problem. thank you!

thedemonicprogrammer
Автор

This is such a well done video, my Arduino kit came with an I2C LCD screen and this made using it a breeze!

AllAmericanBeaner
Автор

Thank you Sir. Finally, after stuck for almost a week with no display. A simple "Hello World!" on my display is totally worth it. You got a new SUBSCRIBER!
:)

rocketace
Автор

Cheers mate, this video made my 2nd year electrical engineering project a breeze :D

jamesbai
Автор

Thanks you so much, really! It took me so long, to get to this point. Aah! thank you.

stefanvanschalkwyk
Автор

Everything worked right out of the box (on the first try), thanks.

JohannY
Автор

The 3rd line in the example code, with the pin assignment for the chip on the I2C backpack, was the missing ingredient I struggled with for hours until I found this video. Thanks!!!

weeyumzzz
Автор

Thank You!
Your explanation help me a lot to install the lcd and working now.

boorkop
Автор

Hi. Thank you. I have just set up a Nano with this LCD display and was wondering why it wasn't working. You mentioned the contrast... Yep, that was all it was. BTW the pins for the Nano are the same as for the Uno.

CerdicTheGreat
Автор

perfect learning material, with questions and all, the potentiometer did brightened my day :)

mehmetayparyangozalumni
Автор

Thanks! Saved me hours. Very well done explanation, but it does assume you have some experience. Nice job, thanks again.

ronjones
Автор

My display showed text, but it was not lit. When I saw your suggestion to check the LED jumpers in your video, it saved me. Thank you for the video

hamidmusayev
welcome to shbcf.ru