Hi guys, It's been a while I'm thinking about building a servo controller board. I have one, MIC800, expensive, and lacks feature (once set, you can't just inactivate a servo...). For this, I was thinking about using the non-blocking delays, with the timer0_isr_interval lib, as show in the blog. This could be used to implement PWM software.
Looking at the code, I've seen the "isr_counter" pseudo variable. I wonder if it would be better to have it named timer0_isr_counter, as there could be collision with other potential ISR lib. What's your point on this ? About the servo controller board, here are the features I'd like to have: - can be accessed through serial - can be accessed through i2c (thus addressable, can have multiple controllers. don't want to implement address with serial) - can at least handle 8 servos. (maybe more ? What it the max ? Using *blocking* delays, since signal must be sent every 20ms, and since delays can last max 2ms per servo -- or 2.5ms ? --, this gives 20/2 = 10, or 20/2.5 = 8 servos. But with non-blocking delays, the worst case is when all servos are turned max at the same time, so they all need to be refresh at the same time. What should the refresh rate be ?) - position can be stored into EEPROM, and then loaded from - add some LEDs, to view the controller at works :). One for each servo + one for power + one for comm. - can set position between 0 and 255. O means no signals, 255 means max. Should a higher resolution be needed ? Do you think about any other features ? About PWM software, it should be possible to extract pwm_software.jal library for this. Can be useful in many, many other projects. Cheers, Seb -- Sébastien Lelong http://www.sirloon.net http://sirbot.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jallib?hl=en -~----------~----~----~----~------~----~------~--~---
