Scrolling Text on Arduino UNO R4 WiFi Using Visuino

by RonFrtek in Circuits > Arduino

95 Views, 1 Favorites, 0 Comments

Scrolling Text on Arduino UNO R4 WiFi Using Visuino

Scrolling Text on Arduino UNO R4 WiFi using Visuino

In this tutorial we will learn how to scroll the text on the Arduino UNO R4 display using Visuino.

Watch the video!

What You Will Need

UNOr4.png
VisuinoAdvrtisemenArduinoUno_R4_4-small.png


Start Visuino, and Select the Arduino UNO R4 WiFi Board Type

select-board-uno.jpg
Visuino-Select-Board-UNO-R4.jpg

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 R4 WiFi" as shown on Picture 2

In Visuino Add Components

2024-05-11_12-59-59.jpg
2024-05-11_13-00-50.jpg
2024-05-11_13-02-00.jpg
  • Add "Clock Generator" component
  • Add "Up/Down Counter" component
  • Add "Integer Multi Source" component

In Visuino Set Components

2024-05-11_13-03-42.jpg
2024-05-11_13-25-15.jpg
2024-05-11_13-04-11.jpg
2024-05-11_13-04-55.jpg
2024-05-11_13-06-38.jpg
2024-05-11_13-05-15.jpg
  • Select ArduinoUNO R4 WiFi board and in the properties window expand Modules>Display and select Elements and click on the 3 dots button, in the Elements window drag "Draw Text" to the left side and in the properties window select "Text" and type HELLO WORLD and select "X" and click on the pin icon and select "Integer SinkPin", also set "Wrap" to False
  • Close the Elements window


  • Select "ClockGenerator1" and in the properties window set "Frequency" to 5, this will be the speed of the scrolling text, you can adjust this value according to your needs


  • Select "UpDownCounter1" and in the properties window set "Initial Value" to 13, this means that we will set the text out of visibility on start
  • Select "UpDownCounter1" and in the properties window set "Max">"Value" to 13, this means that when the text is scrolled it will be placed again out of visibility
  • Select "UpDownCounter1" and in the properties window set "Min">"Value" to -70, this will be the length of the text, experiment with the number according to your text



In Visuino Connect Components

2024-05-11_13-23-19.jpg
r4-scroll text.png
  • Connect "ClockGenerator1" pin [Out] to "UpDownCounter1" pin [Down]
  • Connect "UpDownCounter1" pin [Out] to "MultiSource1" pin [In]
  • Connect "MultiSource1" pin [1] to ArduinoUNO R4 WiFi > Display > "Draw Text1" pin [X]
  • Connect "MultiSource1" pin [1] to ArduinoUNO R4 WiFi > Display > "Draw Text1" pin [Clock]


Generate, Compile, and Upload the Arduino Code

Visuino-Compile-UNOR4.jpg

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.

Play

If you power the Arduino module the LEDs on the Arduino Display will start to scroll the text.

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