Infrared Tracking Module is a sensor that is used to measure infrared light radiating from an object.

An infrared sensor is a sensor that is used to measure infrared light radiating from an object. These sensors are primarily used for motion sensing and are used as alarms. All objects with a temperature above absolute zero emit heat energy in the form of electromagnetic radiation, this radiation is not visible to the human eye however it can be picked up via this electronic sensor. IR sensors detect changes in infrared radiation and give output in the form of voltage which can be read by the Analog pins of the microprocessor or microcontroller based development kits. These work best when the obstacle in view is black in colour. The module consists of 4 IR sensors mounted on 4 small different PCB’s which can be placed at different locations according to our needs. The potentiometers of the IR sensors for calibration are placed on the main board which receives signal from our microprocessor or microcontroller based development kit.

Infrared Tracking Module is a sensor that is used to measure infrared light radiating from an object.

Buy 4 Channel Infrared Tracking Module

How to use the module?

Connections: -

• Connect the 5V pin of the Arduino to the Vin pin of the module.
• Connect the GND pin of the module to the GND pin of the Arduino.
• Connect the IN1 pin of the module to digital pin 2 of the Arduino.
• Connect the IN2 pin of the module to the digital pin 3 of the Arduino.
• Connect the IN3 pin of the module to the digital pin 4 of the Arduino.
• Connect the IN4 pin of the module to the digital pin 5 of the Arduino.
• Connect all the VCC pins of the module to each other.
• Similarly like above connect all the GND pins of the module to each other.
• Connect the IN1 pin of the module to the OUT1 pin at the other end of the module.
• Connect the IN2 pin of the module to the OUT2 pin at the other end of the module.
• Connect the IN3 pin of the module to the OUT3 pin at the other end of the module.
• Connect the IN4 pin of the module to the OUT4 pin at the other end of the module.
Connect the module to the microcontroller or microprocessor-based development kit according to the above instructions or use the schematic given below for easy understanding.

Code:-

This tracking module adopts four tracking probes and an optimized spacing layout. The inner two probes can accurately identify the black line. The outer two probes can assist the inner probe to identify the black line and provide early warning. The car can recognize the 90°curved road and other difficult tracks.

int s1=2; //First sensor
int s2=3; //Second sensor
int s3=4; //Third sensor
int s4=5; //Fourth sensor
int ss1; //First sensor state
int ss2; //Second sensor state
int ss3; //Third sensor state
int ss4; //Fourth sensor state
void setup(){
Serial.begin(9600);
pinMode(s1,INPUT); //First sensor gives input value
pinMode(s2,INPUT); //Second sensor gives input value
pinMode(s3,INPUT); //Third sensor gives input value
pinMode(s4,INPUT); //Fourth sensor gives input value

}
void loop(){
ss1=digitalRead(s1); //Reads digital value provided by first sensor
ss2=digitalRead(s2); //Reads digital value provided by second sensor
ss3=digitalRead(s3); //Reads digital value provided by third sensor
ss4=digitalRead(s4); //Reads digital value provided by fourth sensor
Serial.print("S1= ");
Serial.println(ss1); //Print first sensor reading
Serial.print("S2= ");
Serial.println(ss2); //Print second sensor reading
Serial.print("S3= ");
Serial.println(ss3); //Print third sensor reading
Serial.print("S4= ");
Serial.println(ss4); //Print fourth sensor reading
delay(200);
}

The sensors on the module detect obstacles and present appropriate values accordingly, that is high and low digital signals in the form of 1 and 0.

Applications: -

• Line follower robotics
• Obstacle detection
• Motion detection
• Alarm systems
• Human detection
Sensors & modules