
This is a reflective infrared (IR) sensor that emits IR and receives back the echo. It is used to sense the presence of objects or surfaces. The detection range is around 1 mm to 15 mm.
The board has a LM393 voltage comparator chip to give out digital output and a potentiometer for sensor sensitivity adjustment. The working voltage of this module is between 3.3V and 5V. There are four pins for output marked as VCC, Ground, DO and AO.
The DO pin gives digital output and you can read it easily with any microcontroller/microprocessor. The TCRT5000 sensor itself emits IR continuously when power is connected. When no reflected IR beam detected i.e. no object is close enough, the D0 pin gives output HIGH. When the reflective IR beam is strong enough, i.e. nearby object is detected, it gives output LOW.
The AO pin gives analog reading that changes the value according to the distance of the object.
There are 2 status indicator LEDs on board. The first one is to tell us the power is connected and the second one is for the status of reflective IR detection. There is also a mounting hole on the PCB so that you can fix the position of this module.
Use cases example:
User guide:
When using this sensor module for the first time, you'll need to adjust the sensitivity so that it'll detect object correctly.
The sensor board is now set to detect object.
Technical details: