5 Channel IR Infrared CTRT5000 Line Detection Module
π€ 5-Channel IR (CTRT5000 / TCRT5000) Line Detection Module
π§ What is it?
A 5-Channel IR Line Detection Module uses multiple reflective IR sensors (commonly based on TCRT5000 Reflective Optical Sensor) to detect black/white lines on a surface.
π Itβs widely used in line-following robots and path detection systems.
βοΈ How It Works
Each sensor pair contains:
IR LED (emitter) β sends infrared light
Phototransistor (receiver) β detects reflected light
Principle:
White surface β reflects more IR β HIGH signal
Black surface β absorbs IR β LOW signal
π This difference allows the module to detect lines.
π Pin Configuration
Common Pins:
| Pin | Function |
|---|---|
| VCC | 3.3V β 5V |
| GND | Ground |
| OUT1βOUT5 | Digital outputs (for each sensor) |
(Some modules also provide analog outputs, but most are digital)
π Working Structure
[IR LED] β emits light
β
Surface (black/white)
β
[Phototransistor]
β
Signal Conditioning (Comparator)
β
Digital Output (HIGH/LOW)
π Key Specifications
Number of sensors: 5 channels
Operating voltage: 3.3V β 5V
Detection type: Reflective IR
Output: Digital (HIGH/LOW)
Adjustable sensitivity (via potentiometers)
Detection distance: ~2β10 mm
π§ Output Behavior
| Surface | Output |
|---|---|
| White | HIGH (1) |
| Black | LOW (0) |
π (May vary depending on module configuration)
ποΈ Onboard Features
5 Γ IR sensor pairs
5 Γ comparators
5 Γ potentiometers (for tuning sensitivity)
Indicator LEDs (for each channel)
π Applications
π€ Line-following robots
π Path tracking systems
π Autonomous vehicles (basic)
π¦ Conveyor belt tracking
π§ Position sensing
π Example Output (Robot on Line)
| Sensor | Output |
|---|---|
| Leftmost | 1 |
| Left | 0 |
| Center | 0 |
| Right | 1 |
| Rightmost | 1 |
π Robot adjusts direction based on this pattern
β Advantages
Simple and low cost
Easy to interface
Fast response
Multiple sensors for better accuracy
β οΈ Limitations
Sensitive to ambient light
Requires proper calibration
Works best at close distance
Performance depends on surface contrast
π Arduino Connection
VCC β 5V
GND β GND
OUT1βOUT5 β Digital pins (e.g., D2βD6)
π‘ Example Use
Line-following robot:
Sensors read surface
Arduino processes pattern
Motors adjust direction accordingly
π Practical Tips
Adjust potentiometers for consistent readings
Maintain proper height (~5mm from surface)
Use matte black tape for best results
Avoid shiny surfaces
π IR Module vs Other Sensors
| Feature | IR Line Sensor | Ultrasonic | Hall Sensor |
|---|---|---|---|
| Detects | Surface color | Distance | Magnetic field |
| Use | Line following | Obstacle | Magnetic detection |
