Re: Need Advice on PWM and other stuff



Joe wrote:
I have a circuit for PWM using a 555 and a potentiometer to vary the
duty cycle.
I decided that using the motor driven potentiometer was folly, and I
will probably use mosfet switches to change the resistor values (and,
hence, the duty cycle) in my PWM control module. Unless folks have a
better idea.

Since you have an AVR, you might want to replace the 555
with a pin(2) from the AVR. Depending on which AVR you have
you may already have a couple of PWM counters on board.
Even if you don't have the PWM counters you can build one
easily enough with a timer interrupt.

Using an AVR for the PWM output gives you a little more
flexibility in how to set the motor speed.

I'm about to do the same thing (AVR/PWM) for my bot so let
me know if you want more specific help.

Bob
.