Stufin
Home Quick Cart Profile

KY033 TCRT5000 Sensor

Buy Now

Component Name

KY033 TCRT5000 Sensor

Overview

The KY033 TCRT5000 Sensor is a reflective infrared sensor module designed for detection and tracking of objects. It is widely used in robotics, automation, and IoT applications where proximity detection and object tracking are required.

Functionality

The KY033 TCRT5000 Sensor module consists of an infrared LED and a phototransistor. When an object is placed in front of the sensor, the infrared LED emits light, which is then reflected back to the phototransistor by the object. The phototransistor detects the reflected light and converts it into an electrical signal, which is then outputted through the module's pins.

The sensor is designed to detect objects within a certain proximity range, typically up to 10mm. The sensor's output signal is dependent on the distance between the object and the sensor, with a higher signal strength indicating a closer object.

Key Features

  • Reflective Infrared Technology: The sensor uses reflective infrared technology, which allows for accurate detection of objects within a short range.
  • Adjustable Sensitivity: The sensor's sensitivity can be adjusted using an onboard potentiometer, allowing for fine-tuning of the detection range.
  • Digital Output: The sensor outputs a digital signal (0V or 5V) indicating the presence or absence of an object.
  • Low Power Consumption: The sensor operates at a low voltage (5V) and has a low power consumption, making it suitable for battery-powered devices.
  • Compact Design: The sensor module is compact in size, making it ideal for use in robotic and automation applications where space is limited.
  • Wide Operating Temperature Range: The sensor operates over a wide temperature range (-20C to 80C), making it suitable for use in various environments.

Technical Specifications

Supply Voltage

5V

Operating Current

10mA

Detection Range

Up to 10mm

Output Signal

Digital (0V or 5V)

Sensor Type

Reflective Infrared

Dimensions

16.5mm x 13.5mm x 4.5mm

Weight

2g

Applications

  • Robotics: The KY033 TCRT5000 Sensor is widely used in robotics applications, such as obstacle detection and line following.
  • Automation: The sensor is used in automation applications, such as object detection and counting.
  • IoT Projects: The sensor is suitable for use in IoT projects, such as smart home automation and industrial automation.

Conclusion

The KY033 TCRT5000 Sensor is a reliable and accurate reflective infrared sensor module suitable for various applications, including robotics, automation, and IoT projects. Its compact design, low power consumption, and adjustable sensitivity make it an ideal choice for developers and hobbyists alike.

Pin Configuration

  • KY033 TCRT5000 Sensor Documentation
  • Overview
  • The KY033 TCRT5000 sensor is a Reflective Infrared Sensor module designed for obstacle detection, line tracking, and edge detection applications in robotics, automation, and IoT projects.
  • Pin Description
  • The KY033 TCRT5000 sensor has 3 pins, which are described below:
  • 1. VCC (Power Supply Pin)
  • Pin Type: Power Input
  • Pin Function: Supplies power to the sensor module
  • Voltage Range: 4.5V to 5.5V
  • Typical Voltage: 5V
  • Connection: Connect to a suitable power source (e.g., Arduino board's 5V pin or a power supply module)
  • 2. GND (Ground Pin)
  • Pin Type: Ground
  • Pin Function: Provides a reference ground for the sensor module
  • Connection: Connect to a suitable ground point (e.g., Arduino board's GND pin or a power supply module's GND pin)
  • 3. OUT (Output Pin)
  • Pin Type: Digital Output
  • Pin Function: Provides a digital output signal indicating the detection of an obstacle or reflective surface
  • Output Logic:
  • + High (H) when no obstacle is detected (or when the sensor is not triggered)
  • + Low (L) when an obstacle is detected (or when the sensor is triggered)
  • Connection: Connect to a digital input pin on a microcontroller (e.g., Arduino board's digital pin)
  • Connection Structure
  • To connect the KY033 TCRT5000 sensor to a microcontroller (e.g., Arduino board), follow this structure:
  • VCC Pin Power Supply (e.g., Arduino board's 5V pin)
  • GND Pin Ground (e.g., Arduino board's GND pin)
  • OUT Pin Digital Input Pin (e.g., Arduino board's digital pin)
  • Example Connection Diagram
  • Here is an example connection diagram for connecting the KY033 TCRT5000 sensor to an Arduino Uno board:
  • ```
  • KY033 TCRT5000 Sensor
  • | | |
  • | | VCC -> 5V (Arduino Uno)
  • | GND -> GND (Arduino Uno)
  • OUT -> Digital Pin 2 (Arduino Uno)
  • ```
  • Note: Make sure to adjust the power supply voltage and connection structure according to the specific requirements of your microcontroller and project.

Code Examples

KY033 TCRT5000 Sensor Documentation
Overview
The KY033 TCRT5000 sensor is a reflective infrared sensor commonly used in robotics, obstacle detection, and line following applications. It consists of an infrared LED and a phototransistor, which detects the reflected infrared light. The sensor outputs a digital signal indicating the presence or absence of a reflective surface.
Pinout
The KY033 TCRT5000 sensor has three pins:
VCC: Positive power supply (typically 5V)
 GND: Ground
 OUT: Digital output signal
Example Code
### Example 1: Basic Obstacle Detection with Arduino
In this example, we'll use the KY033 TCRT5000 sensor to detect obstacles using an Arduino board.
```cpp
const int sensorPin = 2;  // Pin connected to the OUT pin of the sensor
void setup() {
  Serial.begin(9600);
  pinMode(sensorPin, INPUT);
}
void loop() {
  int sensorState = digitalRead(sensorPin);
  if (sensorState == HIGH) {
    Serial.println("Obstacle detected!");
  } else {
    Serial.println("No obstacle detected.");
  }
  delay(100);
}
```
### Example 2: Line Following with Raspberry Pi and Python
In this example, we'll use the KY033 TCRT5000 sensor to detect a black line on a white surface using a Raspberry Pi and Python.
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
sensor_pin = 17  # Pin connected to the OUT pin of the sensor
GPIO.setup(sensor_pin, GPIO.IN)
while True:
    sensor_state = GPIO.input(sensor_pin)
    if sensor_state:
        print("Line detected!")
    else:
        print("No line detected.")
    time.sleep(0.1)
```
### Example 3: Interrupt-based Obstacle Detection with ESP32 and MicroPython
In this example, we'll use the KY033 TCRT5000 sensor to detect obstacles using an ESP32 board and MicroPython. We'll utilize interrupts to trigger an event when an obstacle is detected.
```python
import machine
import utime
sensor_pin = machine.Pin(14, machine.Pin.IN)  # Pin connected to the OUT pin of the sensor
def obstacle_detected(pin):
    print("Obstacle detected!")
sensor_pin.irq(trigger=machine.Pin.IRQ_RISING, handler=obstacle_detected)
while True:
    utime.sleep(1)  # Wait for interrupt
```
Notes
Make sure to connect the sensor's VCC pin to a suitable power supply (typically 5V) and the GND pin to ground.
 The KY033 TCRT5000 sensor's output is active low, meaning it outputs a LOW signal when a reflective surface is detected.
 Adjust the sensor's position and sensitivity according to your specific application requirements.
I hope this documentation helps you get started with using the KY033 TCRT5000 sensor in your IoT projects!