NRP: We are still operating and serving the makers. We will process your order as usual. Stay safe, order online, build project at home!
📘Learn Digital Making weekly on Telegram. Join Channel Now📱
IR Line Tracking Module

IR Line Tracking Module

    • RM1.90
    • Cashback: 3%
    • CytronCash Balance: Login
    • Availability:

    Accessories you may need

    Enter desired quantity before clicking 'Add to Cart' button

    Male to Female Jumper Wire

    Male to Female Jumper Wire

    • 10 or more RM1.84
    • 50 or more RM1.60


    Female to Female Jumper Wire

    Female to Female Jumper Wire

    • 10 or more RM1.84
    • 50 or more RM1.60


    • Total accessories: RM0.0
    • Grand total: 1.9

    • Product Code: SN-IRLINE-MOD
    • Warranty Period: 12 months

    Note: From 21st April 2020 onwards, this module comes with a STRAIGHT (4-pin) header pin and NO jumper wires are included.

    Line following is an essential algorithm for many mobile robots, especially the AGV (Automated Guided Vehicle). It is also fundamental for many control algorithms.

    This is a line detection sensor module based on infrared (IR) reflection and it is super easy to use. The sensor has been mounted at the bottom of the module, perfect for mobile robot line detection. It comes with an onboard potentiometer to adjust the sensitivity. The output is digital signal so it is easy to interface with any microcontroller such as Arduino/Genuino UNO, Mega, Leornado, Zero, 101, even the Raspberry Pi or Raspberry Pi Zero. And of course, it is also compatible with all other controller boards including CIKU, CT-UNO, CT-ARM, etc. This sensor module is used in PikaBot too:

    Since it is using infrared reflection, it can be used as an obstacle detection sensor too, it is non-contact detection. As it is based on light reflection, the detection does vary with different surfaces. And any infrared source might also interfere with the detection. Yet, since the emitter and sensor are mounted at the bottom of the PCB, this module is designed for line detection :)

    It comes in a pair of Infrared emitter and receiver mounted at the bottom of the module, whenever there is an object blocking the infrared source or reflective surface such as white surface, it reflects the infrared, the receiver detects the reflected infrared, generate an electric signal. The signal further go through a comparator circuit onboard, depending on the threshold that is adjusted (through the potentiometer), it will output digital logic at output pin (DO) and an indicator LED will light up to indicate the detection. Turning the onboard potentiometer clockwise will increase the sensitivity and further increase the detection range. Besides the digital output signal, this sensor board also provides an analog output pin (AO). This module is compatible with 5V or 3.3V power input.

    Check the PikaBot in action performing line following with just two of these sensor modules:


    • Operating voltage: 3.3V or 5VDC
    • 4-pin interface which are: AO, DO, GND and VCC:
      • AO is an analog output pin, the analog voltage will be high when there is no obstacle or infrared reflection. The voltage will gradually decrease when the infrared receive it high.
      • DO is a digital output pin from the sensor module, please connect to any digital input on your microcontroller. Will output logic LOW when object is detection
      • GND is where you connect to your controller ground or 0V
      • VCC is the +ve supply, connect to either +3.3V or +5V
    • Two LED indicators:
      • Power indicator LED
      • Object detection indicator LED
    • Obstacle detection range: 5mm to 10mm from the sensor
    • Adjustable sensitivity with an onboard potentiometer, this translates to an adjustable detection range.
    • Compact makes it easy to assembly
    • Digital and analog output
    • Compatible with all types of microcontrollers
    • Dimension: 3.2cm x 1.4cm

    Packing List:

    • 1 x IR Line Tracking Module


    • PikaBot, a smart Maker UNO mobile robot that uses this sensor module as line following sensor. Comes with example code and also assembly video.


    May I know the tutorial links for this module ? ( Amira, 07/11/2020 )
    Hi, you may refer to this link for more tutorials ya. Thanks :)
    can this sensor be used for line follower on micro:bit robot ( Ruhazat Adnan, 29/10/2019 )
    Hi, can but just make sure the voltage is 3.3 V. However, we have not try on this yet. Thanks :)
    How does it works with Sumo Robots? ( Purushothman Munusamy , 08/10/2019 )
    Hi! You may email to for further assistance as this is for short enquiry only. Thanks :)

    Ask a question

    Note: HTML is not translated!
    • 4.9 out of 5
    Total Reviews (115)
    • 5
    • 4
    • 3
    • 2
    • 1

    Tags: Arduino, Line tracking, Line following, Sensor module, sensor, IR Sensor