So while the multi servo controller library is not done yet, initial testing seems good. I do see a jitter issue, but I'm confident I can work it out. Here's the code released under the MIT license, so feel free to do what you like with it.
https://github.com/teastman/com.roborec.servo
Let me know if you have any questions, I'll do my best to answer them. I'm likely going to take a break from working on these now, as it's caused me to go a little bonkers pulling my hair out. I think I'll work on some of the physical construction a bit more now.
Functional:
- Arduino Fio (other arduinos should not be hard to add support for)
- Move servo to a given location.
- Support for as many servos as you have pins available. There will be a practical limit, but I haven't hit it with 18 servos on the Fio.
- Various servo support via setting the manufacturers defined maxVelocity, minPulseWidth, and maxPulseWidth.
- Angle inversion
- Angle limiting
- Angle normalization
Still to come:
- Collision avoidance
Angle inversionAngle limitingAngle normalization over the set limitation.
EDIT:
Cleaned the code up a bit and did some testing. The jitter issue turned out to be a servo defect, replacing the servo fixed the problem.
EDIT (23/07/12):
Added support for inverting, limiting, and normalizing.
No comments:
Post a Comment