Arduino Flash Text on SSD1306 OLED Display

by RonFrtek in Circuits > Arduino

598 Views, 1 Favorites, 0 Comments

Arduino Flash Text on SSD1306 OLED Display

Arduino Blinking Text on SSD1306 OLED Display

In this Tutorial we are going to learn how to Flash a text on the SSD1306 OLED Display.

Watch the Video!

What You Will Need

oled.jpg
336-3361370_arduino-uno-r3-png-png-download-arduino-uno.png
FB48IU6L01BWKAP.jpg
F19QEZ5KK5FQW90.jpg
FJRR1KTKV2I5ZUA.jpg
  • Arduino UNO (or any other Arduino or ESP)
  • OLED Display
  • Jumper wires
  • Breadboard
  • Visuino program: Download Visuino

The Circuit

2022-03-26_12-52-26.jpg
  • Connect OLED pin [VCC]to arduino pin [5V]
  • Connect OLED pin [GND]to arduino pin [GND]
  • Connect OLED pin [SCL]to arduino pin [SCL]
  • Connect OLED pin [SDA]to arduino pin [SDA]

Start Visuino, and Select the Arduino UNO Board Type

F3UOF8GKU2NWUE7.jpg
Visuino-Select-Board-UNO.jpg

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

In Visuino Add & Set Components

2022-03-26_12-36-40.jpg
2022-03-26_12-37-08.jpg
2022-03-26_12-37-33.jpg
2022-01-20_13-00-54.jpg
2022-03-26_12-38-46.jpg
2022-03-26_12-37-53.jpg
  • Add "Pulse Generator" component
  • Add "Digital Multi Source" component
  • Add "Detect Edge" component
  • Add "OLED I2C" component
  • Select "DetectEdge1" and in the properties window set "Rising" to False <<This means that It will detect when the pulse is going from True to False
  • Double click on the "DisplayOLED1" and in the "Elements" window
  • drag "Draw Text" to the left side and in the "Properties" window set "Size" to 3 and "Text" to Flash <<You can adjust size,text and position if you want
  • Also drag "Fill Screen" to the left side
  • Close the "Elements" window

Note: If you want to adjust the speed of blinking select "PulseGenerator1" and in the "Properties" window change the frequency,

In Visuino Connect Components

2022-03-26_12-30-30.jpg
  • Connect "PulseGenerator1" pin [Out] to "DigitalMultiSource1" pin [In]
  • Connect "DigitalMultiSource1" pin [0] to "DisplayOLED1" > "Draw Text1" pin [clock]
  • Connect "DigitalMultiSource1" pin [1] to "DetectEdge1" pin [In]
  • Connect "DetectEdge1" pin [Out] to "DisplayOLED1" > "Fill Screen1" pin [clock]
  • Connect "DisplayOLED1" Pin I2C [Out] to Arduino Pin I2C [In]

Generate, Compile, and Upload the Arduino Code

Visuino-Compile-UNO.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 OLED Display will start to Flash 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.eu

Downloads