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!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment