Obstacle Avoidance Mission Worksheet
Use this sheet to record your sensor readings and tune your trigger distance. No perfect numbers needed — measure, adjust, and try again. Curiosity wins.
My hub’s name: My team:
1) Read the Sensor
Run a program that prints eyes.distance(). Move your hand toward the sensor.
- Distance with nothing in front of it: mm
- Distance with my hand close: mm
- Which port is the distance sensor in?
2) Predict the Decision
Read this code and write what the robot does in each case.
if eyes.distance() < 200:
robot.straight(-100)
robot.turn(90)
else:
robot.drive(150, 0)
- When the distance is less than 200, the robot will:
- When the distance is 200 or more, the robot will:
3) Tune the Trigger Distance
Run the robot at an obstacle and adjust the trigger until it stops where you want.
| Try | Trigger I used | Too early / Hit the wall / Just right |
|---|---|---|
| 1 | mm | |
| 2 | mm | |
| 3 | mm |
My best trigger distance: mm
4) Design a Course
Draw an obstacle course for your robot. Mark the start, the obstacles, and the table edges it must not fall off.
- What should the robot do when it reaches an obstacle?
5) Reflection
- The hardest part of getting the robot to react was:
- One time the robot did something I didn’t expect, and what the code actually said was: