INFOSTATION CORP
  • Home
  • Gallery
  • Contact
  • About
  • Digital Goods
  • Home
  • Gallery
  • Contact
  • About
  • Digital Goods
Search

Follow the line using the Line Tracking Sensor Module

2/7/2019

Comments

 
The line tracking sensor module (or sometimes called the hunt sensor module or line tracing sensor module ) detects if a light reflecting or absorbing area is in front of it. The sensor has a pair of infrared transmitter and receiver. The transmitter emits a certain frequency of infrared ray. If the light is reflecting, the module generates a LOW value (from 0 to 499 values). If the light is not reflecting back to the IR Led receiver, the module generates a HIGH value (from 500 up to 1023 values). The usual color to be used here is black and white color. Use black color (absorbing) for producing HIGH value by  the line tracking sensor module, and use white color (reflecting) for producing LOW value by the module. The module has the potentiometer where it can be adjusted to change the distance settings.
Picture
Connection
The GND pin of the module should be connected to the GND pin of Arduino, the VCC should be connected to 5V of Arduino, and the OUT pin (or signal pin)  should be connected to analog pin or digital pin.
Code Example
Let us see the code example below using the digital pin in Arduino. In the code, if the light of the line tracking sensor did not return, or the light has been absorbed by the object in front of it,  the module will produce a HIGH value. If the light from the sensor reflects because of the bright color of the object in front of it, it will produce a LOW value.
Line Tracking Sensor code example using digital pin

    
Code Example
Let us see the code example below using the analog pin in Arduino. In the code, if the light of the line tracking sensor did not return, or the light has been absorbed by the object in front of it,  using the analogRead() function, the module will produce a big value ranging from 500 up to 1023. If the light from the sensor reflects because of the bright color of the object in front of it, it will produce a small value ranging from 0 to 499.
Picture
Line Tracking Sensor code example - Analog pin

    
The line tracking sensor is typically used for movable robots or cars for tracking a specific line drawn on the floor using the black color.
Comments

    Noel Anonas

    Author, coder, Innovator
    email:
    ​noelqanonas@gmail.com
    My Resume
    ​Couse Outline for Java

    Picture

    Archives

    July 2019
    June 2019
    May 2019
    June 2017

    Categories

    All

    RSS Feed

    View my profile on LinkedIn
  • Home
  • Gallery
  • Contact
  • About
  • Digital Goods