TCRT5000 Infrared Reflectance Sensor Module – IR Line Tracking & Object Detection
The TCRT5000 Infrared Reflectance Sensor Module is a compact infrared sensor designed for detecting nearby objects, surface reflectivity, and black-and-white line patterns.
The module uses a TCRT5000 reflective infrared sensor with an infrared emitter and phototransistor receiver. It detects changes in reflected infrared light, making it suitable for line-following robots, obstacle detection at short distances, and automatic detection systems.
Equipped with an LM393 comparator, adjustable sensitivity potentiometer, and analog and digital outputs, the module can be integrated with Arduino, ESP32, Raspberry Pi, and other microcontrollers.
Key Features
-
Infrared Reflective Detection: Detects nearby objects and changes in surface reflectivity.
-
TCRT5000 Sensor: Integrated infrared transmitter and phototransistor receiver.
-
Adjustable Sensitivity: Onboard potentiometer adjusts the digital detection threshold.
-
Analog and Digital Outputs: Provides both analog sensor readings and digital detection signals.
-
LM393 Comparator: Generates a digital output based on the adjustable threshold.
-
Short-Range Detection: Suitable for reflective sensing at close distances.
-
Status Indicators: Onboard power and digital output indicator LEDs.
-
Compact PCB: Easy to integrate into robotic and electronic projects.
-
Mounting Hole: Allows convenient installation on robot chassis and other structures.
-
Microcontroller Compatible: Can be interfaced with Arduino, ESP32, and other compatible controllers.
Technical Specifications
| Parameter |
Specification |
| Product Type |
Infrared Reflectance Sensor Module |
| Sensor Model |
TCRT5000 |
| Sensor Technology |
Reflective Infrared |
| Comparator IC |
LM393 |
| Operating Voltage |
3.3V–5V DC (module-dependent) |
| Detection Distance |
Approximately 0–30mm, depending on surface |
| Optimal Sensing Distance |
Approximately 2.5mm for the TCRT5000 sensor |
| Analog Output |
AO |
| Digital Output |
DO |
| Digital Output States |
HIGH / LOW |
| Sensitivity Adjustment |
Onboard Potentiometer |
| Power Indicator |
Red LED |
| Digital Output Indicator |
Green LED |
| PCB Dimensions |
Approximately 35 × 15mm |
| Mounting |
PCB Mounting Hole |
Pin Configuration
| Pin |
Description |
| VCC |
Module Power Supply |
| GND |
Ground |
| AO |
Analog Reflectance Signal |
| DO |
Digital Detection Output |
Arduino Connection Example
| TCRT5000 Module |
Arduino Uno |
| VCC |
5V |
| GND |
GND |
| AO |
A0 |
| DO |
D2 |
The analog output can be used to monitor changes in reflected infrared light, while the digital output provides threshold-based detection.
ESP32 Connection Example
| TCRT5000 Module |
ESP32 |
| VCC |
3.3V, if supported by the module |
| GND |
GND |
| AO |
GPIO34 |
| DO |
GPIO27 |
Important: ESP32 GPIO pins are not 5V tolerant. Ensure that the module's output signals do not exceed 3.3V.
Raspberry Pi Compatibility
The module can be used with Raspberry Pi through its digital output, provided the output voltage is limited to 3.3V.
For analog measurements, an external ADC module is required because Raspberry Pi GPIO pins do not provide native analog inputs.
Applications
- Line-Following Robots
- Black-and-White Surface Detection
- Short-Range Object Detection
- Robotic Navigation
- Position Detection
- Automatic Counting Systems
- Educational Robotics Projects
- Surface Reflectivity Monitoring
- DIY Electronics and Automation
Important Notes
- The TCRT5000 is a reflective infrared sensor, not a long-range distance sensor.
- Detection performance depends on object distance, surface color, reflectivity, and ambient lighting.
- The potentiometer adjusts the digital comparator threshold, not the infrared emitter's physical detection range.
- Digital output polarity may vary depending on the module circuit.
- The sensor generally provides stronger reflected signals from light-colored surfaces than dark, non-reflective surfaces.
- For reliable line-following operation, adjust the sensor height and sensitivity according to the surface.
- Raspberry Pi and ESP32 inputs must not be exposed to signals above their permitted voltage levels.
Package Includes