Simple PWM

posted Nov 16th 2008 6:30pm by
filed under: misc hacks, tool hacks

pwm

We mentioned Pulse Width Modulation (PWM) when talking about [sprite_tm]‘s marquee control. It’s a method of power control. While [sprite_tm] did it in software, [Afroman] sent along a very straight forward introduction to PWM using just a 555. Check out his video for coverage of this fundamental electrical design technique.



12 Responses to Simple PWM

  • biozz says:

    personally i have used this for quite some time now. it is quite reliable for some applications but is not to accurate if your controlling the pwm with anything but a resistor (or a pot) also i have been told its easier just to adjust pin 5

  • the diode part is awesome!

    But now, the most of the pots out there are not precise enought for these use, maybe adding a resistor at each end could be very neat for cheapass servo control.

  • jimmythecow says:

    afroman does it again!!

  • ex-parrot says:

    huzzah. afrotech slowly consumes the internet.

  • Bob says:

    A less common technique is pulse frequency modulation, which can be found in very efficient and low power switching power supplies. It lowers the switching losses in certain situations.

  • Xeracy says:

    How timely. I was just digging through my box of junk and found a LED product demo that has 3 faders and a pic controller to mix RGB on 3-color LEDs. I hooked the leads up to the Heath Kit (1962) Oscilloscope I just nabbed off craigslist last week (for $20) and low and behold, it uses PWM to dim each colored LED.

  • Sol says:

    I like this. So many projects use microcontrollers as overkill when a 555 timer will do the job.

  • therian says:

    is there a way to add another pot to control frequency also ?

  • Sol says:

    @therian:
    In this circuit the frequency is controlled by the capacitor connected to pin 2, I think. I don’t think you can change the frequency by changing resistance in this case.

  • biozz says:

    @Sol & @therian:
    the 100k gives you the fill sweep to change the frequency the best way is the cap at pin 2 102 makes it switch faster and 104 switches slower

  • therian says:

    changing cap is good enough, thanks

  • carlton says:

    @bob: pulse-frequency modulation (pfm) is really only good for low current applications, where switching losses are significant; typically, conduction (and other) losses dominant at higher currents.

    additionally, pfm can make emi more difficult to mitigate (at undetermined or over a wide frequency range); at higher currents the emi peaks are even higher, again a reason to (often) avoid pfm at higher currents.

  • Leave a Reply

    XHTML: You can use these tags: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Hack a Day serves up fresh hacks each day, every day from around the web as well as hacking related news.

    Send us your hacks










         




    Hacks

    Resources