QB060 Trace Sensor

1.Product Introduction

../../_images/Trace-1.jpg

Trace sensor is a sensor system specially designed for intelligent vehicles, which can help intelligent vehicles to accurately trace and navigate routes. The system consists of three infrared sensors, which can detect the black line on the ground by transmitting and receiving infrared signals, and make corresponding control actions according to the detection results.

Specifically, each infrared sensor has a pair of infrared transmitter and receiver tubes, and the transmitter tube will emit infrared rays at a specific frequency. Objects with different colors have different absorption capabilities for infrared light, so the intensity of the reflected infrared signal received by the receiver tube will also be different. We can judge what color line the intelligent vehicle is on according to the strength of the received reflected infrared signal. In this way, the system can determine whether the intelligent vehicle is following the line, so as to achieve accurate line tracking and navigation functions.

Application references: robotics competitions, intelligent vehicle projects, industrial automation, and other fields.

2.Parameter Specification

Parameter Value/Representation
Operating voltage 3.3~5V
Operating temperature -10°C~+50°C
Output signal Analog signal
Size 3.31cm*3.11cm
../../_images/Trace-2.jpg

3.Wiring Diagram

../../_images/Trace-3.png
Trace Sensor UNO
VCC 5V
GND GND
L Analog Pin A0
M Analog Pin A1
R Analog Pin A2

4.Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#define Left_sensor   A0
#define Center_sensor  A1
#define Right_sensor   A2
void setup() {
  Serial.begin(9600);
  pinMode(Left_sensor, INPUT);
  pinMode(Center_sensor, INPUT);
  pinMode(Right_sensor, INPUT);
}
void loop() {
  Serial.print("Left_sensor: ");
  Serial.println(analogRead(Left_sensor));
  Serial.print("Center_sensor: ");
  Serial.println(analogRead(Center_sensor));
  Serial.print("Right_sensor: ");
  Serial.println(analogRead(Right_sensor));
  Serial.println("————————————————————————————————");
  delay(1000);
}

5.Test Result

After uploading the code to the controller board, open the serial port monitor of the Arduino IDE, set the baud rate to 9600, and switch to the scroll mode. The following data can be seen when placing the three infrared sensor ports of the trace sensor on the black line or on the white background.

../../_images/Trace-4.png
../../_images/Trace-5.png

6.Related Resources

7.Get One Now

B2B Business: info@acebott.com

Individual buyer: shop on aliexpress