

The 4 Channel IR Line Tracking Sensor Module is a versatile sensor designed for detecting lines or paths using infrared (IR) light. It is commonly used in robotics for line-following applications, where it enables robots to navigate along predefined paths with precision. The module features four independent IR sensors, allowing it to detect multiple points along a line simultaneously, making it ideal for complex navigation tasks.








Below are the key technical details of the 4 Channel IR Line Tracking Sensor Module:
| Parameter | Specification |
|---|---|
| Operating Voltage | 3.3V - 5V DC |
| Operating Current | ≤ 60mA |
| Detection Range | 1mm - 12mm (optimal: 2mm - 8mm) |
| Output Type | Digital (High/Low) |
| Sensor Count | 4 independent IR sensors |
| Dimensions | ~70mm x 20mm x 10mm |
| Weight | ~10g |
| Operating Temperature | -10°C to 50°C |
The module has a total of 6 pins. Below is the pinout description:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (3.3V - 5V DC) |
| 2 | GND | Ground connection |
| 3 | OUT1 | Digital output for Sensor 1 (High = Line detected, Low = No line detected) |
| 4 | OUT2 | Digital output for Sensor 2 (High = Line detected, Low = No line detected) |
| 5 | OUT3 | Digital output for Sensor 3 (High = Line detected, Low = No line detected) |
| 6 | OUT4 | Digital output for Sensor 4 (High = Line detected, Low = No line detected) |
VCC pin to a 3.3V or 5V power source and the GND pin to ground.OUT1, OUT2, OUT3, and OUT4 pins to the digital input pins of a microcontroller (e.g., Arduino UNO).Below is an example Arduino sketch to read the outputs of the 4 Channel IR Line Tracking Sensor Module:
// Define the pins connected to the sensor module
#define SENSOR1_PIN 2 // OUT1 connected to digital pin 2
#define SENSOR2_PIN 3 // OUT2 connected to digital pin 3
#define SENSOR3_PIN 4 // OUT3 connected to digital pin 4
#define SENSOR4_PIN 5 // OUT4 connected to digital pin 5
void setup() {
// Initialize serial communication for debugging
Serial.begin(9600);
// Set sensor pins as inputs
pinMode(SENSOR1_PIN, INPUT);
pinMode(SENSOR2_PIN, INPUT);
pinMode(SENSOR3_PIN, INPUT);
pinMode(SENSOR4_PIN, INPUT);
}
void loop() {
// Read the state of each sensor
int sensor1State = digitalRead(SENSOR1_PIN);
int sensor2State = digitalRead(SENSOR2_PIN);
int sensor3State = digitalRead(SENSOR3_PIN);
int sensor4State = digitalRead(SENSOR4_PIN);
// Print the sensor states to the Serial Monitor
Serial.print("Sensor 1: ");
Serial.print(sensor1State);
Serial.print(" | Sensor 2: ");
Serial.print(sensor2State);
Serial.print(" | Sensor 3: ");
Serial.print(sensor3State);
Serial.print(" | Sensor 4: ");
Serial.println(sensor4State);
// Add a small delay for readability
delay(100);
}
No Line Detection:
Inconsistent Readings:
All Sensors Always HIGH or LOW:
Interference from Ambient Light:
Q1: Can this module detect curved lines?
A1: Yes, the module can detect curved lines as long as the curve is within the range of the four sensors.
Q2: Can I use this module with a Raspberry Pi?
A2: Yes, the module can be used with a Raspberry Pi. Connect the output pins to GPIO pins and read their states using Python or other programming languages.
Q3: What is the maximum speed of a robot using this module?
A3: The maximum speed depends on the robot's design and the processing speed of the microcontroller. Ensure the robot moves slow enough for the sensors to detect the line accurately.
Q4: Can this module detect colors?
A4: No, the module is designed to detect the presence or absence of a line based on contrast, not specific colors.