Instructions
Use a Polaroid camera that is a 6500 model or later, such as the Sun Autofocus 660 or the Impulse AF.
Disassemble the camera. Depending on the type of camera you acquire, the ultrasonic sensor can be fairly easy to remove. On the Polaroid 660, for instance, it is that large golden round disc at the front of the camera, right next to the lens. It is only lightly held in place by a couple of tabs.
Attach the ultrasonic sensor, or sensors, to the robot. Many robots use multiple sensors, on all sides. The sensors connect to the interface board of the robot, which connects to its computer. The computer then commands the sensors to send out the bat-like ultrasonic (50 kHz) ping. It then measures the distance of an object from the robot by the amount of time the ping takes to bounce back.