

The TCRT5000, manufactured by TOI, is an infrared (IR) sensor module that integrates an IR emitter and a phototransistor in a single package. It is designed for object detection and proximity sensing by measuring the intensity of reflected IR light. The sensor is highly reliable and widely used in applications such as line-following robots, obstacle detection, 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 object reflectivity) |
| Operating Temperature | -25°C to +85°C |
| Package Type | 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 | Output of the phototransistor (connect to a pull-up resistor). |
| 4 | Emitter | Ground for the phototransistor. |
Below is an example of how to use the TCRT5000 with an Arduino UNO for basic object detection:
// TCRT5000 Arduino Example
// Pin connections:
// TCRT5000 Pin 1 (IR LED Anode) -> 5V through a 220Ω resistor
// TCRT5000 Pin 2 (IR LED Cathode) -> GND
// TCRT5000 Pin 3 (Phototransistor Collector) -> Arduino A0 (with 10kΩ pull-up resistor)
// TCRT5000 Pin 4 (Phototransistor Emitter) -> GND
const int sensorPin = A0; // Analog pin connected to the phototransistor output
int sensorValue = 0; // Variable to store the sensor reading
void setup() {
Serial.begin(9600); // Initialize serial communication
}
void loop() {
sensorValue = analogRead(sensorPin); // Read the sensor value
Serial.print("Sensor Value: ");
Serial.println(sensorValue); // Print the sensor value to the Serial Monitor
// Add a small delay to avoid flooding the Serial Monitor
delay(100);
}
No Output or Incorrect Readings
Unstable Sensor Output
Limited Detection Range
Overheating of IR LED
Q1: Can the TCRT5000 detect transparent objects?
A1: The TCRT5000 is not effective at detecting transparent objects, as they do not reflect sufficient IR light.
Q2: What is the maximum detection range of the TCRT5000?
A2: The maximum detection range is approximately 15 mm, depending on the object's reflectivity.
Q3: Can I use the TCRT5000 with a 3.3V microcontroller?
A3: Yes, but ensure the IR LED forward current is within safe limits by adjusting the current-limiting resistor.
Q4: How do I improve detection accuracy?
A4: Use reflective surfaces, minimize ambient light interference, and calibrate the sensor for the specific application.
This concludes the documentation for the TCRT5000 IR sensor.