Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use TCRT5000: Examples, Pinouts, and Specs

Image of TCRT5000
Cirkit Designer LogoDesign with TCRT5000 in Cirkit Designer

Introduction

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.

Explore Projects Built with TCRT5000

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino Mega 2560-Based Autonomous Robot with IR and Ultrasonic Sensors
Image of ARUINO: A project utilizing TCRT5000 in a practical application
This circuit is a robotic system controlled by an Arduino Mega 2560, which interfaces with multiple sensors including TCRT-5000 IR sensors, HC-SR04 ultrasonic sensors, and a TCS3200 color sensor. The Arduino also controls a motor driver to operate four motors and wheels, powered by a 7V battery, enabling the robot to navigate and interact with its environment.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Leonardo-Based Line Following Robot with TCRT-5000 IR Sensors and L298N Motor Driver
Image of compt_neapolis_nebeul: A project utilizing TCRT5000 in a practical application
This circuit is a line-following robot that uses four TCRT-5000 IR sensors to detect the path and an Arduino Leonardo to process the sensor data. The Arduino controls two DC motors via an L298N motor driver module, powered by a 7.4V battery and a rocker switch for power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Powered Obstacle Avoidance Robot with IR and Ultrasonic Sensors
Image of projcememek: A project utilizing TCRT5000 in a practical application
This circuit features a 18650 Li-Ion battery connected to a TP4056 charging module, which in turn is connected to an MT3608 boost converter to step up the voltage. The output of the MT3608 powers an ESP32 microcontroller, a TCRT 5000 IR sensor, an HC-SR04 ultrasonic sensor, and an MG996R servo motor. The ESP32 is configured to control the servo motor via GPIO 27 and to receive input signals from the IR sensor and ultrasonic sensor through GPIO 14 and GPIO 13, respectively.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano-Based Line Following Robot with IR Sensors and L298N Motor Driver
Image of line: A project utilizing TCRT5000 in a practical application
This circuit is a robotic system controlled by an Arduino Nano, which interfaces with three TCRT-5000 IR sensors for obstacle detection and an L298N motor driver to control two DC motors. The system is powered by a 12V battery, regulated by a buck converter to supply the necessary voltage to the Arduino and sensors.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with TCRT5000

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of ARUINO: A project utilizing TCRT5000 in a practical application
Arduino Mega 2560-Based Autonomous Robot with IR and Ultrasonic Sensors
This circuit is a robotic system controlled by an Arduino Mega 2560, which interfaces with multiple sensors including TCRT-5000 IR sensors, HC-SR04 ultrasonic sensors, and a TCS3200 color sensor. The Arduino also controls a motor driver to operate four motors and wheels, powered by a 7V battery, enabling the robot to navigate and interact with its environment.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of compt_neapolis_nebeul: A project utilizing TCRT5000 in a practical application
Arduino Leonardo-Based Line Following Robot with TCRT-5000 IR Sensors and L298N Motor Driver
This circuit is a line-following robot that uses four TCRT-5000 IR sensors to detect the path and an Arduino Leonardo to process the sensor data. The Arduino controls two DC motors via an L298N motor driver module, powered by a 7.4V battery and a rocker switch for power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of projcememek: A project utilizing TCRT5000 in a practical application
ESP32-Powered Obstacle Avoidance Robot with IR and Ultrasonic Sensors
This circuit features a 18650 Li-Ion battery connected to a TP4056 charging module, which in turn is connected to an MT3608 boost converter to step up the voltage. The output of the MT3608 powers an ESP32 microcontroller, a TCRT 5000 IR sensor, an HC-SR04 ultrasonic sensor, and an MG996R servo motor. The ESP32 is configured to control the servo motor via GPIO 27 and to receive input signals from the IR sensor and ultrasonic sensor through GPIO 14 and GPIO 13, respectively.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of line: A project utilizing TCRT5000 in a practical application
Arduino Nano-Based Line Following Robot with IR Sensors and L298N Motor Driver
This circuit is a robotic system controlled by an Arduino Nano, which interfaces with three TCRT-5000 IR sensors for obstacle detection and an L298N motor driver to control two DC motors. The system is powered by a 12V battery, regulated by a buck converter to supply the necessary voltage to the Arduino and sensors.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Line-following robots
  • Obstacle detection in robotics
  • Position sensing in rotary encoders
  • Edge detection in industrial automation
  • Proximity sensing in consumer electronics

Technical Specifications

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

Pin Configuration

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.

Usage Instructions

How to Use the TCRT5000 in a Circuit

  1. Power Supply: Connect the IR LED anode (Pin 1) to a 5V power source through a current-limiting resistor (typically 220Ω to 330Ω). Connect the cathode (Pin 2) to ground.
  2. Phototransistor Output: Connect the phototransistor collector (Pin 3) to a pull-up resistor (e.g., 10kΩ) and then to the power supply. The emitter (Pin 4) should be connected to ground.
  3. Signal Reading: The voltage at the collector pin (Pin 3) will vary depending on the amount of IR light reflected back to the phototransistor. A higher voltage indicates less reflected light, while a lower voltage indicates more reflected light.

Important Considerations

  • Object Reflectivity: The sensor's performance depends on the reflectivity of the object. Light-colored or reflective surfaces provide better detection than dark or matte surfaces.
  • Ambient Light: Minimize ambient light interference by shielding the sensor or using it in controlled lighting conditions.
  • Distance Calibration: Adjust the distance between the sensor and the object for optimal performance within the 2 mm to 15 mm range.

Example: Connecting the TCRT5000 to an Arduino UNO

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);
}

Notes:

  • Use the Serial Monitor to observe the sensor readings. A lower value indicates the presence of an object, while a higher value indicates no object or low reflectivity.
  • Adjust the pull-up resistor value if the sensor output is unstable.

Troubleshooting and FAQs

Common Issues

  1. No Output or Incorrect Readings

    • Cause: Incorrect wiring or missing pull-up resistor.
    • Solution: Double-check the wiring and ensure the pull-up resistor is connected to the phototransistor collector.
  2. Unstable Sensor Output

    • Cause: Excessive ambient light interference.
    • Solution: Shield the sensor from ambient light or use it in a controlled environment.
  3. Limited Detection Range

    • Cause: Object is outside the sensor's effective range or has low reflectivity.
    • Solution: Adjust the distance between the sensor and the object or use reflective tape on the object.
  4. Overheating of IR LED

    • Cause: Excessive current through the IR LED.
    • Solution: Use an appropriate current-limiting resistor (e.g., 220Ω to 330Ω).

FAQs

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.