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. 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.

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
  • Proximity sensing in automation systems
  • Optical encoders for position and speed measurement
  • Non-contact object detection in industrial systems

Technical Specifications

The TCRT5000 is designed for reliable and efficient IR sensing. Below are its key technical details:

Parameter Value
Operating Voltage 4.5V to 5.5V
Forward Current (IR LED) 60 mA (max)
Collector Current 1 mA (typical)
Peak Wavelength (IR LED) 950 nm
Detection Range 2 mm to 15 mm (optimal: 2-10 mm)
Operating Temperature -25°C to +85°C
Package Type 4-pin through-hole

Pin Configuration and Descriptions

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.

Usage Instructions

The TCRT5000 is straightforward to use in a circuit. Below are the steps and considerations for integrating it into your project:

Circuit Connection

  1. Power the IR LED: Connect the Emitter (+) pin to a 5V power supply and the Emitter (-) pin to ground through a current-limiting resistor (typically 220Ω to 330Ω).
  2. Phototransistor Output: Connect the Collector pin to a pull-up resistor (e.g., 10kΩ) and then to the input pin of a microcontroller or comparator circuit. The Emitter pin of the phototransistor should be connected to ground.
  3. Adjust Detection Range: Place the sensor at an optimal distance (2-10 mm) from the object for accurate detection.

Arduino UNO Example Code

The TCRT5000 can be easily interfaced with an Arduino UNO for object detection. Below is an example code snippet:

// TCRT5000 Arduino Example
// Connect the phototransistor's Collector pin to Arduino pin A0
// and the Emitter pin to GND. The IR LED should be powered via a resistor.

const int sensorPin = A0; // Analog pin connected to the TCRT5000 output
int sensorValue = 0;      // Variable to store the sensor reading

void setup() {
  Serial.begin(9600); // Initialize serial communication for debugging
}

void loop() {
  sensorValue = analogRead(sensorPin); // Read the sensor value
  Serial.print("Sensor Value: ");
  Serial.println(sensorValue); // Print the sensor value to the Serial Monitor

  // Check if an object is detected
  if (sensorValue < 500) { // Adjust threshold based on your setup
    Serial.println("Object detected!");
  } else {
    Serial.println("No object detected.");
  }

  delay(100); // Small delay for stability
}

Best Practices

  • Use a proper current-limiting resistor for the IR LED to prevent damage.
  • Avoid exposing the sensor to direct sunlight or strong ambient light, as it may interfere with detection.
  • Calibrate the sensor for your specific application by adjusting the pull-up resistor and detection threshold.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Object Detection

    • Cause: Incorrect wiring or insufficient power supply.
    • Solution: Double-check the connections and ensure the IR LED is powered with the correct resistor.
  2. False Positives

    • Cause: Strong ambient light or reflective surfaces nearby.
    • Solution: Shield the sensor from ambient light or use it in a controlled environment.
  3. Inconsistent Readings

    • Cause: Improper placement of the sensor or unstable power supply.
    • Solution: Ensure the sensor is placed at the optimal distance (2-10 mm) and use a stable power source.

FAQs

Q: Can the TCRT5000 detect transparent objects?
A: The TCRT5000 may struggle to detect transparent objects due to low IR reflectivity. For such applications, consider using a different sensor.

Q: How do I increase the detection range?
A: The detection range is limited by the sensor's design. However, you can experiment with higher pull-up resistor values or use a lens to focus the IR beam.

Q: Can I use the TCRT5000 with a 3.3V system?
A: Yes, but ensure the IR LED receives sufficient current by adjusting the resistor value. The phototransistor output may also need recalibration for 3.3V logic levels.

By following this documentation, you can effectively integrate the TCRT5000 into your projects for reliable object detection and proximity sensing.