

The TCRT5000 is an infrared (IR) sensor module that integrates an IR emitter (LED) and a phototransistor in a single package. It is designed for detecting objects and measuring proximity by emitting IR light and sensing the reflected light from nearby objects. The sensor is highly sensitive to reflective surfaces and is commonly used in robotics, line-following robots, optical encoders, and other automation systems.








The TCRT5000 sensor has the following key technical details:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V to 5V |
| Forward Current (IR LED) | 60 mA (max) |
| Collector Current | 1 mA to 15 mA |
| Peak Wavelength (IR LED) | 950 nm |
| Detection Range | 2 mm to 15 mm (optimal: 2-10 mm) |
| Operating Temperature Range | -25°C to +85°C |
| Dimensions | 10.2 mm x 5.8 mm x 7 mm |
The TCRT5000 has four pins, as described in the table below:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | Emitter (A) | Anode of the IR LED. Connect to a current-limiting resistor and then to VCC. |
| 2 | Emitter (K) | Cathode of the IR LED. Connect to ground. |
| 3 | Collector | Collector of the phototransistor. Connect to a pull-up resistor and then to VCC. |
| 4 | Emitter | Emitter of the phototransistor. Connect to ground. |
Below is an example of how to connect the TCRT5000 to an Arduino UNO for object detection:
// TCRT5000 Object Detection Example
// Connect TCRT5000 output to Arduino digital pin 2
const int sensorPin = 2; // Pin connected to TCRT5000 collector
const int ledPin = 13; // Built-in LED for visual feedback
void setup() {
pinMode(sensorPin, INPUT); // Set sensor pin as input
pinMode(ledPin, OUTPUT); // Set LED pin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int sensorValue = digitalRead(sensorPin); // Read sensor output
if (sensorValue == LOW) {
// Object detected (IR light reflected)
digitalWrite(ledPin, HIGH); // Turn on LED
Serial.println("Object detected!");
} else {
// No object detected
digitalWrite(ledPin, LOW); // Turn off LED
Serial.println("No object detected.");
}
delay(100); // Small delay for stability
}
Sensor Not Detecting Objects:
False Detections:
No Output Signal:
Q1: Can the TCRT5000 detect black surfaces?
A1: Black surfaces absorb most IR light and reflect very little, making detection difficult. Use reflective or light-colored surfaces for better results.
Q2: What is the maximum detection range of the TCRT5000?
A2: The sensor can detect objects up to 15 mm away, but the optimal range is 2-10 mm.
Q3: Can I use the TCRT5000 with a 3.3V power supply?
A3: Yes, the TCRT5000 operates with both 3.3V and 5V power supplies. Adjust the resistors accordingly to limit current.
Q4: How do I reduce noise in the output signal?
A4: Add a small capacitor (e.g., 0.1 µF) between the collector and emitter of the phototransistor to filter noise.
By following this documentation, you can effectively integrate the TCRT5000 into your projects for reliable object detection and proximity sensing.