Assignment 5: Using Sonar

This assignment will help you get ready for the Sumo Lab.  Add the Ultrasonic sensor to your Lego Robot.  Program the robot to play a tone when it detects something in front of it.  Make the tone proportional to the distance away from the obstacle (the sound is higher for close objects, lower for objects farther away). The robot should be silent if nothing is in range.