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

How to Use TCRT 5000 IR SENSOR schematic: Examples, Pinouts, and Specs

Image of TCRT 5000 IR SENSOR schematic
Cirkit Designer LogoDesign with TCRT 5000 IR SENSOR schematic in Cirkit Designer

Introduction

The TCRT 5000 is an infrared (IR) sensor module that integrates an IR emitter and a phototransistor in a single package. It is designed for detecting objects and measuring proximity by sensing the intensity of reflected IR light. The sensor is widely used in applications such as line-following robots, object detection, and proximity sensing in automation systems.

Explore Projects Built with TCRT 5000 IR SENSOR schematic

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Raspberry Pi Zero-Based IR Sensor Array
Image of CSC 615 A4: A project utilizing TCRT 5000 IR SENSOR schematic in a practical application
This circuit integrates a Raspberry Pi Zero with two types of IR sensors: a TCRT 5000 IR sensor and a generic IR sensor. The Raspberry Pi Zero is configured to receive digital output signals from both sensors on GPIO14 and GPIO15 respectively, allowing it to process and respond to infrared light detection. The 5V and GND pins of the Raspberry Pi Zero provide power to both IR sensors, establishing a common voltage reference.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP-8266 Based Obstacle Detection System with IR and Ultrasonic Sensors
Image of iot rev: A project utilizing TCRT 5000 IR SENSOR schematic in a practical application
This circuit integrates two types of sensors, the TCRT 5000 IR sensors and HC-SR04 Ultrasonic sensors, with an ESP-8266 microcontroller. The IR sensors are connected to both analog and digital input pins on the ESP-8266, allowing for both threshold-based and precise distance measurements. The ultrasonic sensors are interfaced with digital pins for triggering and echo reception, enabling distance measurement through time-of-flight calculations. The ESP-8266 likely processes these sensor inputs for applications such as obstacle detection or proximity sensing, and could potentially communicate the data wirelessly given its capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Controlled Dual Gearmotor System with IR Sensing
Image of esp32 BLETHOOTH with motor driver: A project utilizing TCRT 5000 IR SENSOR schematic in a practical application
This circuit features an ESP32 microcontroller interfaced with three TCRT 5000 IR sensors and two DC gearmotors controlled by an L298N motor driver. The ESP32 reads digital outputs from the IR sensors to likely make decisions based on line or obstacle detection, and it controls the gearmotors' directions and speeds, possibly for a robot or automated system. Power is supplied by a 6V battery connected to the motor driver, which also provides 5V to the ESP32 and the IR sensors.
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 TCRT 5000 IR SENSOR schematic 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

Explore Projects Built with TCRT 5000 IR SENSOR schematic

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 CSC 615 A4: A project utilizing TCRT 5000 IR SENSOR schematic in a practical application
Raspberry Pi Zero-Based IR Sensor Array
This circuit integrates a Raspberry Pi Zero with two types of IR sensors: a TCRT 5000 IR sensor and a generic IR sensor. The Raspberry Pi Zero is configured to receive digital output signals from both sensors on GPIO14 and GPIO15 respectively, allowing it to process and respond to infrared light detection. The 5V and GND pins of the Raspberry Pi Zero provide power to both IR sensors, establishing a common voltage reference.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of iot rev: A project utilizing TCRT 5000 IR SENSOR schematic in a practical application
ESP-8266 Based Obstacle Detection System with IR and Ultrasonic Sensors
This circuit integrates two types of sensors, the TCRT 5000 IR sensors and HC-SR04 Ultrasonic sensors, with an ESP-8266 microcontroller. The IR sensors are connected to both analog and digital input pins on the ESP-8266, allowing for both threshold-based and precise distance measurements. The ultrasonic sensors are interfaced with digital pins for triggering and echo reception, enabling distance measurement through time-of-flight calculations. The ESP-8266 likely processes these sensor inputs for applications such as obstacle detection or proximity sensing, and could potentially communicate the data wirelessly given its capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of esp32 BLETHOOTH with motor driver: A project utilizing TCRT 5000 IR SENSOR schematic in a practical application
ESP32-Controlled Dual Gearmotor System with IR Sensing
This circuit features an ESP32 microcontroller interfaced with three TCRT 5000 IR sensors and two DC gearmotors controlled by an L298N motor driver. The ESP32 reads digital outputs from the IR sensors to likely make decisions based on line or obstacle detection, and it controls the gearmotors' directions and speeds, possibly for a robot or automated system. Power is supplied by a 6V battery connected to the motor driver, which also provides 5V to the ESP32 and the IR sensors.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of compt_neapolis_nebeul: A project utilizing TCRT 5000 IR SENSOR schematic 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

Common Applications:

  • Line-following robots
  • Obstacle detection in robotics
  • Proximity sensing in industrial automation
  • Position encoders
  • Reflective optical switches

Technical Specifications

Key Technical Details:

  • Operating Voltage: 3.3V to 5V
  • Current Consumption: ~10mA (typical)
  • IR Wavelength: 950nm
  • Detection Range: 2mm to 15mm (depending on object reflectivity)
  • Output Type: Analog or digital (depending on circuit design)
  • Operating Temperature: -25°C to +85°C
  • Package Type: Through-hole

Pin Configuration and Descriptions:

The TCRT 5000 sensor has four pins. Below is the pinout and description:

Pin Number Pin Name Description
1 Emitter (A) Anode of the IR LED (connect to positive voltage)
2 Emitter (K) Cathode of the IR LED (connect to ground)
3 Collector Collector of the phototransistor (output signal)
4 Emitter Emitter of the phototransistor (connect to ground)

Usage Instructions

How to Use the TCRT 5000 in a Circuit:

  1. Powering the Sensor: Connect the IR LED anode (Pin 1) to a positive voltage (3.3V or 5V) through a current-limiting resistor (typically 220Ω to 330Ω). Connect the cathode (Pin 2) to ground.
  2. Phototransistor Output: Connect the phototransistor's collector (Pin 3) to a pull-up resistor (e.g., 10kΩ) and then to the positive voltage. The emitter (Pin 4) should be connected to ground.
  3. Signal Reading: The voltage at the collector (Pin 3) will vary depending on the intensity of the reflected IR light. A higher reflection results in a lower voltage at the output.

Important Considerations:

  • Object Reflectivity: The sensor's performance depends on the reflectivity of the object. Light-colored or shiny surfaces reflect more IR light, while dark or matte surfaces reflect less.
  • Ambient Light Interference: Avoid using the sensor in environments with strong ambient IR light (e.g., sunlight) to minimize interference.
  • Distance Calibration: Adjust the distance between the sensor and the object for optimal detection. The detection range is typically 2mm to 15mm.

Example: Connecting the TCRT 5000 to an Arduino UNO

Below is an example of how to connect and use the TCRT 5000 with an Arduino UNO to detect objects:

Circuit Connections:

  • TCRT 5000 Pin 1 (Emitter A): Connect to Arduino 5V through a 220Ω resistor.
  • TCRT 5000 Pin 2 (Emitter K): Connect to Arduino GND.
  • TCRT 5000 Pin 3 (Collector): Connect to Arduino analog pin A0 with a 10kΩ pull-up resistor to 5V.
  • TCRT 5000 Pin 4 (Emitter): Connect to Arduino GND.

Arduino Code:

// TCRT 5000 IR Sensor Example Code
// Reads the analog signal from the sensor and prints it to the Serial Monitor.

const int sensorPin = A0; // Analog pin connected to the sensor's output

void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 baud
}

void loop() {
  int sensorValue = analogRead(sensorPin); // Read the analog value from the sensor
  Serial.print("Sensor Value: ");
  Serial.println(sensorValue); // Print the sensor value to the Serial Monitor
  
  delay(100); // Delay for 100ms before the next reading
}

Best Practices:

  • Use a decoupling capacitor (e.g., 0.1µF) across the power supply pins to reduce noise.
  • Place the sensor close to the object for accurate detection.
  • Shield the sensor from external IR sources to improve reliability.

Troubleshooting and FAQs

Common Issues and Solutions:

  1. No Output Signal:

    • Check the connections and ensure the IR LED is powered correctly.
    • Verify the pull-up resistor on the phototransistor's collector pin.
  2. Inconsistent Readings:

    • Ensure the object is within the sensor's detection range.
    • Reduce ambient IR light interference by shielding the sensor.
  3. Low Sensitivity:

    • Increase the current through the IR LED by reducing the value of the current-limiting resistor (but do not exceed the LED's maximum current rating).
    • Ensure the object has a reflective surface.
  4. Output Always High or Low:

    • Verify the pull-up resistor value (10kΩ is typical).
    • Check for proper grounding of the phototransistor emitter pin.

FAQs:

Q: Can the TCRT 5000 detect black surfaces?
A: Black surfaces absorb most IR light, making detection difficult. Use reflective or light-colored surfaces for better results.

Q: What is the maximum detection range of the TCRT 5000?
A: The sensor can detect objects up to 15mm away, depending on the object's reflectivity.

Q: Can I use the TCRT 5000 with a 3.3V system?
A: Yes, the sensor operates at 3.3V, but ensure the current-limiting resistor for the IR LED is appropriately calculated.

Q: How do I reduce interference from ambient light?
A: Use the sensor in a controlled environment or add an IR filter to block unwanted wavelengths.

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