i used this sensor on 2 of my robots. those were working on a table surface, so the robots had to detect when they have arrived to the edge, to stop, and turn back... it can sence also obstacles in the way.
Step 1: A Simple Version With Bipolar Transistors
first i made a simple version with bipolas transistors. the full schematics of that small robot is attached (not the same robot as in the front page).
the point in the operation is:
1. an oscillator generates a square wave.
2. an infrared led with narrow angle transmits this signal as infrared light/ray.
3. this is reflecting back from obstackles within the viewing angle, basically from a viewing spot on the ground, or in front of the robot.
4. there is a photodiode or phototransistor next to the IR-LED, with also narrow angle pointed to the same spot as the LED was. phototransistor was used on the bipolar version, and photodiode on the IC version.
5. there is a receiver circuit connected to the sensor, detecting if there is reflected signal or not.
6. if there is a signal (within a specified frequency band, like 5khz-150khz), then the output goes to logic high level, otherwise to low level. this signal can be used by a microcontroller, or by an analog control logic. there is signal if there is an obstacle/ground within the sensing range, which is about 5-15 centimeters.
Step 2: More Difficoult Sensor
i used this sensor on my last robot. this uses a remote controller receiver IC, the TBA2800. more reliable than the previous one.
as a sensor, i have used the BPW24R from Vishay semiconductors, and the SFH481 IR-LED from OSRAM.
Step 3: Sorry, Thats It.
Second Prize in the
Instructables and RoboGames Robot Contest