RSS

First Steps with the Arduino-UNO R3 and NANO | Maker, MakerED, Maker-Spaces, Coding | LCD1602-I2C | Tips

12 Feb
First Steps with the Arduino-UNO R3 and NANO | Maker, MakerED, Maker-Spaces, Coding | LCD1602-I2C | Tips

.

I2C Addresses on LCD1602

.


LCD1602-I2C isn’t working.

Well, I made some searches on the internet and I found the right answer on a forum about this error, which says that one should scan the I2C Address of the device and replace the “lcd.init();” by “lcd.begin (0x3F,16,2);” whereby “0x3F” is the I2C Address of my LCD1602/I2C module. I scanned to find out the I2C Addess with this sketch, please check here:

I bought 3 from Amazon (Germany) delivered from “AZ Delivery” <===>  https://www.amazon.de/gp/product/B079T1BW6T  <===> and they should have had ALL the I2C-Address “0X27” as explained in their FREE eBook <===>  https://bibliothek.az-delivery.de/wp-content/uploads/2018/01/11-AZ-Delivery_16x2LCD-I2C-Display-Bundle_Startertutorial.pdf   <===> but ONLY 1 had this address and two others the I2C-Address “0X3F”!! BTW: AZ Delivery has very GOOD stuff for reasonable prices!

Here below the results of the scan of the I2C-Address, shown in the Serial-Monitor of the Arduino IDE:.

 

I2C-ADDRESS-SCAN

Click image, please, to enlarge.

.

I2C-ADDRESS-SCAN-2

Click image, please, to enlarge.

.

SO, make sure to FIRST scan the I2C-Address through the above mentioned Sketch, will save you a lot of stress! 😉

TIP: Use a DYMO, print out the I2C-Addresses and glue them on the backside of the LCD1602 Display, so you know for next projects WHAT I2C-Address the module has! 😉 In a couple of weeks you wouldn’t remind it anymore! 

.

I2C Addresses on LCD1602

Click image, please, to enlarge.

.


Resolving the ERROR message

Coming back to resolve our ERROR-message and how to resolve it:

Please check the PIC below:

.

ERROR-1-Changing some code for working

Click the image, please, to enlarge.

.

Check the lines marked with ***************************, in my case it is lines 36 and 40-52! Change it as it is displayed above, save it and upload it; it should work correctly now!

.


.

L’auteur Gust MEES est Formateur andragogique / pédagogique TIC, membre du “Comité Conseil” de “Luxembourg Safer Internet” (LuSI), appelé maintenant BEESECURE, partenaire officiel (consultant) du Ministère de l’éducation au Luxembourg du projet  ”MySecureIT“, partenaire officiel du Ministère du Commerce au Luxembourg du projet ”CASES” (Cyberworld Awareness and Security Enhancement Structure).


The author Gust MEES is ICT Course Instructor, ”Member of the Advisory Board” from “Luxembourg Safer Internet” (LuSI), BEESECURE, Official Partner (Consultant) from the Ministry of Education in Luxembourg, project “MySecureIT“, Official Partner from the Ministry of Commerce in Luxembourg, project “CASES” (Cyberworld Awareness and Security Enhancement Structure).

.

Stay tuned for next blog post(s) 😉

.

.

.

 

Advertisement
 

Tags: , , , , , , , , , , , , , , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
%d bloggers like this: