

The 6 IR Array (Manufacturer: RoboKart, Part ID: TCRT5000) is a compact module consisting of six infrared sensors arranged in a linear configuration. Each sensor in the array uses the TCRT5000 IR sensor, which combines an infrared emitter and a phototransistor to detect reflected IR light. This module is commonly used for applications such as line-following robots, obstacle detection, edge detection, and object tracking.








The following table outlines the key technical details of the 6 IR Array:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V to 5V |
| Operating Current | ~60mA (varies with usage) |
| Detection Range | 2mm to 15mm (adjustable) |
| Output Type | Digital (High/Low) |
| Sensor Type | TCRT5000 (IR emitter + receiver) |
| Dimensions | ~70mm x 15mm x 10mm |
| Weight | ~15g |
The 6 IR Array has a set of pins for power, ground, and individual sensor outputs. The pin configuration is as follows:
| Pin Name | Description |
|---|---|
| VCC | Power supply input (3.3V to 5V). |
| GND | Ground connection. |
| OUT1 | Digital output from Sensor 1 (High = no object detected, Low = object detected). |
| OUT2 | Digital output from Sensor 2. |
| OUT3 | Digital output from Sensor 3. |
| OUT4 | Digital output from Sensor 4. |
| OUT5 | Digital output from Sensor 5. |
| OUT6 | Digital output from Sensor 6. |
VCC pin to a 3.3V or 5V power source and the GND pin to ground.OUT1 to OUT6 pins to the digital input pins of a microcontroller (e.g., Arduino UNO).Below is an example code snippet to read data from the 6 IR Array using an Arduino UNO:
// Define the pins connected to the 6 IR Array outputs
#define SENSOR1_PIN 2
#define SENSOR2_PIN 3
#define SENSOR3_PIN 4
#define SENSOR4_PIN 5
#define SENSOR5_PIN 6
#define SENSOR6_PIN 7
void setup() {
// Initialize serial communication for debugging
Serial.begin(9600);
// Set sensor pins as inputs
pinMode(SENSOR1_PIN, INPUT);
pinMode(SENSOR2_PIN, INPUT);
pinMode(SENSOR3_PIN, INPUT);
pinMode(SENSOR4_PIN, INPUT);
pinMode(SENSOR5_PIN, INPUT);
pinMode(SENSOR6_PIN, INPUT);
}
void loop() {
// Read the state of each sensor
int sensor1 = digitalRead(SENSOR1_PIN);
int sensor2 = digitalRead(SENSOR2_PIN);
int sensor3 = digitalRead(SENSOR3_PIN);
int sensor4 = digitalRead(SENSOR4_PIN);
int sensor5 = digitalRead(SENSOR5_PIN);
int sensor6 = digitalRead(SENSOR6_PIN);
// Print sensor states to the Serial Monitor
Serial.print("Sensor 1: "); Serial.print(sensor1);
Serial.print(" | Sensor 2: "); Serial.print(sensor2);
Serial.print(" | Sensor 3: "); Serial.print(sensor3);
Serial.print(" | Sensor 4: "); Serial.print(sensor4);
Serial.print(" | Sensor 5: "); Serial.print(sensor5);
Serial.print(" | Sensor 6: "); Serial.println(sensor6);
// Add a small delay for readability
delay(100);
}
digitalRead() function returns HIGH when no object is detected and LOW when an object is detected.No Output from Sensors:
Erratic Sensor Behavior:
Inconsistent Detection:
Q1: Can the 6 IR Array detect transparent objects?
A1: No, the module is not designed to detect transparent objects as they do not reflect sufficient IR light.
Q2: What is the maximum detection range?
A2: The detection range is adjustable between 2mm and 15mm, depending on the surface reflectivity and sensitivity settings.
Q3: Can I use this module with a 3.3V microcontroller?
A3: Yes, the module is compatible with both 3.3V and 5V systems.
Q4: How do I know if a sensor is working?
A4: Each sensor has an onboard LED that lights up when it detects an object. You can also verify functionality by reading the digital output.
By following this documentation, you can effectively integrate and troubleshoot the 6 IR Array in your projects.