

The TCRT5000, manufactured by TOI, is an infrared (IR) sensor module that integrates an IR emitter and a phototransistor in a single package. This sensor is widely used for object detection and proximity sensing applications. It works by emitting infrared light and detecting the reflected light from nearby objects, enabling it to determine their presence and approximate distance.








The TCRT5000 is designed for reliable and efficient IR sensing. Below are its key technical details:
| Parameter | Value |
|---|---|
| Operating Voltage | 4.5V to 5.5V |
| Forward Current (IR LED) | 60 mA (max) |
| Collector Current | 1 mA (typical) |
| Peak Wavelength (IR LED) | 950 nm |
| Detection Range | 2 mm to 15 mm (optimal: 2-10 mm) |
| Operating Temperature | -25°C to +85°C |
| Package Type | 4-pin through-hole |
The TCRT5000 has four pins, as described in the table below:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | Emitter (+) | Positive terminal of the IR LED (connect to Vcc). |
| 2 | Emitter (-) | Negative terminal of the IR LED (connect to GND). |
| 3 | Collector | Output of the phototransistor (connect to input pin of microcontroller). |
| 4 | Emitter | Ground terminal of the phototransistor. |
The TCRT5000 is straightforward to use in a circuit. Below are the steps and considerations for integrating it into your project:
The TCRT5000 can be easily interfaced with an Arduino UNO for object detection. Below is an example code snippet:
// TCRT5000 Arduino Example
// Connect the phototransistor's Collector pin to Arduino pin A0
// and the Emitter pin to GND. The IR LED should be powered via a resistor.
const int sensorPin = A0; // Analog pin connected to the TCRT5000 output
int sensorValue = 0; // Variable to store the sensor reading
void setup() {
Serial.begin(9600); // Initialize serial communication for debugging
}
void loop() {
sensorValue = analogRead(sensorPin); // Read the sensor value
Serial.print("Sensor Value: ");
Serial.println(sensorValue); // Print the sensor value to the Serial Monitor
// Check if an object is detected
if (sensorValue < 500) { // Adjust threshold based on your setup
Serial.println("Object detected!");
} else {
Serial.println("No object detected.");
}
delay(100); // Small delay for stability
}
No Object Detection
False Positives
Inconsistent Readings
Q: Can the TCRT5000 detect transparent objects?
A: The TCRT5000 may struggle to detect transparent objects due to low IR reflectivity. For such applications, consider using a different sensor.
Q: How do I increase the detection range?
A: The detection range is limited by the sensor's design. However, you can experiment with higher pull-up resistor values or use a lens to focus the IR beam.
Q: Can I use the TCRT5000 with a 3.3V system?
A: Yes, but ensure the IR LED receives sufficient current by adjusting the resistor value. The phototransistor output may also need recalibration for 3.3V logic levels.
By following this documentation, you can effectively integrate the TCRT5000 into your projects for reliable object detection and proximity sensing.