Friday, May 4, 2012

Servo Controller

After a lot of research I've decided to write my own servo controller library from scratch.  I'm going to write it as generically as possible for the AVR chipset and avoid Arduino specific code.  I'll likely release it as open source as soon as it's done.

The goal of the library is to provide an efficient method of providing PWM servo control output to any port on the AVR chip.  To do this is not as trivial as I'd hoped.

The problem:
Each servo needs to receive a signal every 20ms for a minimum burst of .6ms to a maximum of 2.4ms (varies depending on the servo).  Originally I'd thought about sending them out sequentially.  But after some though, parallel signals seem to really be the way to go.

I'm writing up the code right now and will post it along with a detailed description of what it's doing as soon as it's done.