Tags: Line Follower, 5 channels, Infrared, Tracking, Detection, Sensor, robotics, Obstacle Avoidance, TCRT5000, ,

Line Follower 5 Channels Infrared Tracking Detection Sensor module TCRT5000 BFD-1000 Blue

  • 25.00 AED
    • Ex Tax:25.00 AED
    • Product Code: BFD-1000 Line Follower
    • Availability: In Stock
    This module is specialized for Arduino mobile robots that run through a black and white line road track through its 5-channels reflective optical sensors mounted inline (TCRT5000 ), or in simple words a module for line following robot. It uses with 5V power source a hex inverter ..

    This module is specialized for Arduino mobile robots that run through a black and white line road track through its 5-channels reflective optical sensors mounted inline (TCRT5000 ), or in simple words a module for line following robot. It uses with 5V power source a hex inverter that can provide a clean digital output when there is a black line detected.


    Features

    • 5-channels reflective optical sensors mounted inline (TCRT5000 )
    • On-board hex inverter provides a clean digital output
    • Sensitive to dark color and infrared
    • Operating Voltage : 5V (recommended)
    • Comes with M3 flexible mounting slot

    and for more information about this sensor, we are going to make a tutorial on how the 5 Ways TCRT5000 Tracking Sensor Module works with Arduino coding.


    Thus, the materials needed to be prepared is listed as follows:

    • Arduino Uno
    • a Female to Male jumper wire
    • USB Cable Type A to B



    Hardware Installation


    Hardware Installation


    The diagram above shows the connection between 5 channelsTCRT5000 Tracking Sensor Module and Arduino Uno.


    The detailed connection are:

    • OUT5 > D12
    • OUT4 > D11
    • OUT3 > D10
    • OUT4 > D9
    • OUT5 > D8
    • 5V > 5V
    • GND > GND


    After completing the connection, simply connect Arduino Uno to the power supply/PC via USB Cable Type A to B.


    Upload the source code into your Arduino Uno


    const int pinOUT1 = 8;
    const int pinOUT2 = 9;
    const int pinOUT3 = 10;
    const int pinOUT4 = 11;
    const int pinOUT5 = 12;
    int IRvalue1 = 0;
    int IRvalue2 = 0;
    int IRvalue3 = 0;
    int IRvalue4 = 0;
    int IRvalue5 = 0;
    void setup()
    {
     Serial.begin(9600);
     pinMode(pinOUT1,INPUT);
     pinMode(pinOUT2,INPUT);
     pinMode(pinOUT3,INPUT);
     pinMode(pinOUT4,INPUT);
     pinMode(pinOUT5,INPUT);
    }
    void loop()
    {
     Serial.print("Digital Reading=");
     Serial.print(IRvalue1);
     Serial.print(IRvalue2);
     Serial.print(IRvalue3);
     Serial.print(IRvalue4);
     Serial.println(IRvalue5);
     delay(1000);
     IRvalue1 = digitalRead(pinOUT1);
     IRvalue2 = digitalRead(pinOUT2);
     IRvalue3 = digitalRead(pinOUT3);
     IRvalue4 = digitalRead(pinOUT4);
     IRvalue5 = digitalRead(pinOUT5);
    }
    




    Results


    Results


    Based on the source code, the pins of OUT1, OUT2, OUT3, OUT4, and OUT5 are defined and each of them responds with IRvalue respectively. The serial monitor is set as 9600 baud and the results will be printed on the serial monitor.


    How does it work?

    Simply use your finger to approach the IR sensor. The IR sensor will detect your finger and it eventually lights up the LED on the module. On the serial monitor, when the IR sensor does not detect anything, the number will be shown as 0 and when it does detect, the number is 1.

    The serial monitor will show "DigitalReading=00000" and those positions for 0 indicates which pin it is detected. For example, if the IR sensor 2 is detected, the serial monitor will show "DigitalReading=01000".



    There are no reviews for this product.

    Write a review

    Please login or register to review