The XLINE 16 Line Follower is a sensor module designed by ROBOLİG(KOKBORU) for detecting and following lines on a surface. This component is commonly used in automated guided vehicles (AGVs) and robots for navigation purposes. By utilizing an array of sensors, the XLINE 16 can accurately detect the presence and position of lines, enabling precise control and movement along predefined paths.
Specification | Value |
---|---|
Manufacturer | ROBOLİG(KOKBORU) |
Part ID | kokboru0042 Model |
Operating Voltage | 3.3V - 5V |
Operating Current | 100mA (max) |
Number of Sensors | 16 |
Output Type | Digital |
Communication | I2C |
Dimensions | 100mm x 20mm x 10mm |
Weight | 15g |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V - 5V) |
2 | GND | Ground |
3 | SDA | I2C Data Line |
4 | SCL | I2C Clock Line |
5-20 | D0-D15 | Digital outputs from each sensor (D0 for sensor 0, D1 for sensor 1, etc.) |
#include <Wire.h>
#define SENSOR_ADDRESS 0x3C // I2C address of the XLINE 16 Line Follower
void setup() {
Serial.begin(9600); // Initialize serial communication
Wire.begin(); // Initialize I2C communication
}
void loop() {
Wire.beginTransmission(SENSOR_ADDRESS);
Wire.write(0x00); // Request data from the sensor
Wire.endTransmission();
Wire.requestFrom(SENSOR_ADDRESS, 16); // Request 16 bytes of data
while (Wire.available()) {
for (int i = 0; i < 16; i++) {
int sensorValue = Wire.read(); // Read each sensor value
Serial.print("Sensor ");
Serial.print(i);
Serial.print(": ");
Serial.println(sensorValue);
}
}
delay(100); // Delay for readability
}
By following this documentation, you should be able to effectively integrate and utilize the XLINE 16 Line Follower in your robotics projects. If you encounter any issues or have further questions, please refer to the troubleshooting section or contact the manufacturer for support.