Lego Mindstorms
Fulfilling a long time dream, last week I ordered a Lego Mindstorms NXT kit. It’s a great way to get my lets-build-things neurons working again, and to return a little into programming, with the difference that your “programs” roam around your living room!
Here are the results of this first week, this is my second robot “designed” by me (if you call “lets see where this is going while I’m building it” approach anything resembling the act of designing something), and the software I “wrote” in NXT-G. The program is basically:
- make the robot go forward until it stops if
- the distance as measured by the ultrasonic sensor in front is less than a certain distance
- backs the robot up a bit
- turns the sensor platform 90º to the right
- captures the distance into variable R90
- turns the sensor platform 180º to the left
- captures the distance into variable L90
- turns the sensor platform 90º to the right (to reposition it forward)
- compares the distances stored on variables L90 and R90
- makes the robot turn 90º left or right depending on which side has the furthest distance available
- loop to the beginning
The robot in action – Windows Media or Quicktime
Alterantiva viavel aquele outro projecto em que um coiso vagamente fusiforme se movimentava longitudinal, repetida e continuamente, assitido por um regulador de velocidade?
Nice! Lego for big boys!!!