Dim The Rgb Led Arduino Nano Esp32 Using Visuino

About the project

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.

Project info

Difficulty: Easy

Platforms: ArduinoVisuino

Estimated time: 1 hour

License: GNU General Public License, version 3 or later (GPL3+)

Items used in this project

Hardware components

Arduino Nano 33 BLE Arduino Nano 33 BLE x 1

Software apps and online services

Visuino Visuino

Story

Step 1: What You Will Need

1 / 2

Step 2: Start Visuino, and Select the Arduino Nano ESP32 Board Type

1 / 2

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

Step 3: In Visuino Add & Connect Components

1 / 3

  • 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"

Step 4: Generate, Compile, and Upload the Project

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.

Step 5: 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

Schematics, diagrams and documents

Visuino File

Code

Visuino File

Credits

Photo of Ron

Ron

Arduino Developer

   

Leave your feedback...