PROGRAMMING
SAMPLE PROGRAM FOR THE TURTLE ROBOT
The turtle robot is very timid! It will quickly move to avoid any object
that is in front of it. When this program runs, the turtle robot will move
forward until it detects an object with the ultrasonic sensor. The turtle
robot will back away, turn, and then move forward in a new direction.
This program is preloaded in the app under Program 9. Test it out and
write down how the robot behaves for each program segment below.
PROGRAMMING NOTES
Programming the Turtle Robot
DEMO PROGRAM:
Program 9
OPENING SEGMENT:
SEGMENT 0-30:
SEGMENT >31:
15