

The TCRT5000, manufactured by TOI, is an infrared (IR) sensor module that integrates an IR emitter and a phototransistor in a single package. This component is designed for detecting objects and measuring proximity by emitting infrared light and sensing the reflected light. The TCRT5000 is widely used in applications such as line-following robots, obstacle detection systems, and rotary encoders.








The TCRT5000 is a compact and efficient sensor with the following key specifications:
| Parameter | Value |
|---|---|
| Operating Voltage | 4.5V to 5.5V |
| Forward Current (IR LED) | 60 mA (typical) |
| Collector Current | 1 mA (typical) |
| Peak Wavelength (IR LED) | 950 nm |
| Detection Range | 2 mm to 15 mm (depending on surface reflectivity) |
| 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. |
Below is an example of how to use the TCRT5000 with an Arduino UNO for line 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 line detection
void setup() {
Serial.begin(9600); // Initialize serial communication
pinMode(sensorPin, INPUT); // Set sensor pin as input
}
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 the sensor detects a line (based on threshold)
if (sensorValue > threshold) {
Serial.println("Line detected!");
} else {
Serial.println("No line detected.");
}
delay(100); // Small delay for stability
}
threshold value based on your specific application and surface reflectivity.No Output from the Sensor:
Inconsistent Readings:
Sensor Not Detecting Objects:
IR LED Overheating:
Q1: Can the TCRT5000 detect transparent objects?
A1: The TCRT5000 is not ideal for detecting transparent objects, as they may not reflect sufficient IR light for detection.
Q2: What is the maximum detection range of the TCRT5000?
A2: The detection range is typically 2 mm to 15 mm, depending on the reflectivity of the surface.
Q3: Can I use the TCRT5000 with a 3.3V microcontroller?
A3: Yes, but ensure the IR LED receives sufficient current by adjusting the current-limiting resistor value.
Q4: How do I reduce interference from ambient light?
A4: Use the sensor in a controlled lighting environment or add a physical shield to block ambient light.
By following this documentation, you can effectively integrate the TCRT5000 into your projects for reliable object detection and proximity sensing.