

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.








Below are the key technical details of the TCRT5000 sensor:
| Parameter | Value |
|---|---|
| Operating Voltage | 4.5V to 5.5V |
| Forward Current (IR LED) | 60 mA (typical) |
| Collector Current (Phototransistor) | 1 mA (typical) |
| Peak Wavelength (IR LED) | 950 nm |
| Detection Range | 2 mm to 15 mm (depending on object reflectivity) |
| Operating Temperature Range | -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 (A) | Anode of the IR LED (connect to a current-limiting resistor). |
| 2 | Emitter (K) | Cathode of the IR LED (connect to ground). |
| 3 | Collector | Collector of the phototransistor (output signal). |
| 4 | Emitter | Emitter of the phototransistor (connect to ground). |
Below is an example of how to use the TCRT5000 with an Arduino UNO for object detection:
// Define the pin connected to the phototransistor output
const int sensorPin = A0; // Analog pin A0 for reading sensor output
const int threshold = 500; // Threshold value for object detection
void setup() {
pinMode(sensorPin, INPUT); // Set sensor pin as input
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int sensorValue = analogRead(sensorPin); // Read the sensor value
// Print the sensor value to the Serial Monitor
Serial.print("Sensor Value: ");
Serial.println(sensorValue);
// Check if an object is detected
if (sensorValue > threshold) {
Serial.println("Object Detected!");
} else {
Serial.println("No Object Detected.");
}
delay(500); // Wait for 500ms before the next reading
}
threshold value based on your specific application and environment.No Object Detection:
False Positives:
Inconsistent Readings:
Short Detection Range:
Q1: Can the TCRT5000 detect transparent objects?
A1: The TCRT5000 is not ideal for detecting transparent objects as they do not reflect sufficient IR light. Use specialized sensors for such applications.
Q2: What is the maximum detection range of the TCRT5000?
A2: The maximum detection range is approximately 15 mm, but this depends on the reflectivity of the object.
Q3: Can I use the TCRT5000 with a 3.3V microcontroller?
A3: Yes, but ensure the IR LED receives sufficient current by adjusting the resistor value. The phototransistor output can be read by 3.3V logic levels.
Q4: How do I improve detection accuracy?
A4: Use a reflective surface for the target object, minimize ambient IR interference, and ensure proper alignment of the sensor.
This concludes the documentation for the TCRT5000 IR sensor.