Calibration of the line-tracking sensor

Last revision 2025/12/19

This article offers a comprehensive guide on calibrating the line-tracking sensor to improve its ability to accurately detect black lines. It walks through necessary preparations, calibration steps, and testing procedures to ensure optimal sensor performance, addressing potential identification challenges.

The line-tracking sensor has been calibrated before leaving the factory. Usually, you don't need to calibrate it. If it is found that the line-tracking sensor cannot correctly recognize the black lines, you can try to calibrate the line tracking.

Before calibration, the microbit mainboard and the ultrasonic sensor need to be removed.

1 Place Maqueen on the black calibration area.

Make sure that all three probes are in the black area.

2 Line Sensor Calibration

Press and hold the "Calc-Key" button for about 2 seconds. The line-tracking indicator light flashes twice. Then release the button and the calibration is completed.

3 Test the calibration result

Place the line-tracking sensor on the white background and the line-tracking indicator light goes off.

Place it on the black background and the line-tracking indicator light is on. The calibration is correct.

At this point, the calibration is completed.

Note: The line-tracking sensor uses the grayscale detection method to identify the black lines. Therefore, not all black lines can be effectively identified, and even calibration cannot ensure correct identification. For example, the map printed by the printer may not be identifiable.

Was this article helpful?

TOP