Wednesday, October 28, 2009

Protector Bot

Last night I figured I should actually go through some of the tutorials and challenges to learn how to build and program with the NXT. The first challenge is the "Protector Bot." Again, I used the directions to build the Lego vehicle, and figured out how to program the robot myself.

The Tutorial Challenge:
The robot must spin in a circle monitoring the room for objects which are 40 cm or closer. While object free, the robot will continue to spin with a green light emitting from its lamp.

When an object comes within the range, the bot must stop, turn the lamp blue as a warning, and emit a warning sound.

If the object moves out of the way within 2 seconds, the bot will return monitoring in a circle with a green light. If the object does not move away, the light will turn red and the bot and fire at the object every 2 seconds until it moves away.

Here's the video!

First Project: Follow the Black Line

I'm a professional musician and have always had an interest in math and science. Looking for another outlet to spark my creative juices and fill some down time I decided to order a Lego Mindstorms NXT 2.0 robotics kit. A couple nights ago I it came in the mail. That night I quickly assembled the Quickstart vehicle using the directions. Always wanting to run before I can walk, I then decided I wanted to see if I could figure out the programming interface without reading the directions and how to program the robot to follow a black line. Here the video of what I came up with!