Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Re: fast controller

2012-08-22 by David Kelly

On Aug 22, 2012, at 4:48 PM, Philippe Habib wrote:

> That's 184 RPS, but he said he has 2048 points per rotation.  I'm guessing a quadrature encoder that he has to read, determine direction and increment/decrement 374k times per second.  I can see why he moved that part to hardware.

He didn't say it was a quadrature encoder. If its a simple 2048 pulses per revolution then use that to drive the clock input to a timer/counter module. A 16 bit timer/counter will overflow 5.7 times per second which should be easy to catch in an overflow interrupt to extend the precision to 32 bits or more.

What the single bit pulse counter is not going to do is detect the direction of rotation.

I'm a little concerned about 2048 pulses per revolution at 11,000 RPM. My question is, "Why? Are you trying to control each phase of the motor?"

--
David Kelly N4HHE, dkelly@HiWAAY.net
============================================================
Whom computers would destroy, they must first drive mad.

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.