Hacklet #10 - RoboBear mkII
In this iteration, RoboBear has had the Arduino microcontroller replaced with Raspberry Pi and an Adafruit 16-Channel 12-bit PWM/Servo Driver. There are several advantages to this setup; not least, is that I can control the bear using bluetooth or wifi (via SSH or HTTP), and therefore can hook him up to web services! For now though, he's just running a simple loop.
I found this tutorial and the one one learn.adafruit.com very useful to get it started.
Here is the code; I know its horrible (really really bad); I'm worrying about hardware not learning python for now! I'll clean it up before I do any more :)