On Fri, 20 Jan 2006, eccamacho wrote: > > Pardon me if this has been discussed before. I searched through a few > messages and found some things which are similar, but not quite the same. > > I'll be programming on a Atmega128 which will be connected over serial > to another microcontroller to do higher level processing. The Atmega > will be connected to 2 quadrature optical encoders. Each encoder will > be connected to a shaft which will do about 7 revolutions/sec. The > encoders have 256 CPS (is that clocks per second or cycles per second?). > I see no reason why that wouldn't work. You should be able to store your data in the on-chip RAM or the EEPROM with plenty of room to spare. No need to try to store it in a timer register. The mega128 has a lot of capacity. I'm working on implementing a digital compass chip made by a company called PNI. It has six data/control leads. I've never done floating-point math in a micro before, and I'm trying to implement something called the Pade approximation of arctangent in the AVR to compute compass direction from the output X and Y data. It's a learning experience! Zack
Message
Re: [AVR-Chat] Quadrature encoding, passing to another uController over serial...
2006-01-20 by Zack Widup
Attachments
- No local attachments were found for this message.