Objective: Students will be able to build their first robot using the parts of the Tetrix kit and tools in the Tetrix kit. Students will be able use the Arduino software to drive the TaskBot to avoid objects.
Directions:
Activity #7 - Make the TaskBOT Avoid Objects
Objective: Students will be able to drive their robots to avoid objects using the ultrasonic sensor.
Directions: - 20 Points
Page 111 will tell you what sketch and parts you need. Open the sketch by selecting File > Examples > TETRIX_PRIZM > TaskBot_Act14_Avoid_Obstacle.
The Ultasonic Sensor should be in digital sensor port 4.
To begin, press the green Start button. Our robot will travel forward until it senses
that it is within 25 centimeters of the object in its path.
When an object is detected, the robot will stop, back up, make a right turn, and
continue. Observe the behavior of the robot.
Press the red Reset button to end the sketch.
Based on the sketch comments, did the behavior match expectations?
Explain what the If/Else statement is doing in the code.
Upload a video here of your robot avoiding the objects and making a right turn.