
TAG-BOT 181
The blocks on the bottom sequence beam instruct the
robot to drive toward the right path for 1 second or until the
ultrasonic sensor detects an object that is less than 8 inches
away. Finally, a Timer block resets Timer 2 for the main
program.
testing the tag-bot2 program
Download the Tag-Bot2 program to Tag-Bot, and then
position the robot on the floor with its wheels centered as
before. Run the program, step back, and then clap your
hands to start the main part of the program. As Tag-Bot
begins running around, notice how it observes its two
potential paths and then chooses one. The downside of this
approach is that it takes more ...