PDA

View Full Version : Project: Simple PWM circuit


SgtWookie
01-24-2008, 03:52 AM
There have been a large number of requests for an easy-to-build PWM control circuit. You can always use a 555 or 556 timer circuit, but here's something you might build out of components from your "junk box."

Attached is a schematic that uses a CMOS 4093 Schmitt input NAND gate in conjunction with a potentiometer, 1 resistor, a cap and a couple of 1N914 diodes to create a roughly 2% to 98% pulsewidth duration, at around 1kHz. You could use any CMOS gate that has a Schmitt input and an inverting output. You can use just about any general purpose silicon diodes instead of the 1N914, as long as they have a PIV greater than 10V and current of more than 3mA (NOT Zener diodes). The circuit should work with Vdd from about +5v to +16v (if using power MOSFETS, you'll likely need to use a Vdd of at least 10V to fully turn on the gate; check your datasheet to be certain.)

Select R2 to limit the maximum current in the RC network to around 2mA; this will depend upon your Vdd. Multiply your Vdd times 500; that's the minimum resistance you need in Ohms.

With the components shown, center frequency is near 1kHz. Decreasing C1 and/or R1 will increase the frequency. It's best to reduce C1, as reducing R1 will adversely affect the PW control at the extreme limits.

Increasing R1 much above 500k Ohms will likely result in stability problems. To lower the freqency, increase C1 instead.

If you decide to use something other than a FET/MOSFET for the output driver, be sure to use a 10K current limiting resistor to prevent overloading the output of the gate.

And if you need more PWM circuits - there are three more gates in that 4093 that could be used for three more such circuits. :)

"Quickie" fader:
Connect the output of U1A to both inputs of one of the spare 4093 gates (after removing the grounds, of course) and add another MOSFET to the output of that gate. You now have a complimentary PWM driver by adding only one physical part; the MOSFET. Since the 4093 NAND gate inverts the signal, when one MOSFET is turning ON, the other will be turning OFF, and vice versa. If you were using the MOSFETS to control one or more LEDs, those controlled by one of the MOSFETS would increase in brightness while those controlled by the other MOSFET would grow dim.

Amberwolf
05-03-2008, 01:04 AM
Since this PWM circuit is for the "junkbox" builder :), a good source for MOSFETs you could use for low-power applications is your old dead motherboards, including many of the ones that caps leaked on, as long as the MOSFETs pass the quick multimeter test (with and without power to the gate, which can be provided from the diode-test mode on many DMMs). If you don't mind using SMT parts, you can probably find a suitable logic chip with inverting gates or buffers on it you can use for the main part of this as well. :) I used MOSFETs from an old Compaq Athlon 700mhz system to repair a small electric scooter's LM339-based motor controller; they actually had a higher voltage and current rating (and about the same gate current/voltage) as the ones that came in the controller originally, before whoever owned the scooter before blew it up and discarded it.

cumesoftware
05-30-2008, 01:14 PM
Simple and excellent! I don't know why I never though about using a Schmitt gate as a signal generator.

Bill_Marsden
05-30-2008, 10:05 PM
Here is the 555 version I posted in another thread...

http://forum.allaboutcircuits.com/picture.php?albumid=3&pictureid=34

They wanted independent frequency and PWM controls.

Bill_Marsden
05-31-2008, 12:20 AM
Opps, looks like I stuck my foot in it, twice. That design will reduce the PWM range as you decrease the freq. with R2. Oh weel, today the bear got me.

linchiek
07-23-2008, 06:58 AM
You circuit suggestion is dealt with here (http://forum.allaboutcircuits.com/showthread.php?t=13207). We'll leave this thread to SgtWookies PWM circuit. Thanks.