3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Electronics Projects: Constant Current Power Supply using Pulse Width Modulation

Electronics Projects: Constant Current Power Supply using Pulse Width Modulation
Light an LED, Power a motor, this simple - ish circuit will accommodate all you constant current needs using NE555 chips! This is a great way to learn about electronics and although not as efficient as using a pre made buckpuck, this is more fun, cheaper and hopefully you'll learn something too!
 
Remove these adsRemove these ads by Signing Up
 

Step 1Intro

Intro
Aim
To build on breadboard a circuit which will control the current across a load by using pulse width modulation for maximum power efficiency.
To operate the circuit the user will plug the circuit into a power supply; this will keep the load at a constant predetermined current.

Spec (don't worry about these bits yet, i will explain what these numbers mean later)
Power supply voltage: 15V,0V,-15V
Astable Frequency: 60KHz
Astable Space Period: 16µs
Astable Mark Period: 0.7µs
Monostable Period: 8µs (half the period of the astable)
Reference Voltage: 2mV
Output current: 2mA

Explanation
1. Astable oscillates when circuit is connected to power supply.
2. Falling edge of the astable will trigger the monostable.
3. Monostable will stay high for a variable period; this period is modulated by the difference amplifier.
4. Mosfet switches and allows current to flow.
5. Current Set circuit uses LC to smooth out the voltage into a DC flow.
6. Output is high, LED comes on.
7. Current in load gets too high.
8. Difference amplifier attempts to make this the same as the reference by changing its output.
9. Output of difference amplifier drops.
10. Period of monostable decreases.
11. Monostable on for less time per astable oscillation.
12. Mosfet switches on for less time.
13. After smoothing the voltage is less.
14. Less current across the load.
15. Difference amplifier output rises.
16. Monostable period increases.

Block Diagram:
Here is a diagram where i have split the project down into 'manageable' chunks, i will explain each chunk individually to help with the build.
« Previous StepDownload PDFView All StepsNext Step »
31 comments
Mar 17, 2008. 12:29 PMvicti_vicimus says:
This is interesting, but I get a lot of gibberish where more unusual characters are not rendered by Foxfire, Internet Explorer or Apple Safari. Can you help?
Mar 20, 2012. 11:45 AMGASSYPOOTS says:
use chrome :D
Sep 2, 2008. 11:55 PMthermoelectric says:
I still get the gibberish
Nov 9, 2008. 2:37 AMjmcol says:
I am sorry but 8 months after your answer to victi_vicimus, I still get a lot of gibberish like this on step 2:
"T1=0.7((1xã�–10ã�—3 )+(22xã�–10ã�—3 ) )(1xã�–10ã�—(-9)) = 16�µs"

It's a pitty because your article seems quite interesting and serious.
Sep 22, 2011. 9:02 AMJimmy Proton says:
Its instructables fault...
Dec 17, 2008. 12:55 PMPeterMacGonagan says:
Me too. Could you solve this problem, please?
Feb 19, 2009. 9:22 AMmbk.2k3 says:
can you please re-upload this without all these random characters in between? makes for a very confusion read in some sections :)
Nov 21, 2008. 10:18 PMmarcia09 says:
Hello, I´m new to this and am trying (hard) to make a display sign with leds; I have bought lots of leds I have soldered in parallel with 330 ohm resistors to make the sign. I also bought a breadboard, and a 555 IC and a 4017 IC, because I would like the first word (four letters) to flash as a whole, and the second word (8 letters) to flash sequentially. I succeeded in making my circuit on the breadboard, with one led representing the first word, and 8 leds representing the 8 letters of the second word, but now I have the problem to find a suitable transistor to amplify the power. The first led, coming out the 555 represents about eighty 20 mAmp leds (thus about 1.6Amp, right?) and the other 8 leds represents about 20 leds letters (so 500 mAmp should do). I have tried connecting a 2n2222 transistor on the breadboard with a flash lamp rated 500 mAmps instead of one of the 8 led (I do not want to make the tests with my mounted leds so as not to risk losing hours of soldering work) but it does not light up, not even a little. Then, I connected an led (5 mm) after the transistor and it blinks normally !! You seem like the expert on this, Can you help me ? Thank you in advance
Apr 23, 2008. 11:06 PMSynK says:
Umm, unless I am wrong, there is no way to get a constant current with PWM. It works by timing pulses of electricity with certain durations giving the illusion of varying voltage and amperage, while actually putting through the same current in "short spurts." If I am wrong about this, please e-mail me with a better explanation.
Aug 6, 2008. 8:46 AMcarlitoscr says:
You are right, that is how PWM works BUT you can still get constant current and/or voltage after you add the propper filtering network. These networks are normally RC circuits for linear power supplies or LC networks for switching supplies like this one. Non filtered PWM output swings from 0% to 100% of the output voltage. Propperly filtered outputs can have a ripple voltage less than 0.1% which renders the outupt constant in 99.9%
Aug 6, 2008. 9:45 AMSynK says:
Thanks for straightening me out.
Aug 6, 2008. 11:03 AMcarlitoscr says:
It's been a pleasure!
Jun 2, 2008. 6:17 PMhdh says:
I want to run electroluminescent wire not LED’s will this type of power supply work?
Aug 6, 2008. 8:23 AMcarlitoscr says:
For an EL wire you need relatively high voltage and frequency. As an example: 90Vac running at 2kHZ. You can check worldaglow.com or http://en.wikipedia.org/wiki/El_wire for more information.
Mar 20, 2008. 11:12 PMcobrasniper555 says:
Maybe a suggestion, but can you make a similiar device that outputs much more current and less voltage? Would this be possible on a similiar scale and funding? Also (it seems like this is a good place to ask), is there a way to up output of say an alarm clock? Like when the charge is send to the buzzer, can it be modified to a higher current by use of capacitors or what not? Thanks!
Mar 18, 2008. 5:48 PMrayfalcon says:
ok first off what type of capacitors and resistors and what uF and V and how many mF how much sensitivity and by u saying power source you mean a 120 vac wall plug? i need it fairly simply i had a seizure and lost all of my logical memory. also what size if any pot switches and is there any dip switches? if no dip switches can a person add dipp switches at the gateway and transverse or revers the flow into a diff direction or higher current and or a lower current? email me any detailed pics and or instructions please truckinforjesus@windstream.net
Mar 18, 2008. 7:29 AMcomputerwiz_222 says:
I have one quesion. How do you get the wires so tight on your bread board. I love to proto my projects out on my bread board, but it almost always turns out to be a big mess of wires.
Mar 18, 2008. 12:25 PMcomputerwiz_222 says:
thanks so much! Its funny, i learned to solder, make boards, read schematics etc. but i never learned how to properly bread board a circuit.
Mar 18, 2008. 5:16 AMAhmedqatar says:
GREAT !!! Faved !!!
Mar 17, 2008. 6:51 PMthe.russkey says:
why not use something like a wilson current mirror (wikipedia article instead?
Mar 16, 2008. 3:28 PMLinuxH4x0r says:
Cool! I needed this. Hopefully my parts come from ti on monday.
Mar 16, 2008. 5:45 PMLinuxH4x0r says:
Actually that was worded badly- The parts are mostly audio related.

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!
8
Followers
2
Author:drummer ian