Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Stepper motor control

2004-11-27 by Geert De Pecker

Dave,

Am I correct in understanding that your dec-to-zero timers then
would trigger a pulse, and depending on the acc/decel you set the
timers to a greater/smaller count to influence the time between
the interrupt and thus the step pulse?

Geert


Dave VanHorn wrote:
> 
>  >
>  >Would this be the way to go or are there other possibilities?
> 
> It works nicely. Remember to ramp down as well, you can't stop a motor
> instantly unless it's running very slowly.
> 
> You may find that you need more timers, but you can share timers to a 
> degree.
> I use T0 (because it's relatively dumb) for my 1mS opsys tick, that runs a
> bunch of Dec-to-zero timers for different tasks. You might be able to do a
> similar thing, depending on your other needs.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.