Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use 6 IR Array: Examples, Pinouts, and Specs

Image of 6 IR ArrayDesign with 6 IR Array in Cirkit Designer

Introduction

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.

Explore Projects Built with 6 IR Array

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Arduino-Controlled Line Following Robot with Dual DC Motors and IR Array: A project utilizing 6 IR Array in a practical application
Arduino-Controlled Line Following Robot with Dual DC Motors and IR Array

This circuit features an Arduino UNO microcontroller interfaced with a 5-channel IR array for sensor input, and two DC Mini Metal Gear Motors for actuation, controlled via an L298N DC motor driver. The motors are powered by a series connection of two 3.7V batteries, with a rocker switch to control power delivery. The Arduino is programmed to process the IR array signals and control the motor driver, which in turn drives the motors based on the sensor inputs.

Open Project in Cirkit Designer
Image of ESP8266-Based IR Sensor Array with Analog Multiplexing: A project utilizing 6 IR Array in a practical application
ESP8266-Based IR Sensor Array with Analog Multiplexing

This circuit features two Sharp IR Sensors connected to a 16-channel analog multiplexer, which allows for multiple analog inputs to be read sequentially by a single analog pin on the WeMOS ESP8266 microcontroller. The ESP8266 controls the multiplexer selection via its digital pins (D0-D3) and reads the sensor outputs through its analog pin (A0). The 2x 18650 battery pack provides power to the entire circuit, with all components sharing a common ground and voltage supply.

Open Project in Cirkit Designer

Common Applications

Technical Specifications

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

Pin Configuration and Descriptions

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.

Usage Instructions

How to Use the 6 IR Array in a Circuit

  1. Power the Module: Connect the VCC pin to a 3.3V or 5V power source and the GND pin to ground.
  2. Connect Outputs: Connect the OUT1 to OUT6 pins to the digital input pins of a microcontroller (e.g., Arduino UNO).
  3. Adjust Sensitivity: Use the onboard potentiometers to adjust the sensitivity of each sensor. Turn clockwise to increase sensitivity and counterclockwise to decrease it.
  4. Place the Array: Position the array close to the surface or object to be detected (2mm to 15mm range).

Important Considerations

Example Code for 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);
}

Notes:

Troubleshooting and FAQs

Common Issues

  1. No Output from Sensors:

    • Cause: Incorrect wiring or insufficient power supply.
    • Solution: Double-check the connections and ensure the power supply is stable and within the specified range.
  2. Erratic Sensor Behavior:

    • Cause: Ambient light interference or unstable power.
    • Solution: Use the module in a controlled lighting environment and ensure a stable power source.
  3. Inconsistent Detection:

    • Cause: Improper sensitivity settings or surface reflectivity issues.
    • Solution: Adjust the potentiometers to fine-tune sensitivity and test on different surfaces.

FAQs

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.