matsuRobotV3
My latest Lego Mindstorms robot and program, matsuRobotV3. This robot was also “not planned” like the previous one as the build process was simultaneously the design process. The main thing I wanted to implement was some way to auto-center the sensor platform, which I accomplished by placing a bump switch that would be pressed if the platform rotated more than “x” degrees to the left, from which point I could rotate it “x” degrees to the right to get it centered (“x” being found by trial and error).
From a programming standpoint, I wanted the program to evaluate two sensors at the same time – which was done by running a loop conditioned to end by a logical value, in which I ran two readings passed on to an OR logic block. This creates a relatively fluid obstacle avoidance routine, as you can see on the video. Hope you enjoy it!
- matsuRobotV3 from several different angles:

- matsuRobotV3 Program
- matsuRobotV3 Quicktime video
- matsuRobotV3 Windows Media video
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