Stufin
Home Quick Cart Profile

3 Channel IR Infrared CTRT5000 Line Detection Module

Buy Now on Stufin

Operating Voltage

5V

Operating Current

20mA

Detection Range

1-10mm

Response Time

1ms

Digital Output

3 x Digital Output (High/Low)

Sensitivity Adjustment

Onboard Potentiometer

Dimensions

24mm x 22mm x 10mm

Weight

10g

Applications

The 3 Channel IR Infrared CTRT5000 Line Detection Module is suitable for a wide range of applications, including

Robotics

Autonomous vehicles

Automated guided vehicles (AGVs)

Line following robots

Edge detection in industrial automation

Surface inspection systems

Obstacle detection systems

Technical Support

For more information, please refer to the datasheet or contact our technical support team for assistance with integrating the 3 Channel IR Infrared CTRT5000 Line Detection Module into your project.

Pin Configuration

  • 3 Channel IR Infrared CTRT5000 Line Detection Module Documentation
  • Overview
  • The 3 Channel IR Infrared CTRT5000 Line Detection Module is a popular IoT component used for line detection, obstacle detection, and edge detection applications. This module is equipped with three infrared sensors, which provide accurate and reliable sensing capabilities.
  • Pin Description
  • The 3 Channel IR Infrared CTRT5000 Line Detection Module has a total of 7 pins, which are described below:
  • 1. VCC (Power Supply Pin)
  • Pin Number: 1
  • Description: This pin is used to supply power to the module. It should be connected to a voltage source between 3.3V to 5V.
  • Note: Make sure to use a voltage regulator or a voltage stabilizer to ensure a stable power supply.
  • 2. GND (Ground Pin)
  • Pin Number: 2
  • Description: This pin is used as a ground reference for the module. It should be connected to the ground of the system or the negative terminal of the power source.
  • 3. OUT1 (Channel 1 Output Pin)
  • Pin Number: 3
  • Description: This pin provides the output signal from Channel 1 of the infrared sensor. The output is a digital signal that indicates the presence or absence of an object.
  • 4. OUT2 (Channel 2 Output Pin)
  • Pin Number: 4
  • Description: This pin provides the output signal from Channel 2 of the infrared sensor. The output is a digital signal that indicates the presence or absence of an object.
  • 5. OUT3 (Channel 3 Output Pin)
  • Pin Number: 5
  • Description: This pin provides the output signal from Channel 3 of the infrared sensor. The output is a digital signal that indicates the presence or absence of an object.
  • 6. EN (Enable Pin)
  • Pin Number: 6
  • Description: This pin is used to enable or disable the module. When the EN pin is high (logic level 1), the module is enabled, and when it is low (logic level 0), the module is disabled.
  • 7. NC (No Connection Pin)
  • Pin Number: 7
  • Description: This pin is not connected and should be left unused.
  • Connection Structure
  • To connect the pins of the 3 Channel IR Infrared CTRT5000 Line Detection Module, follow this structure:
  • Power Supply Connection
  • Connect VCC (Pin 1) to a voltage source between 3.3V to 5V.
  • Connect GND (Pin 2) to the ground of the system or the negative terminal of the power source.
  • Output Connections
  • Connect OUT1 (Pin 3) to a digital input of a microcontroller or a logic circuit.
  • Connect OUT2 (Pin 4) to a digital input of a microcontroller or a logic circuit.
  • Connect OUT3 (Pin 5) to a digital input of a microcontroller or a logic circuit.
  • Enable Connection
  • Connect EN (Pin 6) to a digital output of a microcontroller or a logic circuit. Set the EN pin high to enable the module and low to disable it.
  • NC Pin
  • Leave Pin 7 (NC) unconnected.
  • By following this pin description and connection structure, you can successfully integrate the 3 Channel IR Infrared CTRT5000 Line Detection Module into your IoT project.

Code Examples

3 Channel IR Infrared CTRT5000 Line Detection Module Documentation
Overview
The 3 Channel IR Infrared CTRT5000 Line Detection Module is a sensor module designed for line detection applications in robotics, automation, and IoT projects. The module features three infrared sensors, which detect the reflection of infrared light from the surface, allowing it to detect lines, boundaries, or edges.
Pinout and Connections
The module has a 3-pin interface:
VCC (Power Supply, 5V)
 GND (Ground)
 OUT (Output, Digital)
Technical Specifications
Operating Voltage: 5V
 Operating Current: 10mA
 Detection Range: 1-10mm
 Response Time: 10ms
 Sensor Type: Infrared LED and Photodiode
Code Examples
### Example 1: Basic Line Detection using Arduino
In this example, we'll use the 3 Channel IR Infrared CTRT5000 Line Detection Module with an Arduino Board to detect a line and trigger an LED accordingly.
Hardware Requirements:
Arduino Board (e.g., Arduino Uno)
 3 Channel IR Infrared CTRT5000 Line Detection Module
 LED
 Jumper Wires
 Breadboard
Code:
```c++
const int ledPin = 13;  // Choose a digital pin for the LED
const int irPin = 2;   // Choose a digital pin for the IR sensor output
void setup() {
  pinMode(ledPin, OUTPUT);
  pinMode(irPin, INPUT);
}
void loop() {
  int irState = digitalRead(irPin);
  if (irState == HIGH) {
    digitalWrite(ledPin, HIGH);  // Turn on the LED when the line is detected
  } else {
    digitalWrite(ledPin, LOW);  // Turn off the LED when no line is detected
  }
  delay(50);  // Debounce time
}
```
### Example 2: Line Following Robot using Raspberry Pi and Python
In this example, we'll use the 3 Channel IR Infrared CTRT5000 Line Detection Module with a Raspberry Pi to create a line following robot.
Hardware Requirements:
Raspberry Pi
 3 Channel IR Infrared CTRT5000 Line Detection Module
 Robot chassis with motors
 Jumper Wires
 Breadboard
Code:
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO pins
GPIO.setmode(GPIO.BCM)
ir_pin = 17  # Choose a GPIO pin for the IR sensor output
motor_left_forward = 23
motor_left_backward = 24
motor_right_forward = 25
motor_right_backward = 26
# Set up motor control pins as outputs
GPIO.setup(motor_left_forward, GPIO.OUT)
GPIO.setup(motor_left_backward, GPIO.OUT)
GPIO.setup(motor_right_forward, GPIO.OUT)
GPIO.setup(motor_right_backward, GPIO.OUT)
while True:
    ir_state = GPIO.input(ir_pin)
    if ir_state == GPIO.HIGH:
        # Line detected, move forward
        GPIO.output(motor_left_forward, GPIO.HIGH)
        GPIO.output(motor_right_forward, GPIO.HIGH)
        time.sleep(0.1)
    else:
        # No line detected, turn
        GPIO.output(motor_left_backward, GPIO.HIGH)
        GPIO.output(motor_right_forward, GPIO.HIGH)
        time.sleep(0.1)
    GPIO.output(motor_left_forward, GPIO.LOW)
    GPIO.output(motor_left_backward, GPIO.LOW)
    GPIO.output(motor_right_forward, GPIO.LOW)
    GPIO.output(motor_right_backward, GPIO.LOW)
    time.sleep(0.1)
```
These examples demonstrate the basic usage of the 3 Channel IR Infrared CTRT5000 Line Detection Module in different contexts. You can modify and extend these examples to suit your specific project requirements.