Extension Activity
With the example as a reference, try creating a new sketch to have the Codee Bot
drive toward a wall or object and stop. Remember what you have learned from your
previous activities. Challenge yourself by changing the direction, range, or speed.
You can also test what size and shape of object the Ultrasonic Sensor is more likely
to detect and at what range.
Real-World Link
Small vacuum robots that clean the floors of homes use sensors to detect if there
are obstacles in their path. If the little robot encounters a couch, it is programmed
to back up and turn to avoid the obstacle. It also has sensors to detect stairs so that
it stops and doesn’t fall down.
Careers: vacuum engineer, vacuum coater, mechanical drafter
STEM Connections
• Science
Ĕ Speed of sound
Ĕ Sound waves
• Technology
Ĕ Sensor calibration
Ĕ Ultrasonic
• Engineering
Ĕ Obstacle detection
Ĕ Braking
• Math
Ĕ Distance from objects
Ĕ Metric and standard units
114 Building and Coding the PULSE CodeeBot