Dim the RGB LED Arduino Nano ESP32 Using Visuino

by RonFrtek in Circuits > Arduino

128 Views, 1 Favorites, 0 Comments

Dim the RGB LED Arduino Nano ESP32 Using Visuino

Dim the RGB LED Arduino Nano ESP32 Using Visuino

In this tutorial we will use the built-in RGB LED on Arduino Nano ESP32 and Visuino to make dim the LED using the Pulse Width Modulation (PWM) and Sine Analog Generator component.

Watch a demonstration video.

What You Will Need

Arduino Nano ESP32.jpg
VisuinoAdvrtisemenM5StackCoreS3 (1).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 & Connect Components

2023-12-04_16-53-28.jpg
2023-12-04_16-52-41.jpg
nano-rgb-pwm.png
  • Add "Sine Analog Generator" component
  • Connect "SineAnalogGenerator1" pin [Out] to Arduino Nano ESP32 > RGB > Blue pin [Digital]


  • If you want to change the speed just select the "SineAnalogGenerator1" and in the properties window change the "Frequency"


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 start to Dim.

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