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 is an infrared (IR) sensor module that integrates an IR emitter (LED) and a phototransistor in a single package. It is designed for detecting objects and measuring proximity by emitting IR light and sensing the reflected light from nearby objects. The sensor is highly sensitive to reflective surfaces and is commonly used in robotics, line-following robots, optical encoders, and other automation systems.

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
  • Object detection in automation systems
  • Proximity sensing
  • Optical encoders for rotational or linear motion detection
  • Edge detection in conveyor belts

Technical Specifications

The TCRT5000 sensor has the following key technical details:

Parameter Value
Operating Voltage 3.3V to 5V
Forward Current (IR LED) 60 mA (max)
Collector Current 1 mA to 15 mA
Peak Wavelength (IR LED) 950 nm
Detection Range 2 mm to 15 mm (optimal: 2-10 mm)
Operating Temperature Range -25°C to +85°C
Dimensions 10.2 mm x 5.8 mm x 7 mm

Pin Configuration and Descriptions

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 and then to VCC.
2 Emitter (K) Cathode of the IR LED. Connect to ground.
3 Collector Collector of the phototransistor. Connect to a pull-up resistor and then to VCC.
4 Emitter Emitter of the phototransistor. Connect to ground.

Usage Instructions

How to Use the TCRT5000 in a Circuit

  1. Power Supply: Connect the IR LED anode (Pin 1) to a current-limiting resistor (typically 220Ω to 1kΩ) and then to the power supply (3.3V or 5V). Connect the cathode (Pin 2) to ground.
  2. Phototransistor Circuit: Connect the phototransistor's collector (Pin 3) to a pull-up resistor (e.g., 10kΩ) and then to the power supply. Connect the emitter (Pin 4) to ground.
  3. Output Signal: The voltage at the collector pin will vary depending on the amount of IR light reflected back to the phototransistor. A higher reflection results in a lower voltage at the collector.

Important Considerations and Best Practices

  • Optimal Distance: The TCRT5000 works best at a distance of 2-10 mm from the reflective surface. Ensure the object is within this range for accurate detection.
  • Surface Reflectivity: The sensor's performance depends on the reflectivity of the surface. Light-colored or shiny surfaces reflect more IR light, while dark or matte surfaces reflect less.
  • Ambient Light: Minimize ambient light interference by shielding the sensor or using it in controlled lighting conditions.
  • Current Limiting: Always use a resistor in series with the IR LED to prevent damage due to excessive current.

Example: Connecting TCRT5000 to Arduino UNO

Below is an example of how to connect the TCRT5000 to an Arduino UNO for object detection:

Circuit Connections:

  • TCRT5000 Pin 1 (Emitter A): Connect to a 220Ω resistor, then to Arduino 5V.
  • TCRT5000 Pin 2 (Emitter K): Connect to Arduino GND.
  • TCRT5000 Pin 3 (Collector): Connect to a 10kΩ pull-up resistor, then to Arduino 5V. Also connect to Arduino digital pin 2.
  • TCRT5000 Pin 4 (Emitter): Connect to Arduino GND.

Arduino Code:

// TCRT5000 Object Detection Example
// Connect TCRT5000 output to Arduino digital pin 2

const int sensorPin = 2; // Pin connected to TCRT5000 collector
const int ledPin = 13;   // Built-in LED for visual feedback

void setup() {
  pinMode(sensorPin, INPUT); // Set sensor pin as input
  pinMode(ledPin, OUTPUT);   // Set LED pin as output
  Serial.begin(9600);        // Initialize serial communication
}

void loop() {
  int sensorValue = digitalRead(sensorPin); // Read sensor output
  
  if (sensorValue == LOW) {
    // Object detected (IR light reflected)
    digitalWrite(ledPin, HIGH); // Turn on LED
    Serial.println("Object detected!");
  } else {
    // No object detected
    digitalWrite(ledPin, LOW); // Turn off LED
    Serial.println("No object detected.");
  }
  
  delay(100); // Small delay for stability
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Sensor Not Detecting Objects:

    • Ensure the object is within the optimal detection range (2-10 mm).
    • Check the surface reflectivity; dark or matte surfaces may not reflect enough IR light.
    • Verify the circuit connections, especially the pull-up resistor on the phototransistor.
  2. False Detections:

    • Reduce ambient light interference by shielding the sensor.
    • Ensure the IR LED is functioning correctly by checking its forward voltage with a multimeter.
  3. No Output Signal:

    • Verify the current-limiting resistor for the IR LED is correctly sized (220Ω to 1kΩ).
    • Check the pull-up resistor on the phototransistor (typically 10kΩ).

FAQs

Q1: Can the TCRT5000 detect black surfaces?
A1: Black surfaces absorb most IR light and reflect very little, making detection difficult. Use reflective or light-colored surfaces for better results.

Q2: What is the maximum detection range of the TCRT5000?
A2: The sensor can detect objects up to 15 mm away, but the optimal range is 2-10 mm.

Q3: Can I use the TCRT5000 with a 3.3V power supply?
A3: Yes, the TCRT5000 operates with both 3.3V and 5V power supplies. Adjust the resistors accordingly to limit current.

Q4: How do I reduce noise in the output signal?
A4: Add a small capacitor (e.g., 0.1 µF) between the collector and emitter of the phototransistor to filter noise.

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