Pulse Width Modulated LED Torch

Pulse Width Modulated LED Torch
Pulse width modulation (PWM) can be used to vary the power, speed or brightness of many devices. With LEDs, PWM can be used to dim them, or make them brighter. I will use them make a small hand torch.

An LED can be dimmed by quickly turning it on and off, several times a second. By varying the mark space ratio, the brightness is varied.
A simple implementation of a PWM system would be a clock feeding an LED and protective resistor to the ground.

The clock should ideally oscillate at a frequency of 50Hz to ensure that you will not see the oscillation. To test this, you can either use a signal generator to provide a square wave, as below, or create a circuit to do it for you.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Relaxation Oscillator

Relaxation Oscillator
This circuit will produce a square wave with a duty cycle of 50%. Two 10K resistors connected to the +input of the op-amp provide a reference voltage, and R1 and C1, connected to the -input, create a time constant which controls the frequency, f = 1/{2ln(3)RC}.

The capacitor C1 charges and discharges through the resistor R1, and the time taken for this cycle to occur is the period of the waveform.

« Previous StepDownload PDFView All StepsNext Step »
12 comments
Sep 5, 2011. 11:52 PMfobot says:
This is a great instrucable! Some very simple and powerful ideas are presented here, Thank you!
Apr 27, 2011. 1:08 PMheaker89 says:
where put the switch?
May 27, 2010. 5:14 PMluckyvictor says:
 so your LED are connected in parallel??
May 28, 2010. 3:13 AMluckyvictor says:
 Thank you very much for replying me, as you can see from my detail, I am a newbie to electronics and just join recently, I have a question about powering up 12  LED, would you mind to have a look of the following link and give me some technological advise please?

http://www.instructables.com/answers/Power-for-12-LED/

thanks again for your time and advise
Jul 21, 2009. 3:45 PMPadlock says:
Err... Exactly what is the point of this? Using them normally (without PWM) would yield just as much light? I could see if there was a potentiometer to adjust the frequency and there for the light output, but there isn't.
Jul 21, 2009. 5:20 PMPadlock says:
Show me the math. How much energy does this save? Does the IC use as much energy?
Jul 20, 2009. 2:34 PMlemonie says:
Nice. Not quite off-topic: PWM is good for model trains, as inertia tends to give unrealistic acceleration from normal controllers. L
Jul 21, 2009. 1:18 AMlemonie says:
I said "not quite off topic" with reference to the rest of my comment. PWM is good for things, and not just LEDs. L

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
2
Followers
1
Author:mathews