Calibrating the sensors

Now, if your sensor has an adjustment pot, you may need to calibrate the sensors a little. As mentioned, these sensors turn the amount of reflected light into a value and they then have a threshold that will output true or false for when the value crosses a threshold. The adjustment sets where this threshold is. The next photo shows how:

Calibrating the sensors

This means adjusting them to around the right value. On each of the sensors, there is an adjustable element—a trimpot, which you can put a screwdriver into. The light will be on; this means that the sensor is detecting white (ambient) light, "no line," and will ...

Get Learn Robotics Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.