Wish List 0

5 Channel Infrared Tracking Module Tracing Sensor

Rs. 137.00 Rs. 158.00

-Five Channel Line Tracking Sensor Module (BFD-one thousand) is a sensor board designed for use with line follower robots.
-This module has been enough to satisfy the daily task of monitoring, but also with the infrared distance sensor and touch detection sensor, the board makes your robot layout capable of adapt to the state of affairs without problems.

-BFD – 1000 especially designed as a black line (white) XunQu, especially appropriate for the complicated of black and white line, go black and white line detection, it has 6 roads excessive sensitivity infrared sensor (5 escapes patrol, 1 street), to the popularity of black and white line correctly, it has the following features and functions:
1. BFD – one thousand incorporated no.5 excessive sensitivity tracking sensor, for the environmental effect of small, can correct monitoring to complex  black line (white line), for the simple black line   monitoring extra cozy.
2. BFD – one thousand included infrared Barrie sensor, escapes distance may be regulated via the slide rheostat.
3. BFD – a thousand has a in particular designed touch detection sensor, from the layout of the robot is extra easy.
Four. BFD – 1000 all the output sign to a digital signal (v), effortlessly connected with MCU.
5. All sensor output nation BFD – one thousand have LED lighting fixtures as instructions, convenient debugging.
6. BFD – one thousand aid voltage of three.0-5.5 v meet the demand of most systems.
7. Using the excessive sensitivity of the sensor, monitoring range between zero. Five mm to forty mm any exchange and don’t need to do any adjustment

Features:
1. 5 channel high sensitivity sensor
2. High accuracy for tracking black line.
3. Distance sensor at the front, distance can be adjusted
4. Special touch sensor design, making the robot design simple
5. Digital output signal
6. Indicator LEDs



SPECIFICATIONS:
Input voltage        3.0-5.5V
Output Type          Digital output (high and low)
Detecting distance   0-4cm (black line sensor) 0-5cm (adjustable distance detection)

OVERVIEW:

5 Channel Infrared Tracking Module Tracing Sensor

PACKAGE INCLUDES:

1 PCS x 5 Channel Line Tracking Module


//SOURCE CODE TAKEN FROM BELOW LINK

//https://www.instructables.com/Arduino-Based-Line-Tracker-Robot/

#define lmotorf 4 //Motor A1

#define lmotorb 5 //Motor A2

#define rmotorf 6 //Motor B1

#define rmotorb 7 //Motor B2


//HIGH white

//LOW black


void setup() {

pinMode(lmotorf,OUTPUT);

pinMode(rmotorf,OUTPUT);

pinMode(lmotorb,OUTPUT);

pinMode(rmotorb,OUTPUT);

pinMode(8,INPUT); 

pinMode(9,INPUT);

pinMode(10,INPUT);

pinMode(11,INPUT);

pinMode(12,INPUT);

pinMode(13,INPUT);

}


void loop() {


int sensor1=digitalRead(8);//sensor1

int sensor2=digitalRead(9);//sensor2

int sensor3=digitalRead(10);//sensor3

int sensor4=digitalRead(11);//sensor4

int sensor5=digitalRead(12);//sensor5


if((sensor2==LOW)&&(sensor3==LOW)&&(sensor4==LOW)) //When ALL ARE on WHITE line

{


digitalWrite(lmotorf,HIGH);

digitalWrite(rmotorf,HIGH);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}

else if((sensor2==HIGH)&&(sensor3==LOW)&&(sensor4==HIGH))


digitalWrite(lmotorf,HIGH);

digitalWrite(rmotorf,HIGH);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}

else if((sensor2==LOW)&&(sensor3==HIGH)&&(sensor4==LOW))


digitalWrite(lmotorf,HIGH);

digitalWrite(rmotorf,HIGH);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}

else if((sensor1==HIGH)&&(sensor5==LOW)&&(sensor2==LOW)&&(sensor3==HIGH)&&(sensor4==LOW))//1 LEFT


digitalWrite(lmotorf,HIGH);

digitalWrite(rmotorf,LOW);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}


else if((sensor1==LOW)&&(sensor5==HIGH)&&(sensor2==LOW)&&(sensor3==HIGH)&&(sensor4==HIGH))//1 LEFT


digitalWrite(lmotorf,HIGH);

digitalWrite(rmotorf,LOW);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}

else if((sensor1==HIGH)&&(sensor5==LOW)&&(sensor2==LOW)&&(sensor3==LOW)&&(sensor4==LOW))//1 LEFT


digitalWrite(lmotorf,HIGH);

digitalWrite(rmotorf,LOW);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}


else if((sensor1==LOW)&&(sensor5==HIGH)&&(sensor2==HIGH)&&(sensor3==HIGH)&&(sensor4==HIGH))//NULL


digitalWrite(lmotorf,HIGH);

digitalWrite(rmotorf,LOW);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}

else if((sensor2==LOW)&&(sensor3==LOW)&&(sensor4==HIGH))//1 LEFT


digitalWrite(lmotorf,HIGH);

digitalWrite(rmotorf,LOW);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}

else if((sensor2==LOW)&&(sensor3==HIGH)&&(sensor4==HIGH))//1 LEFT


digitalWrite(lmotorf,HIGH);

digitalWrite(rmotorf,LOW);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}


else if((sensor2==HIGH)&&(sensor3==LOW)&&(sensor4==LOW))//FOR RIGHT


digitalWrite(lmotorf,LOW);

digitalWrite(rmotorf,HIGH);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}


else if((sensor2==HIGH)&&(sensor3==HIGH)&&(sensor4==LOW))//FOR RIGHT


digitalWrite(lmotorf,LOW);

digitalWrite(rmotorf,HIGH);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}

else if((sensor1==HIGH)&&(sensor5==LOW)&&(sensor2==HIGH)&&(sensor3==HIGH)&&(sensor4==HIGH))//1 LEFT

digitalWrite(lmotorf,LOW);

digitalWrite(rmotorf,HIGH);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}

else if((sensor1==HIGH)&&(sensor5==LOW)&&(sensor2==HIGH)&&(sensor3==HIGH)&&(sensor4==LOW))//1 LEFT

digitalWrite(lmotorf,LOW);

digitalWrite(rmotorf,HIGH);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}


else if((sensor1==LOW)&&(sensor5==HIGH)&&(sensor2==LOW)&&(sensor3==HIGH)&&(sensor4==LOW))

digitalWrite(lmotorf,LOW);

digitalWrite(rmotorf,HIGH);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}

else if((sensor1==HIGH)&&(sensor5==LOW)&&(sensor2==HIGH)&&(sensor3==HIGH)&&(sensor4==HIGH))

digitalWrite(lmotorf,LOW);

digitalWrite(rmotorf,HIGH);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}


else if((sensor2==HIGH)&&(sensor3==HIGH)&&(sensor4==HIGH))//FOR RIGHT

digitalWrite(lmotorf,HIGH);

digitalWrite(rmotorf,HIGH);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}

else

{

digitalWrite(lmotorf,LOW);

digitalWrite(rmotorf,LOW);

digitalWrite(lmotorb,LOW);

digitalWrite(rmotorb,LOW);

}


}

15 DAYS

Write a review

Please login or register to review