• 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 » Fading LED Circuit using Arduino and Potentiometer

Fading LED Circuit using Arduino and Potentiometer

Last updated on 11 December 2025 by Admin-Lavi Leave a Comment

This project shows how to control Fading LED Circuit using Arduino and Potentiometer.

Potentiometer gives analog voltage.

By rotating the potentiometer knob varies the voltage output and arduino reads this variation.

Arduino reads it and changes LED brightness and this LED brightness changes smoothly.

It is easy to make a simple project for beginners and Arduino lovers.

Arduino Coding:

int pot=A0;
int led=9;
int val=0;

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

void loop()
{
val=analogRead(pot);
val=map(val,0,1023,0,255);
analogWrite(led,val);
}

Code Explanation:

  • analogRead reads value from potentiometer.
  • Value is between 0 and 1023.
  • map function converts it to 0 to 255.
  • analogWrite sends PWM to LED on pin 9.
  • Low value makes dim LED.
  • High value makes bright LED.
  • Loop repeats always.

Circuit Working:

Fading LED Circuit Diagram using Arduino and Potentiometer

Parts List:

ComponentsQuantity
Resistor 1.5k 1/4 watt1
Potentiometer 10k1
Arduino Uno1
LED any 5mm1

In this above circuit potentiometer changes its internal resistance.

This changes voltage at center pin of potentiometer VR1.

Arduino reads voltage level and converts voltage into PWM brightness.

LED brightness slowly increases or decreases when knob rotates.

R1 resistor limits LED current to prevent burning out the LED.

It works like manual dimmer.

Formula with Calculation:

Formula for current through the LED is given by ohms Law:

I = Vsource​ − VLED​​ /R

where,

  • Vsource​ is 5 V Arduino output
  • VLED is 2V for a typical red LED
  • R is the resistor value 1.5 k

Voltage across resistor = 5V – 2V = 3V

Current needed = 2mA approx since using 1.5k resistor

R = V ÷ I = 3v ÷ 0.002A = 1500 ohm

So 1.5k resistor is correct value we used in this circuit.

How to Build:

To build a Fading LED Circuit using Arduino and Potentiometer follow the below connection steps:

  • Take all the parts as shown in circuit diagram.
  • Potentiometer pin left connect to Arduino 5V
  • Potentiometer pin right connect to Arduino GND
  • Potentiometer center pin connect to Arduino A0
  • Arduino pin 9 connect to resistor 1.5k and LED positive
  • LED negative connect to Arduino GND

Conclusion:

This Fading LED Circuit using Arduino and Potentiometer helps understand analog input and PWM output in Arduino.

Potentiometer controls LED brightness in smooth way.

Circuit uses only one LED, one resistor and one potentiometer.

This circuit is good for basic Arduino learning.

References:

LED Fade Series Using Potentiometer

Filed Under: Arduino Projects, LED and Lamps

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: « Simple Up Down Fading LED Circuit
Next Post: Audio Sound Generator Circuit using IC 555 »

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar




Categories

  • Alarm Circuits (45)
  • Amplifier Circuits (67)
  • Arduino Projects (99)
  • Audio Circuits (114)
  • Automobile Circuits (19)
  • Battery Charger Circuits (65)
  • Free Energy (13)
  • Heater and Temperature Controllers (13)
  • High Voltage (1)
  • Indicator Circuits (45)
  • Inverter Circuits (20)
  • IoT projects (1)
  • LDR Circuits (26)
  • LED and Lamps (148)
  • Meters and Testers (30)
  • Motor Controllers (22)
  • Oscillator Circuits (39)
  • Power Supply Circuits (104)
  • Remote Control Circuits (10)
  • Security and Protection (29)
  • Sensors and Detectors (126)
  • Solar Circuits (29)
  • Timer Circuits (41)
  • Transistor Circuits (87)
  • Transmitter Circuit (17)
  • Tutorials (8)
  • Water Level Controller (6)

Recent Posts

  • 12V Battery Low Voltage Alarm Circuit
  • Low Voltage Alert Circuit for 9V Battery
  • Digital Code Lock Circuit using IC 4017
  • Darkness Activated LED Circuit
  • Fan Start 10 Second Delay Timer Circuit

Recent Comments

  1. TDHofstetter on DIY Variable Power Supply Circuit using Arduino
  2. feathbuff on Simple Micro Ampere Meter Circuit
  3. Admin-Lavi on Simple School Project Multimeter Circuit
  4. choke on Simple School Project Multimeter Circuit
  5. Admin-Lavi on Analog to Digital Converter Circuit using IC 555

Copyright © 2026 | New Circuit Ideas