Installing the Lego autopilot
Chris Anderson
Geekdad
March 25, 2007
After my proof of concept of a Lego autopilot [ http://blog.wired.com/geekdad/2007/03/two_words_lego_.html ] a couple weeks ago, the hard work began. First thing was to find an appropriate "avionics platform", AKA a good-sized R/C airplane. We settled on the Electristar .40-sized trainer [ http://www2.towerhobbies.com/cgi-bin/wti0001p?&I=LXNVC0**&P=ML ], which seemed to have the right balance of stability and equipment compartment size.
The HiTechnic [ http://hitechnic.com/ ] guys had seen my previous post on my plans to build a Lego autopilot and kindly FedExed me a prototype of the gyro sensor [ http://hitechnic.com/contents/en-us/d14.html ]. I'd been using a tilt sensor [ http://hitechnic.com/contents/en-us/d19.html ] as a stand-in, which actually worked quite well. But programming the Lego servo to smoothly track the tilt sensor position readings had taken me and the nine-year-old all the spare time we had this weekend. The gyro sensor introduces another level of complexity (albeit a necessary one to handle the unpredictable gusts and bumps of real flying), and that's going to take us a few more weekends to figure out. So in the meantime, we turned to the mechanical side.
Adapting the autopilot to fit turned out to be pretty easy--just a few holes in the equipment floor of the plane to bolt down the Lego base pieces. It all fit together freakishly well:
Here, to get a sense of scale, is the whole plane, minus the wings:
[ Image ]
The Lego equipment adds about a pound to the plane's weight. That probably won't be a problem (the weight is right at the center of gravity and the plane has power to spare), but just in case, I switched the plane's batteries to Lithium Polymer, which provide even more power at a pound less weight than the standard NiHM. It's now got plenty of juice to support even more avionics to come (GPS, video, radio backchannel, etc).
For you Lego Mindstorms geeks, here's the instruction page for the prototype
gyro sensor (click to enlarge). Next weekend I'll post about the programming necessary
to make a real autopilot, and why you might want to consider alternatives to the
basic block-based Mindstorms visual programming environment. (Short answer: if you
want to do anything remotely complicated, the Mindstorms visual approach turns into
a sprawling mess.)
Copyright 2007 http://blog.wired.com/geekdad/