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.
- Black or no obstacle = Outputs HIGH
- White or obstacle = Outputs LOW
- Detection distance: 1.5cm (tested with white paper)
To run the example, use the following command:
cargo run -p line-tracking-sensor
- 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.