ESP32 KY-033 Line Tracking Sensor Module

KY-033 Line Tracking Sensor Module image

KY-033

Protocol: Digital

Overview

The KY-033 is a line tracking sensor module that detects light-reflective and light-absorbing surfaces using infrared technology. It provides a digital output signal upon detecting a line, making it suitable for applications like robotic navigation and line-following projects.

About KY-033 Line Tracking Sensor Module

The KY-033 Line Tracking Sensor Module is designed for line-following robots and similar applications. It utilizes an infrared emitter and receiver to detect the presence of a line by differentiating between light-reflective and light-absorbing surfaces. The module outputs a digital signal indicating whether it is over a line or not. Sensitivity can be adjusted using the onboard potentiometer.

Where to Buy

KY-033 Line Tracking Sensor Module

Starting from

$2 per unit

Amazon com
Amazon.com Ships worldwide
View Price
Amazon de
Amazon.de Ships to EU
View Price
Aliexpress
AliExpress Best value
View Price

Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specifications

Operating Voltage 3.3V to 5V
Detection Distance 1 mm to 25 mm (adjustable)
Detection Angle 35°
Current Consumption 20 mA
Operating Temperature -10°C to 50°C
Dimensions 42 x 10.5 mm

Pinout Configuration

The VCC pin is used to supply power to the sensor, and it typically requires 3.3V or 5V (refer to the datasheet for specific voltage requirements). The GND pin is the ground connection and must be connected to the ground of your ESP32.

  • GND: Connects to the ground of the circuit.
  • VCC: Supplies power to the module, typically 3.3V or 5V.
  • S (Signal): Outputs a digital signal indicating line detection.

Wiring with ESP32

  • GND: Connect to ESP32 GND.
  • VCC: Connect to ESP32 3.3V or 5V.
  • S (Signal): Connect to a digital input pin on the ESP32 (e.g., GPIO16).

Troubleshooting Guide

Common Issues

❌ No Line Detection

⚠️ False Positives

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

Arduino Example

C++
🔧

ESP-IDF Example

C++
🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++
🐍

MicroPython Example

Python

Conclusion

The ESP32 KY-033 Line Tracking Sensor Module is a powerful KY-0xx module sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.