In this set of activities, you will build two sensors that will let your robot “see” objects. Each sensor is made up of an infrared LED (light-emitting diode) like the one inside a TV remote, and an infrared receiver like the one inside a TV. With two of these IR LED/receiver sensors, you can then write programs to let your robot find out if objects are in its way before bumping into them. You can even use these sensors to get distance measurements so your robot can follow objects.
Each object sensor strobes its infrared LED like a rapidly-blinking flashlight. If the light reflects off an object and comes back to the IR receiver, the receiver sends a signal to the Propeller to tell it there’s an object in the way. Your program can then use that information to drive the robot away from, or toward, the object.
- Download the IR Navigation Spin Code
- Save the zip archive to your desktop, extract it to a folder, and open it.
- Follow the links below to continue.