Site icon Circuit Ideas for You

PWM LED Ramping Circuit (Slow Bright, Slow Fade)

An PWM LED Ramping Circuit helps change the brightness of an LED smoothly, so it lights up gradually instead of just turning on and off suddenly.

This smooth lighting effect is really useful for many things, like visual signals, decorative lights and soft signaling systems.

The circuit shown here uses two IC 555 timers, an LM393 comparator and a 2N7000 MOSFET to create this gradual change in brightness.

To work best the power supply for this circuit should be between 3 to 12 volts and using 6 volts is especially good for this circuit.

Circuit Working:

Parts List:

ComponentValue/Part No.QuantitySpecification
Resistors (1/4W)
Resistor47k11/4W
Resistor1M11/4W
Resistor10k11/4W
Resistor180Ω11/4W
Capacitors
Ceramic Capacitor0.001µF1
Electrolytic Capacitor1µF 25V1
Semiconductors
ICIC 5552
ICLM3931
MOSFET2N70001
LEDAny 5mm 20mA1

In the above circuit diagram IC1 555 timer works as a square wave generator.

It creates a clock pulse at its output, which is found at Pin 3.

The frequency of this pulse depends on the values of resistor R1 and capacitor C1.

IC2 555 timer device acts as a ramp signal generator.

Here, capacitor C2 charges and discharges causing the voltage to change slowly over time.

The rate of this voltage change is controlled by resistor R2 and capacitor C2 together.

IC3 LM393 comparator component compares the ramp signal to a set reference voltage.

It produces a pulse width modulated PWM signal based on the voltage level of the ramp signal.

Q1 2N7000 MOSFET works like a switch that controls how bright the LED is.

The PWM signal from the comparator adjusts the MOSFETs conduction which makes the LEDs brightness gradually slow bright, slow fade.

Formulas with Calculations:

Formulas with Calculations are mentioned below for PWM LED Ramping Circuit (Slow Bright, Slow Fade):

IC1 555 Square Wave Oscillator Frequency:

f = 1.44 / (R1 × C1)

where,

Calculation:

R1 = 47kΩ (47000Ω)

C1 = 0.001µF (0.000001F)

f = 1.44 / (47000 × 0.000001)

f = 30.6 kHz

IC2 555 Ramp Generator Time Constant:

t = R2 × C2

where,

Calculation:

R2 = 1MΩ (1000000Ω)

C2 = 1µF (0.000001F)

t = 1000000 × 0.000001

t = 1 second

MOSFET Current Calculation:

I_LED = (V_supply – V_MOSFET) / R4

where,

Calculation:

I_LED = (6 – 0.2) / 180

I_LED = 32mA

How to Build:

To build a PWM LED Ramping Circuit (Slow Bright, Slow Fade) following steps should be followed to design your own circuit for connections:

Conclusion:

This PWM LED Ramping Circuit gradually makes an LED slow bright, slow fade giving it a nice fading look.

It uses 555 timers, a comparator and a MOSFET to keep everything running smoothly and reliably.

You can change the fading speed by tweaking the resistor and capacitor values which makes it useful for various projects.

References:

PWM Led Fade out slowly help required!

Exit mobile version