I need a simple PWM circuit to control a motor from my microprocessor,
I found this one:
http://home.cogeco.ca/~rpaisley4/LM555.html#17
Any comments? It looks cheap and simple to build so should fit my
requirements.
Hi, James. Yep, it'll work pretty well. I'd assume you're driving a
transistor or MOSFET with the comparator output, right
6mA sinking output is pretty much the most you can ask of an LM393.
You should probably expect somewhere around 0.3V output for a logic
low. Unless there's a good reason, I'd replace the 2.2K with a 10K
resistor. That'll pretty much ensure that your logic low will be less
than 0.1V.
Now you really should run the PWM of the motor at more than 37Hz, which
is the frequency shown on the link. You can do this by replacing the
..05uF cap on the 555 with an .01uF cap, and replacing the 1 meg
resistor with a 180K. Circuit operation will remain almost exactly the
same, except the output frequency will be multiplied by 30 or so. This
will give you a roughly 1KHz PWM output.
Make sure not to replace the LM393 with another comparator, or use a
lower output voltage, without looking things over carefully.
Good luck
Chris