• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Arduino Based Control LED Light Circuit with Potentiometer

Arduino Based Control LED Light Circuit with Potentiometer

Last updated on 29 June 2026 by Admin-Lavi Leave a Comment

Want to make an LED glow bright or dim just by turning a knob? then this simple Arduino Based Control LED Light Circuit with Potentiometer does that same thing.

Turn the knob to adjust the LED light from soft to full brightness, also it is a fun and easy way to learn how Arduino reads analog signals.

Additionally, it also shows how PWM controls the LED light intensity.

Arduino Code:

int potPin = A0;
int ledPin = 9;
int potValue = 0;
int ledValue = 0;

void setup() {
pinMode(ledPin, OUTPUT);
}

void loop() {
potValue = analogRead(potPin);
ledValue = map(potValue, 0, 1023, 0, 255);
analogWrite(ledPin, ledValue);
delay(10);
}

Coding Explanation:

  • PotPin read analog value from potentiometer between 0 and 1023.
  • Map function change this value to range 0 to 255.
  • AnalogWrite send PWM signal to LED pin 9.
  • When we turn potentiometer, voltage also change.
  • This change make LED bright or dim.

Circuit Working:

Arduino Based Control LED Light Circuit Diagram with Potentiometer

Parts List:

ComponentsValuesQuantity
Resistors220Ω 1/4 watt1
Potentiometer 10k1
SemiconductorsArduino UNO Board1
LED any color1

To begin with, when the potentiometer rotates, its resistance changes and changes the voltage on analog pin A0; after that, the Arduino reads this voltage and generates a PWM output.

Then PWM controls the average current through the LED, so the LED becomes dim or bright.

How to Build:

To build a Arduino Based Control LED Light Circuit with Potentiometer follow the below collection steps:

  • First, take all the parts as shown in circuit diagram above.
  • Next, connect the potentiometer middle pin to analog pin A0 of Arduino.
  • Then connect the left pin of the potentiometer to 5V.
  • After that, connect the right pin of the potentiometer to GND.
  • Now connect the LED positive leg (anode) to digital pin 9 through a 220 ohm resistor and finally, connect the LED negative leg (cathode) to GND of Arduino.

Conclusion:

Overall, this Arduino Based Control LED Light Circuit with Potentiometer is a simple way to control LED brightness, also it helps to learn about analog input and PWM output in Arduino.

Furthermore, we can use this in small light dimmer projects or sensor control projects.

Filed Under: Arduino Projects, LED and Lamps, Mini Projects

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Push Button LED Circuit using Arduino
Next Post: Adjust LED Glow with Potentiometer Circuit »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • 555 Timer Projects (137)
  • Alarm Circuits (81)
  • Amplifier Circuits (94)
  • Arduino Projects (103)
  • Audio Circuits (189)
  • Automation Circuits (150)
  • Automobile Circuits (40)
  • Battery Charger Circuits (88)
  • DIY Projects (435)
  • Free Energy (12)
  • Heater and Temperature Controllers (32)
  • High Voltage (24)
  • Hobby Circuits (241)
  • Indicator Circuits (63)
  • Inverter Circuits (17)
  • IoT projects (12)
  • LDR Circuits (47)
  • LED and Lamps (201)
  • Meters and Testers (44)
  • Mini Projects (390)
  • Motor Controllers (26)
  • Oscillator Circuits (70)
  • Power Supply Circuits (244)
  • Radio Frequency (8)
  • Remote Control Circuits (12)
  • Renewable energy (20)
  • Security and Protection (128)
  • Sensors and Detectors (236)
  • Solar Circuits (31)
  • Timer Circuits (63)
  • Transistor Circuits (178)
  • Transmitter Circuit (19)
  • Tutorials (33)
  • Voltage Regulator (55)
  • Water Level Controller (10)

Recent Posts

  • Low Current Controlled Battery Charger Circuit using LM723 IC
  • 741 Op-Amp Treble Booster Circuit
  • Simple Diode and Transistor Based Audio Limiter Circuit
  • Simple 500mW Speaker Driver Circuit
  • Easy DIY LM386 Audio Amplifier Circuit

Recent Comments

  1. Admin-Lavi on High Voltage Fence Charger Circuit
  2. etere on High Voltage Fence Charger Circuit
  3. Admin-Lavi on High Voltage Fence Charger Circuit
  4. egidio grzinic on High Voltage Fence Charger Circuit
  5. Logic OR Gate Circuit using Transistors - Circuit Ideas for You on Automatic Street Light Circuit using LDR

Copyright © 2026 | New Circuit Ideas