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.

Simple (and dirty) Pulse Width Modulation (PWM) With 555 Timer

Simple (and dirty) Pulse Width Modulation (PWM) With 555 Timer
Simple circuit for DC Motor speed control (fan speed control, light / LED dimming and etc) using the 555 timer.

Also a good starting point for novices wanting to get their hands dirty with the 555 timer IC. Some would argue that this is not the most efficient approach, but hey (read the title), it's simple, and it works.

Check the video out.
More images and description here.



Pulse Width Modulation (PWM)

Put simply PWM is the process of switching power ON and OFF to a device in pulses at a specific frequency. Same approach used in commercial light dimmers, DC motor speed controller, CPU fan speed controllers and etc.

That's what we seek to achieve here.

 
Remove these adsRemove these ads by Signing Up
 

Step 1Part List

Part List
Part list

1) 555 timer IC - 1
2) 100K variable resistor - 1
3) 1N4148 Diode - 2
4) 100nF capacitor - 2

The 555 Timer IC

The 555 timer is arguably one of the most popular IC ever made. There are thousands of resources online if you're interested to delve deeper into the subject. I'm just going to give the simple description directly relevant to the build

PIN 1 - Ground
DC Ground

PIN 2 - Trigger
When LOW, it causes the Output pin to go HIGH. Activated when voltage fall
below 1/3 of +V.

PIN 3 - Output
Output is HIGH when Trigger pin is LOW. Output is LOW when Threshold pin is
HIGH. Output is LOW when reset pin is LOW.Output pin is able to source or sink
current.

PIN 4 - Reset
Short to +V when not in use.

PIN 5 - Control Voltage
Grounded through a capacitor when not in use.

PIN 6 - Threshold
When voltage reaches 2/3 of +V, this pin will cause Output to be driven LOW.

PIN 7 - Discharge
Grounded when Output pin goes HIGH.

PIN 8 - +V
DC Power
« Previous StepDownload PDFView All StepsNext Step »
87 comments
1-40 of 87next »
Feb 15, 2012. 9:47 PMHomepwner says:
(removed by author or community request)
Feb 17, 2012. 6:50 PMHomepwner says:
I've been checking out some other schematics that I found easier to comprehend.
yours is different then the ones I'm used to and I think that is part of my problem.
Thanks for the link! it sounds awesome.
Dec 6, 2011. 9:49 AMbudhaztm says:
ok so with the caps do you mean 100 microfarads or 100 nanofarads? im building this for a very large science project which i will post online. thanks for help
Jul 26, 2009. 6:43 AMjamesjamesjames says:
what is the advantage of this over just a motor and a pot?
Jan 13, 2010. 6:50 AMpauls_boat says:
using a motor and a pot when you slow down the motor the extra power is just turned into hear in the pot using this when you slow the motor you are just turning it off and on very fast and dont wast the extra power
Dec 5, 2011. 8:03 AMsolaralternatives says:
Paul meant to say (waste) heat.
Mar 3, 2011. 12:37 PMmnova says:
I only have a 20K pot but the circuit still works if I give the motor an initial spin.

How can i increase the power output on this circuit?
Dec 5, 2011. 8:02 AMsolaralternatives says:
Use it to drive a cheap power transistor
Dec 4, 2011. 10:31 PMjagzi says:
Hi,
We are connecting a motor to the circuit, shouldn't we attach a protective diode for taking care of the back EMF ? Please clarify.
Thank you in advance .
Jagzi
Aug 6, 2011. 6:56 PMnseguin says:
Hi, I'm new to electronics and have given a shot a building this. Unfortunately my local Source didn't have the exact list of what I needed. I used 2 100uF capacitors, 2 1N4001 diodes and a 3W pot. When I try and control a small motor, no success. I'm using a 12V battery. Any ideas or suggestions?
Nov 16, 2011. 11:43 AMcamservo says:
I'm also new. I built this circuit and noticed that, while I had a 12v source, the output was only in the realm of 1v. Not sure where the drop came from. Might be a mistake I made, might be part of the design.
Oct 15, 2011. 9:47 AMsimonrc says:
Hi and thanks for the instructable! I would like to add a photoresistor in order to modify pwm speed by light intensity, but I'm not quite sure where to put it - in between IC pin 3 and center of pot? I would be most grateful for help! thanks!
Aug 27, 2011. 9:36 AMbtdzimba1 says:
I tried simulating the circuit before i built it and noticed that the 100k pot doesnt seem to do anything
Feb 8, 2009. 8:27 PMgirrrrrrr2 says:
is there a way i could get you to add a pic of the chip with the wires on it because this is just a little confusing to me... (my first try with a 555)
Feb 16, 2010. 4:50 AMdeepanjan91 says:
 @girrrrrr2 : count/number the pins of the IC in ascending order and counterclockwise from the notch. There must be a notch on the IC. Hope this helps
Mar 7, 2010. 11:01 AMgirrrrrrr2 says:
true true...
i was just kinda wanting a pic with it all hooked up so i could see this is what i want to achieve.
Jun 29, 2011. 11:54 AMedalgetty says:
a friend of mine told me this: just draw the 555 and then draw the circuit around it, its a little tedious but i think its really worth it
Apr 19, 2011. 2:04 PMBG79 says:
Hi. I tryed to make this, but instead of reduce or increase leds brightness it just turns it on and of with a little delay. Any bet where I went wrong?

And is there a way to make this PWM outputs ~ 500mAh? I´m trying to use it into a superled, but 200mAh is too low. Tkz.
Mar 15, 2011. 11:08 PMzs says:
if i made 2 of these, and instead of a motor i used a speaker, would it be similar to a extremely basic droning machine like the Grendel drone commander?
Feb 22, 2011. 7:51 AMrobot1398 says:
good project.
works great

Jun 16, 2010. 4:32 PMdannyces says:
ok so i just tried this and i get nothing.... i mean i get the led to light up but i get no change when i turn the pot??????
Apr 6, 2010. 10:51 PM1loloo says:
How can I add to this circuit thermistor for fan control?
Apr 7, 2010. 12:30 PMJodex says:
Replace the pot with the thermistor and then it will run slower or faster in different temperatuers depending on your thermistor.
Mar 2, 2010. 4:56 PMlivehybrid says:
Hi there,
Thanks for this - I have made 3 of them.
I am hoping you may be able to help with my problem.
I have numerous RGB LEDs which I will be connecting in parallel.
They have a common -ve, therefore instead of using pin 7 to control the brightness I use pin 3.
This works fine at the moment for one RGB LED with 3 of these PWM however I want to add a number of other LEDs...
Can you suggest how I might do this? Would I need to add an amplifier or transistor? if so, how would I go about this? Obviously it needs to cope with the frequency...

Many thanks!!
Feb 10, 2010. 11:50 AMalienmeatsack says:
This simple PWM looks like it should be capable of something I've been asked to investigate by my brother.

He wants to take an old video camera and hack the motor that drives the playback/record, adding a pot so he can change the speed.

I think this looks like it could do that. I assume I will probably need to add some kind of switch to turn it off/bypass it for normal speeds. And something to keep anything from getting fried.

The only real thing I would be concerned about is burning out the motor. It's not like it would be something I could just easily replace. Ya know?

Anyone have any suggestions/recommendations in regards to this particular use?

Dec 12, 2008. 10:59 PMshams says:
Hey any one don't hook up a motor with this circuit it will fry the chip.use a transistor
Jan 16, 2010. 8:03 PMcdousley says:
i keep thinking your picture is edward cullen im glad its not. twilight isnt that cool really.

Jan 25, 2010. 4:13 AMshams says:
 nope bro IT's chris redfield
Jan 4, 2009. 6:32 PMResident Expolsives Expert says:
(removed by author or community request)
Jan 6, 2009. 2:25 AMshams says:
any one!low power 2n2222a.med power tip31/32.high power 2n3055 or any mosfet with driver
Jun 18, 2009. 10:54 AMstefannasehi says:
how much power is low, medium, or high? is low 1.5v, medium 9v, high 12v? where would you put it?
Jul 20, 2009. 2:14 AMshams says:
nope I'm talking about current rating not voltage !
Jun 19, 2009. 11:11 PMDerin says:
No,it's the amount of watts it can switch.
Dec 16, 2008. 2:02 PMfallenspirit123 says:
Oh... and by the way, how do u use a transistor for this circuit?(i might know some ways but making sure)
Dec 16, 2008. 2:02 PMfallenspirit123 says:
actually it depends on the motor and voltage
Jun 19, 2009. 2:28 PM12V says:
i have made 2 of these and they worked (c1 was 220nf) but they died when i connected them to my 12v battery it is supposed to be for up to 18v?
Jun 23, 2008. 8:41 PMGorillazMiko says:
Nice Instructable. I hope I can try this out, looks a bit complicated for me though. +5/5 stars.
Sep 2, 2008. 11:43 PMthermoelectric says:
You can do it, just buy the parts and follow thw instructable, thats what it's there for isn't it
Jan 4, 2009. 6:34 PMResident Expolsives Expert says:
(removed by author or community request)
1-40 of 87next »

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!
24
Followers
5
Author:Chein
Made the Kessel run in less than twelve parsecs.