Skybot, take two: extending libStargate

In a previous post I mentioned that we would be playing around with a bot project to interface our Skypic board and the Wiimote as an assignment in class.

Hacking these things has been fairly easy thanks to some pretty handy pieces of software we stumbled upon at IeaRobotics and a bit of Python magic. The tools of the trade were Pydownloader to program the Skypic, libStargate to interface the PC and the bot, and finally Pywii, a wonderful Wiimote library.

We ended up implementing a new server for the Skypic that should enable a smooth control of the acceleration applied to the Skybot in response to the Wiimote’s movements. To handle it we had to extend libStargate. Our job wasn’t particularly hard to do, but up until now you only had the chance of applying an all-or-nothing type of movement. Now the acceleration is proportional to the pitch and roll values of the controller. Since the controlling code is in the PIC instead of the computer, the effect is really smooth.

The bot has dual power. 6V for the Skypic and 9V for the servos. If only we had used 12V for these the effect would be nicer yet, but overall its fine.

I’ll clean the code a bit before submitting the patches to the project’s author, and I hope to have it ready and submitted this week along with a new wrapper class around libStargate to control specifically the SkyBots with PWM capabilities. It is called pySkybot, by the way.

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

1 Comment »

 
 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>