How to Scroll the TEXT on I2C 0.91" 128X32 OLED DISPLAY

by RonFrtek in Circuits > Arduino

2868 Views, 4 Favorites, 0 Comments

How to Scroll the TEXT on I2C 0.91" 128X32 OLED DISPLAY

How to Scroll the TEXT on I2C 0.91" 128X32 OLED DISPLAY

In this tutorial we will learn how to Scroll the TEXT on I2C 0.91" 128X32 OLED DISPLAY using Arduino and Visuino software.

Watch the Video!

What You Will Need

s-l16F0TT0.jpg
VisuinoAdvrtisementRaspberryPiRobot.jpg
uno.jpg
breadboard.jpg
F5OFEUQJJ4ZYFKY.LARGE.jpg

Arduino UNO (or any other board)

Start Visuino, and Select the Arduino UNO Board Type

F756MJUKEIJALTQ.jpg
FHO2DUKKEIJALTR.jpg

The Visuino: https://www.visuino.eu needs to be installed. 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

In Visuino Add Components

2020-09-12_15-33-09.jpg
2020-09-12_11-48-59.jpg
2020-09-12_15-34-59.jpg
2020-09-12_15-36-11.jpg
2020-09-12_15-37-48.jpg
2020-09-12_15-39-36.jpg
2020-09-12_15-39-56.jpg
  • Add "Sine Integer Generator" component
  • Add "OLED" component
  • Select "SineIntegerGenerator1" and in the properties window set "Amplitude" to 70, "Frequency (Hz)" to 0.2, "Offset" to 70
  • Select "DisplayOLED1" and in the properties window set "Height" to 32
  • Double click on the "DisplayOLED1" and in the Elements window drag "Draw Text" to the left, in the properties window set Size to 3, Text to VISUINO, Y to 10, select X and click on the Pin icon and select Integer SinkPin
  • In the Elements window Drag "Fill Screen" to the left
  • Close Elements window

In Visuino Connect Components

2020-09-12_15-42-19.jpg
  • Connect "SineIntegerGenerator1" pin Out to "DisplayOLED1>DrawText1" pin X
  • Connect "SineIntegerGenerator1" pin Out to "DisplayOLED1>DrawText1" pin Clock
  • Connect "SineIntegerGenerator1" pin Out to "DisplayOLED1>Fill Screen1" pin Clock

Generate, Compile, and Upload the Arduino Code

2020-09-12_15-45-35.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 UNO module, the OLED Display will start to scroll the "VISUINO" text, watch the video for the detail demonstration.

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

Downloads

The Circuit

2022-09-24_12-02-13.jpg
  • Connect OLED Display pin [VCC]to arduino pin [5V]
  • Connect OLED Display pin [GND]to arduino pin [GND]
  • Connect OLED Display pin [SCL]to arduino pin [SCL]
  • Connect OLED Display pin [SDA]to arduino pin [SDA]