ESP32-C3 LCD Kit - RGB LED Brightness & Random Color Using Visual Programming

by RonFrtek in Circuits > Arduino

345 Views, 0 Favorites, 0 Comments

ESP32-C3 LCD Kit - RGB LED Brightness & Random Color Using Visual Programming

ESP32-C3 LCD Kit - RGB LED Brightness & Random Color Using Visual Programming

In this Visuino project, you will learn how to use the ESP32-C3 LCD kit to control an RGB LED’s brightness with a rotary encoder. Turning the encoder adjusts the brightness in steps from 0 to 1 with 0.1 increments, and the current brightness level is shown directly on the LCD display. Pressing the encoder’s button instantly sets a random LED color, making the project both fun and interactive.


This tutorial is perfect for learning how to:

  1. Configure and Use the rotary encoder on ESP32-C3
  2. Display live brightness values on the LCD screen
  3. Randomize LED colors with a simple button press
  4. Use Visuino Visual Programming to quickly design interactive IoT projects

Bring your ESP32-C3 LCD kit to life with this engaging RGB LED brightness controller!

Watch the Video!

What You Will Need

VisuinoAdvrtisemen_ArduinoMatter-s.png
ESP32-C3 LCD kit.jpg
  1. ESP32-C3 LCD kit
  2. Visuino program: Download Visuino


Start Visuino, and Select the ESP32-C3 LCD Kit Board Type

select-board-uno.jpg
2025-09-25_10-37-45.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 "ESP32-C3 LCD kit" as shown on Picture 2

In Visuino Add Components

2025-09-25_10-03-53.jpg
Analog Multi Source.jpg
Color Value.jpg
Debounce Button.jpg
Random Color.jpg

Add Integer To Analog component

Add Analog Multi Source component

Add Color Value component

Add Random Color component

Add Debounce Button component

In Visuino Set Components

2025-09-25_10-08-06.jpg
2025-09-25_10-07-48.jpg
2025-09-25_10-12-16.jpg
2025-09-25_10-09-54.jpg
2025-09-25_10-15-15.jpg
2025-09-25_10-15-28.jpg
2025-09-25_10-16-57.jpg
  1. Select "IntegerToAnalog1" and in the properties set "Scale" to 0.1
  2. Double click on the "Color Value" and in the Elements window add:
  3. Set Value
  4. Add another Set Value and in the properties window select "Color", click on the pin icon and select "Color SinkPin"


  1. Select "ESP32-C3 LCD kit" board and in the properties window select "Modules" > "RGB LED" > "Brightness" , click on the pin icon and select "Float SinkPin"
  2. Select "ESP32-C3 LCD kit" board and in the properties window select "Modules" > "Display" > "Elements" , click on the 3 dots button and in the Elements window drag "Text Field" to the left side and in the properties window set "Size" to 5, "X" to 60 and "Y" to 100
  3. Select "ESP32-C3 LCD kit" board and in the properties window set "Rotary Encoder" > "Max" > "Value" to 10 and "Roll Over" to False, and "Min" > "Value" to 0 and "Roll Over" to False.


In Visuino Connect Components

2025-09-25_10-21-11.jpg
2025-09-25_10-21-30.jpg
esp32 kit brightness.jpg
  1. Connect "ESP32-C3 LCD kit" > "Rotary Encoder" Pin [Out] to "IntegerToAnalog1" Pin [In]
  2. Connect "IntegerToAnalog1" Pin [Out] to "MultiSource1" Pin [In]
  3. Connect "MultiSource1" Pin [0] to "ESP32-C3 LCD kit" > "RGB LED" Pin [Brightness]
  4. Connect "MultiSource1" Pin [0] to "ESP32-C3 LCD kit" > "Display" > "Text Field1" Pin [In]
  5. Connect "ESP32-C3 LCD kit" > "Rotary Encoder" Pin [Press] to "Button1" Pin [In]
  6. Connect "Button1" pin [Out] "RandomColor1" Pin [Clock]
  7. Connect "RandomColor1" Pin [Out] "ColorValue1" > "Set Value2" Pin [Value]
  8. Connect "RandomColor1" Pin [Out] "ColorValue1" > "Set Value2" Pin [In]
  9. Connect "RandomColor1" Pin [Out] "ColorValue1" > "Set Value1" Pin [In]
  10. Connect "ESP32-C3 LCD kit" > "Rotary Encoder" Pin [Up] to "ColorValue1" > "Set Value1" Pin [In]
  11. Connect "ESP32-C3 LCD kit" > "Rotary Encoder" Pin [Down] to "ColorValue1" > "Set Value1" Pin [In]
  12. Connect "ESP32-C3 LCD kit" > "Rotary Encoder" Pin [Up] to "ColorValue1" > "Set Value2" Pin [In]
  13. Connect "ESP32-C3 LCD kit" > "Rotary Encoder" Pin [Down] to "ColorValue1" > "Set Value2" Pin [In]
  14. Connect "ColorValue1" Pin [Out] to "ESP32-C3 LCD kit" > "RGB LED" Pin [In]

Generate, Compile, and Upload the Code

2025-09-25_10-36-11.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

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