Skip to content

Latest commit

 

History

History

line-tracking-sensor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

IR Line Tracking Sensor (TCRT5000L)

demo.mp4

An IR line tracking sensor is a type of sensor that uses infrared (IR) light to detect the presence of a bright surface. It does this by emitting IR light and detecting the amount of light that is reflected back to the sensor.

Features

  • Black or no obstacle = Outputs HIGH
  • White or obstacle = Outputs LOW
  • Detection distance: 1.5cm (tested with white paper)

How to Run

To run the example, use the following command:

cargo run -p line-tracking-sensor

Notes

  • There are many different types of IR line tracking sensors. This example uses the single bit type, which only has one output pin.
  • For better accuracy and precision, the sensor should be calibrated to the surface it is detecting. This can be done by adjusting the potentiometer on the sensor.