Arduino Nano ESP32 RGB LED Blink Using Visuino

by RonFrtek in Circuits > Arduino

238 Views, 2 Favorites, 0 Comments

Arduino Nano ESP32 RGB LED Blink Using Visuino

Arduino Nano ESP32 RGB LED Blink using Visuino

Learn how to program Arduino Nano ESP32 board to blink the built-in RGB LED using Visuino.

You will learn how to switch the color with every blink.

Watch the Video!

What You Will Need

Arduino Nano ESP32.jpg
VisuinoAdvrtisemenM5StackCoreS3.jpg


Start Visuino, and Select the Arduino Nano ESP32 Board Type

select-board-uno.jpg
2023-12-04_15-31-44.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 Nano ESP32" as shown on Picture 2

In Visuino Add Components

2023-12-04_15-43-15.jpg
2023-12-04_15-43-37.jpg
2023-12-04_15-46-13.jpg
2023-12-04_15-45-25.jpg
  • Add "Pulse Generator" component
  • Add "Digital Multi Source" component
  • Add "Counter" component
  • Add "Digital Demux(Multiple Output channel Switch)" component

In Visuino Set Components

2023-12-04_15-38-45.jpg
2023-12-04_15-39-05.jpg
2023-12-04_15-39-25.jpg
  • Select "Counter1" and in the properties window set "Max" > "Value" to 2 and "Min" > "Value" to 0
  • Select "DigitalDemux1" and in the properties window set "Output Pins" to 3
  • If you want to increase the speed of the blinking select "PulseGenerator1" and in the properties window change the "Frequency" value

In Visuino Connect Components

2023-12-04_15-37-34.jpg
nano-rgb-blink.png
  • Connect "PulseGenerator1" pin [Out] to "DigitalMultiSource1" pin [In]
  • Connect "DigitalMultiSource1" pin [0] to "Counter1" pin [In]
  • Connect "DigitalMultiSource1" pin [1] to "DigitalDemux1" pin [In]
  • Connect "Counter1" pin [Out] to "DigitalDemux1" pin [Select]
  • Connect "DigitalDemux1" pin [0] to Arduino Nano ESP32 > RGB > Red pin [Digital]
  • Connect "DigitalDemux1" pin [1] to Arduino Nano ESP32 > RGB > Green pin [Digital]
  • Connect "DigitalDemux1" pin [2] to Arduino Nano ESP32 > RGB > Blue pin [Digital]

Generate, Compile, and Upload the Project

2023-12-04_15-36-46.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

After uploading the project to the Arduino Nano ESP32 the internal RGB LED will blink.

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