LCD I2C Blinking Text Using Arduino

In this Tutorial we will learn how to use an LCD I2C to make a blinking Text project using Arduino. Watch the video!

projectImage

Things used in this project

Ā 

Hardware components

HARDWARE LIST
1 DFRobot I2C 16x2 Arduino LCD Display Module
1 Arduino UNO
1 Jumper wires (generic)

Software apps and online services

Ā 

Arduino IDE

Ā 

Visuino

Story

Step 1: What You Will Need

-LCD Display I2C 20X4 (if you use diferent LCD then make sure that you specify the right Columns and Rows in the Visuino component)Ā -Jumper wiresĀ -Arduino UNO or any other boardĀ -Visuino software: Download here

Step 2: The Circuit

Ā 

-Connect LCD Display pin VCC to Arduino pin 5VĀ -Connect LCD Display Module pin GND to Arduino pin GNDĀ -Connect LCD Display pin SCL to Arduino pin SCLĀ -Connect LCD Display pin SDA to Arduino pin SDA

Ā 

Ā 

Ā 

Step 3: Start Visuino, and Select the Arduino UNO Board Type

Ā 

Ā 

Ā 

Ā 

Ā 

The Visuino: https://www.visuino.eu also needs to be installed. Download Free version or register for a Free Trial.

Ā 

Start Visuino as shown in the first picture Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "Arduino UNO" as shown on Picture 2

Ā 

Ā 

Ā 

Step 4: In Visuino Add Components

Ā 

Ā 

Ā 

Ā 

-Add "Pulse Generator' componentĀ -Add "Digital Multi Source" componentĀ -Add "Text Value" componentĀ -Add "Detect Edge" componentĀ -Add "Liquid Crystal Display (LCD) - I2C" component

Ā 

Ā 

Ā 

Step 5: In Visuino Set Components

Ā 

Ā 

Ā 

Ā 

Ā 

-Select "TextValue1" and in the properties window set "Value" to FLASH TEXT <Ā -Select "DetectEdge1" and in the properties window set "Rising" to FalseĀ -Select "LiquidCrystalDisplay1" and in the properties window depending on the type of your display set the number of Columns and Rows in this case "Columns" 20 and "Rows" 4Ā -Double click on the "LiquidCrystalDisplay1" and in the elements window Drag "Text Field" to the left side and in the properties window Optionally set "Width" to 20, different Row if you want or Colums, Experiment to see what fits you.Ā 

Note: If you want to increase the blinking speed increase the "PulseGenerator1" frequency

Ā 

Ā 

Ā 

Step 6: In Visuino Connect Components

Ā 

-Connect "PulseGenerator1" pin [Out] to "DigitalMultiSource1" pin [In]Ā -Connect "DigitalMultiSource1" pin [0] to "TextValue1" pin [Clock]Ā -Connect "DigitalMultiSource1" pin [1] to "DetectEdge1" pin [In]Ā -Connect "TextValue1" pin [Out] to "LiquidCrystalDisplay1" > "Text Field" pin [In]Ā -Connect "TextValue1" pin [Out] to "LiquidCrystalDisplay1" > "Text Field" pin [Clock]Ā -Connect "DetectEdge1" pin [Out] to "LiquidCrystalDisplay1" pin [Clear]

Ā 

Ā 

Ā 

Step 7: Generate, Compile, and Upload the Code

Ā 

In Visuino, at the bottom click on the "Build" Tab, make sure the correct port is selected, then click on the "Compile/Build and Upload" button.

Ā 

Ā 

Ā 

Step 8: Play

If you power the Arduino module the LCD will start to blinking the text.

Ā 

Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this Instructable, you can download it and open it in Visuino: https://www.visuino.eu

Schematics

Ā 

icon lcd-i2c-flash-text_kFkQeANz57.zip 1KB Download(5)

Code

Ā 

icon visuino_file (2).zip 0KB Download(4)

The article was first published in hackster, June 24, 2022

cr: https://www.hackster.io/ronfrtek/lcd-i2c-blinking-text-using-arduino-06d340

author: ronfrtek

License
All Rights
Reserved
licensBg
0