Got interested in "self balancing robots" and built myslef a "mylegway" based on the descriptions at http://www.philohome.com/nxtway/nxtway.htm
Instead of using the NBC (next byte code) firmware of the original "NXTway" i developed my own balancing code using NQC (not quite C). What a fun :)