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

Authors

.

Office Notification-I2C-LCD1602

.


Scrolling text with I2C-LCD1602

I was looking for a simple project for beginners, newbies on Coding and MakerED. A looong time ago since we did a project with ONLY four (4) wires, isn’t it! Well here is one which is very easy to create, a “Scrolling text on a LCD1602 with “I2C-Bus”. In previous blog post we were already using and explaining the “I2C-Bus” with an LCD, so it will be easy to create this one…

As a reminder, the I2C-Bus on an LCD1602:

Let us first have a look on the wiring, which is actually very easy.

.

I2C LCD1602 PINOUT-Arduino NANO

Click image, please, to enlarge.

The full tutorial could be found here, which I invite you to read carefully:

In  the tutorial are mentioned also the download link for the code in the upper side of the website, download it and check it; there are some bugs in 😉 I will explain where to look for changing the code, it’s actually very easy, here we GO!

Here the download link again:

The code looks like this (partial view for WHAT is interesting us…).

.

SCROLLING-TEXT-LCD1602-I2C-ORIGINAL-WITH-BUGS

Click image, please, to enlarge.

.

When we look at line 6, it is just a “comment” and so it will result in an ERROR, it should become uncommented by ” // “. In my case I didn’t get any text displayed, so I had a look at line 18 which is ” lcd.begin (16,2);” and I changed it into ===> “lcd.begin (0x3F,16,2);” which worked!! SO, that’s my recommendations, otherwise the Sketch works fine and you can change the lines 9 and 10 where you bring in your own text; NOT more than 16 characters, please 😉 Well, give it a try and find out yourselves…  Here below a screenshot with the working code…

.

SCROLLING-TEXT-LCD1602-I2C-WORKING

Click image, please, to enlarge.

.

Click the image, please, to enlarge it and find the necessary instructions to make the code work correctly, IF you have the same problem as I had.

.

 

Out of office notification


Office Notification-I2C-LCD1602

Click image, please, to enlarge.

 

 

 

Prices of the used material:

 

 

.

Please check video below to see the Sketch in action, e.g.

.

.

SO, now that your sketch is working, play a bit around while changing the variables, such as:

  • delays
  • text
  • etc.

Have fun and stay tuned for next blog posts 😉


.

GUST-AVRIL2014-800px-2L’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). L’auteur était aussi gagnant d’un concours en électronique en 1979 ( Pays germaniques ) et voyait son projet publié dans le magazine électronique “ELO”.


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).

The author was also a winner of an electronics contest (Germanic countries) in 1979 and got his project published in the “Electronics Magazine ELO”.

 

Keywords necessary for me to create this blog post: Arduino UNO R3, Arduino NANO, LCD 1602, I2C Bus, coding, learning to learn, learning by doing, trouble shooting, I2C scan, LCD160/I2C, Scrolling Text,

.

.

.

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 )

Google photo

You are commenting using your Google 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.