user-img

FUSION AUTOMATE

  • 16 Projects
  • 4 Followers
  • Nov 02,2025
+ Follow

Dual Slider LED Blink Controller using ESP32

A dual-slider ESP32 project that controls LED blink speed in real time using two analog slide potentiometers and a toggle switch with live LCD feedback.

Dual Slider LED Blink Controller using ESP32
 
  • thumbnail-img
 

Hardware Components

  • Espressif ESP32 Development Board

    X 1
  • Sliding Potentiometer

    X 1 fenxiang

Tools, APP Software Used etc.

  • VS Code

Story

???? Overview

This project demonstrates how to control an LED's blink rate in real time using two analog slide potentiometers and an ESP32.
toggle switch is used to select which slider (A or B) is currently active, and a 16x2 LCD displays the active slider, its blink rate, and the inactive slider’s rate.

It’s a clean, practical project for learning analog input handlingnon-blocking timing (millis), and LCD interfacing with ESP32.


⚙️ Features

  • Dual analog slide potentiometers (POT_APOT_B)
  • Toggle switch for selecting the active slider
  • Real-time LCD display of blink rates
  • Non-blocking LED blinking using millis()
  • Fully functional on breadboard (no external libraries beyond LiquidCrystal)

???? Working Principle

  1. Each potentiometer outputs an analog voltage (0–3.3 V) read via ESP32 ADC pins.
  2. The values are mapped to a time delay range (50 ms – 500 ms).
  3. The toggle switch decides which slider controls the LED’s blink rate.
  4. The LCD shows the current active slider (marked with *) and the corresponding blink rate.
  5. The LED blinks using non-blocking logic, ensuring smooth updates and display refreshes.

???? Components Required

Component Quantity Description
ESP32 Dev Board 1 Main microcontroller
16x2 LCD (JHD162A) 1 Parallel interface LCD display
Slide Potentiometer (10 kΩ) 1 Analog input sliders
SPDT Toggle/Slide Switch 1 For slider selection
Jumper Wires For connections
Breadboard 1 Circuit assembly

???? Pin Connections

Component Pin ESP32 GPIO
LCD RS 12
LCD E 13
LCD D4 14
LCD D5 27
LCD D6 26
LCD D7 25
POT A Output 34
POT B Output 35
Switch Output 33
LED + 2
LED GND
LCD VCC 5 V
LCD GND GND

???? Core Concepts Used

  • Analog to Digital Conversion (ADC)
  • map() function for value scaling
  • Non-blocking delay using millis()
  • LCD interfacing (parallel mode)
  • State control with a toggle switch

???? Applications

  • Demonstrating analog control and feedback systems
  • DIY learning project for beginners in embedded systems
  • Adaptive LED indicators
  • Foundation for motor-speed or brightness controllers
Code
  • Source Code

    https://github.com/AhirTech1/Dual-Slider-LED-Blinker.git
    View
Schematic and Layout
  • circuit-diagram

    Screenshot_2025-11-02_193610_1701311630690765bfe3a1a.png
    Download(1)

Dual Slider LED Blink Controller using ESP32

A dual-slider ESP32 project that controls LED blink speed in real time using two analog slide potentiometers and a toggle switch with live LCD feedback.

701
 
9
0
0
These revenues will go back into supporting creators, contests, and the open source ecosystem, and more.

Share your project on social media to expand its influence! Get more people to support it.

  • Comments( 0 )
  • Like( 9 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All
Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Country: Shipping Way:
Assembly Cost: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
CNC Milling File : Size:
Unit: Volumn:
CNC Milling Qty : Material:
Type of Aluminum: Surface Finish:
Tolerance:
Surface Roughness:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Item Price Qty Subtotal Delete
Total: US $0.00
Certified Product | Guaranteed Purchase: Full techsupport