Re: Need Advice on PWM and other stuff
- From: Bob Smith <bsmith@xxxxxxxxxxxxx>
- Date: Sat, 26 May 2007 19:06:35 GMT
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
.
- Follow-Ups:
- Re: Need Advice on PWM and other stuff
- From: Joe
- Re: Need Advice on PWM and other stuff
- References:
- Need Advice on PWM and other stuff
- From: Joe
- Need Advice on PWM and other stuff
- Prev by Date: term for a wheel with an attached gear or pulley ?
- Next by Date: Re: Microcontroller options
- Previous by thread: Re: Need Advice on PWM and other stuff
- Next by thread: Re: Need Advice on PWM and other stuff
- Index(es):