Infrared proximity sensor

The following photo depicts an infrared proximity sensor:

It consists of two major parts—the sensor and the transmitter. The transmitter emits IR waves; these Infrared (IR) waves then hit the object and come back to the sensor, as depicted in the following diagram.. 

Now, as you can see in the preceding diagram, the emitted IR waves bounces back from a surface at a different distance from the sensor, then they makes an angular approach to the sensor. Now, because the distance between the transmitter and the sensor ...

Get Python Robotics Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.