The purpose of this project is to utilize the build in functions of LiquidCrystal_I2C.h library in order to create scrolling messages.
Step 1 interface lcd with Arduino Uno2004A lcd screen can be connected to Arduino by using only 4 pins, thanks to I2C protocol:
- GDN
- VCC
- SDA
- SCL
I2C protocol uses only 2 lines to send and receive data, SCL (Serial Clock) and SDA(Serial Data Pin). With each pulse from SCL, SDA sends data from the board to the screen.
We can find the SDA and SCL ports by looking at the board:
The code used three functions; count_countdown(), scroll_left() and scroll_right(). The first show the numbers from 0 to 9 and from 9 to 0. The second scrolls the message from left to right and the last from right to left.
Comments
Please log in or sign up to comment.