IR Sensor

I have been putting together an IR sensor based on this circuit:

Using a very small handful of cheap components, it seems to be an effective proximity sensor.

Here it is on the breadboard:

Testing showed that the sensor will detect objects within around 10 – 15 cm which should be fine for colision avoidance.

Due to the small number of components, it was easy to join them into a more compact in-line arrangement:

Finally, I heatshrinked the whole setup and added a 3-pin plug to make the unit more versatile and easy to change to multiple applications.

Using these sensors in place of the microswitch approach should enable the robot to navigate a space without having to constantly crash into objects. The IR will be affected by sunlight and other IR light so a more sophisticated circuit may be necessary in the future.

2 Responses to “IR Sensor”

  1. evilharvey Says:

    Great stuff! That looks like a brilliantly simple detection system! Does it have to have a flat perpendicular surface in order to work or does the IR still reflect off objects/sufaces that slope away from it?

  2. I have yet to actually wire it up to the robot, but it seems to detect anything that strays in front of it, it has a fairly tight cone of light, and it will also trigger if it is pointed at a strong light source…

Leave a Reply