The QTR 8A, manufactured by ROBOLİG(KOKBORU) with part ID kokboru0042 Model, is an array of eight infrared emitter and detector pairs. This component is primarily used for line following and edge detection in robotics. It provides an analog voltage output corresponding to the reflectance of the surface, making it an essential component for autonomous robots and other applications requiring surface reflectance detection.
Parameter | Value |
---|---|
Operating Voltage | 3.3V to 5V |
Supply Current | 100 mA (typical) |
Output Type | Analog |
Sensor Count | 8 |
Dimensions | 70 mm x 12 mm x 3 mm |
Weight | 3 grams |
Operating Temperature | -10°C to 50°C |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V to 5V) |
2 | GND | Ground |
3 | OUT0 | Analog output from sensor 0 |
4 | OUT1 | Analog output from sensor 1 |
5 | OUT2 | Analog output from sensor 2 |
6 | OUT3 | Analog output from sensor 3 |
7 | OUT4 | Analog output from sensor 4 |
8 | OUT5 | Analog output from sensor 5 |
9 | OUT6 | Analog output from sensor 6 |
10 | OUT7 | Analog output from sensor 7 |
11 | LEDON | Control pin for turning the IR LEDs on or off |
// Sample code to read QTR 8A sensor values with Arduino UNO
// Define the analog input pins for the sensors
const int sensorPins[8] = {A0, A1, A2, A3, A4, A5, A6, A7};
// Define the digital output pin for controlling the IR LEDs
const int ledControlPin = 2;
void setup() {
// Initialize serial communication for debugging
Serial.begin(9600);
// Set the LED control pin as an output
pinMode(ledControlPin, OUTPUT);
// Turn on the IR LEDs
digitalWrite(ledControlPin, HIGH);
}
void loop() {
// Array to store sensor values
int sensorValues[8];
// Read the sensor values
for (int i = 0; i < 8; i++) {
sensorValues[i] = analogRead(sensorPins[i]);
}
// Print the sensor values to the serial monitor
for (int i = 0; i < 8; i++) {
Serial.print("Sensor ");
Serial.print(i);
Serial.print(": ");
Serial.print(sensorValues[i]);
Serial.print("\t");
}
Serial.println();
// Add a small delay before the next reading
delay(100);
}
No Output from Sensors:
Inconsistent Readings:
IR LEDs Not Turning On:
By following this documentation, users can effectively integrate the QTR 8A sensor array into their projects, ensuring accurate line following and edge detection capabilities.