Skip to content

Project 1.07 - Build an Obstacle Avoiding Robot

Robot

In this project you will make a robot that moves randomly around the room avoiding crashing into walls and other obstacles in its path.

You will attach an ultrasonic sensor to the front of your robot. This can detect the distance to the nearest obstacle. You will then write some code to use this information to avoid crashes.

Worksheets

Student Worksheet

Code Solutions

Move randomly and stop

Move randomly and reverse

Escape corners