
.
.
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.
.
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…).
.
.
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…
.
.
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.
.
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 😉
.
![]() 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,
.
.
.