pyMCU + Servos and Foam = Python Head Man!

python-head-onWhat do you get when you cross the glowing LED box with a RC helicopter and the pyMCU microcontroller?  A Python controlled glowing head of course!

This “Python Head Man” is capable of looking up and down in two directions, and lighting up “eyes” and a “mouth.”  This is possibly better explained in the video below.  The ‘bot uses the two servos originally meant to adjust the rc helicopter blades that this frame had on it.  I originally wrote about controlling these servos here, but this setup also has two sets of LEDS that can be independently switched on and off.  Control of the ‘bot is also enhanced with a simple GUI using the Tkinter Python library.  Diffusion of these LEDs is done with a foam cube, similar to the “Solar LED cube” that I made a few months ago.

If you would like to try something like this yourself, you’ll need the following:

The pictures below should give you some ideas of how it’s set up:

Note how I glued some cross-pieces on to the swash plate assembly to make a comparatively sturdy mount for the diffuse foam.  Rubber bands then held the head on.  The pyMCU and breadboard were attached using a glue and a small piece of plastic as described in this previous post.  Pretty silly hack really, but it was fun.

Originally, I had thought about using this to respond to Twitter commands like Chris Allick’s “blink for tacos” build.  I still may, and he was quite helpful when I was working on it.  Unfortunately, I seem to have the Maker’s version of ADD, since there’s always another project I want to work on…  I do have other robots that I’ve made though, so be sure to check out the “Robotics” category for more robot-induced fun!


  1. pyMCU test project looks like a Minecraft mob - pingback on December 20, 2012 at 12:10 pm
  2. Servocity SPT-100 Servo Pan-Tilt Assembly and First Use - pingback on January 9, 2013 at 5:40 am
  3. Thanks for posting this info! I’m wondering about the servos you are using. Are they digital or analog? Can they be either? I’d like to do a similar project, but I already have a bunch of analog servos sitting around.

Trackbacks and Pingbacks: