- All products
- Robotics
- Robotic Sensors
- Line Follower 1 Channel Infrared Tracking Detection Sensor On the Front TCRT5000 With 1 Pot
- Robotic Sensors
Features
- Uses a TCRT5000 infrared reflective optical sensor
- Designed for line tracking and surface detection applications
- Digital output for direct connection to a microcontroller
- Adjustable detection sensitivity using an onboard potentiometer
- Typically outputs LOW when detecting a dark or black surface
- Typically outputs HIGH when detecting a light or white surface
- Infrared detection method helps detect differences in surface reflectivity
- Fast response suitable for moving robots
- Built-in indicator LED for visual status indication
- Pre-drilled mounting hole for easy installation
- Compact design suitable for robotics projects
- Compatible with Arduino and other microcontrollers
- No Arduino library required
Principle of Operation
The module operates using the reflective infrared sensing principle. The infrared LED continuously emits infrared light toward the surface in front of the sensor. The TCRT5000 phototransistor detects the amount of infrared light reflected back from the surface.
A light or white surface generally reflects more infrared light, while a dark or black surface reflects less. The onboard comparator circuit processes the reflected light level and produces a digital output signal. The onboard potentiometer allows the switching threshold to be adjusted. This is useful because the reflected infrared level can vary depending on the distance between the sensor and the surface, the material being detected, and ambient lighting conditions.
In a line-following robot, the sensor is usually mounted facing downward. As the robot moves, the microcontroller reads the sensor output and adjusts the motors according to whether the sensor detects the line or the surrounding surface.
Applications
- Line-following robots
- Educational robotics projects
- Surface and contrast detection
- Path tracking systems
- Simple object and proximity detection projects
- DIY automation projects
- Position detection systems
- Arduino and microcontroller experiments
Pinout
The TCRT5000 line follower module uses a simple three-pin interface.
![]()
| Pin | Function | Description |
|---|---|---|
| V+ | Power Supply | Connect to the module power supply, typically 5V |
| G | Ground | Connect to the common ground of the circuit |
| S | Digital Output | Digital detection signal to the microcontroller |
Wiring
The sensor can be connected directly to an Arduino using the following example wiring.
![]()
| TCRT5000 Module | Arduino | Function |
|---|---|---|
| V+ | 5V | Power supply |
| G | GND | Common ground |
| S | D7 | Digital sensor output |
Arduino Test Code
No additional library is required. The following code reads the digital output from the sensor connected to Arduino digital pin D7 and displays the result in the Serial Monitor.
const int digital_pin = 7;
void setup() {
Serial.begin(9600);
pinMode(digital_pin, INPUT);
}
void loop() {
Serial.print("Digital Reading = ");
Serial.println(digitalRead(digital_pin));
delay(1000);
}
Specifications
| Sensor Type | TCRT5000 Infrared Reflective Sensor |
|---|---|
| Number of Channels | 1 |
| Operating Voltage | 5V DC |
| Operating Current | Approximately 20mA |
| Output Type | Digital |
| Output Logic | LOW for dark surfaces and HIGH for light surfaces, depending on sensitivity adjustment |
| Sensitivity Adjustment | Onboard potentiometer |
| Infrared Wavelength | Approximately 940nm |
| Response Time | Approximately 500μs |
| Operating Temperature | -20°C to +85°C |
| Mounting | PCB mounting hole |
Resources
- TCRT5000 Line Tracking Module Tutorial: https://diyi0t.com/tcrt5000-line-tracking-module-arduino-esp8266-esp32/
Features
- Uses a TCRT5000 infrared reflective optical sensor
- Designed for line tracking and surface detection applications
- Digital output for direct connection to a microcontroller
- Adjustable detection sensitivity using an onboard potentiometer
- Typically outputs LOW when detecting a dark or black surface
- Typically outputs HIGH when detecting a light or white surface
- Infrared detection method helps detect differences in surface reflectivity
- Fast response suitable for moving robots
- Built-in indicator LED for visual status indication
- Pre-drilled mounting hole for easy installation
- Compact design suitable for robotics projects
- Compatible with Arduino and other microcontrollers
- No Arduino library required
Principle of Operation
The module operates using the reflective infrared sensing principle. The infrared LED continuously emits infrared light toward the surface in front of the sensor. The TCRT5000 phototransistor detects the amount of infrared light reflected back from the surface.
A light or white surface generally reflects more infrared light, while a dark or black surface reflects less. The onboard comparator circuit processes the reflected light level and produces a digital output signal. The onboard potentiometer allows the switching threshold to be adjusted. This is useful because the reflected infrared level can vary depending on the distance between the sensor and the surface, the material being detected, and ambient lighting conditions.
In a line-following robot, the sensor is usually mounted facing downward. As the robot moves, the microcontroller reads the sensor output and adjusts the motors according to whether the sensor detects the line or the surrounding surface.
Applications
- Line-following robots
- Educational robotics projects
- Surface and contrast detection
- Path tracking systems
- Simple object and proximity detection projects
- DIY automation projects
- Position detection systems
- Arduino and microcontroller experiments
Pinout
The TCRT5000 line follower module uses a simple three-pin interface.
![]()
| Pin | Function | Description |
|---|---|---|
| V+ | Power Supply | Connect to the module power supply, typically 5V |
| G | Ground | Connect to the common ground of the circuit |
| S | Digital Output | Digital detection signal to the microcontroller |
Wiring
The sensor can be connected directly to an Arduino using the following example wiring.
![]()
| TCRT5000 Module | Arduino | Function |
|---|---|---|
| V+ | 5V | Power supply |
| G | GND | Common ground |
| S | D7 | Digital sensor output |
Arduino Test Code
No additional library is required. The following code reads the digital output from the sensor connected to Arduino digital pin D7 and displays the result in the Serial Monitor.
const int digital_pin = 7;
void setup() {
Serial.begin(9600);
pinMode(digital_pin, INPUT);
}
void loop() {
Serial.print("Digital Reading = ");
Serial.println(digitalRead(digital_pin));
delay(1000);
}Specifications
| Sensor Type | TCRT5000 Infrared Reflective Sensor |
|---|---|
| Number of Channels | 1 |
| Operating Voltage | 5V DC |
| Operating Current | Approximately 20mA |
| Output Type | Digital |
| Output Logic | LOW for dark surfaces and HIGH for light surfaces, depending on sensitivity adjustment |
| Sensitivity Adjustment | Onboard potentiometer |
| Infrared Wavelength | Approximately 940nm |
| Response Time | Approximately 500μs |
| Operating Temperature | -20°C to +85°C |
| Mounting | PCB mounting hole |
Resources
- TCRT5000 Line Tracking Module Tutorial: https://diyi0t.com/tcrt5000-line-tracking-module-arduino-esp8266-esp32/

