Getting Started
Last revision 2026/01/18
This article offers a comprehensive guide on calibrating line-tracking sensors and importing Makecode libraries, providing step-by-step instructions to ensure successful installation and operation in micro:bit projects.
Product Installation

Line-tracking Sensor Calibration
The line-tracking sensor is factory calibrated, so there is no need for recalibration. Just like the reset button on digital products, the calibration button is not used in most cases. And improper calibration may cause the sensor error.
But you can try to calibrate it if the sensor can't recognize the black line as usual. The method is as follows:

1.Place the car in the black area of the map that comes with the product, and make sure the left and right sides of the sensor are in the area, as shown in the picture below:

2.Press the calibration button for about 1s, and the two blue LED line-tracking indicators will flash. The calibration is completed after flashing.

3.Check the calibration result: after the calibration is completed, put the sensor in the white area, and the two line-tracking indicators will be on; put it in the black area, and they”ll be off, which means the calibration is correct.

Import the Makecode Graphical Library
-
Click the link: makecode.microbit.org, enter the makecode graphical online programming platform. (Note: Loading will be slow in the first time, please wait patiently)
-
Search the makecode extension for "dfrobot" and select "maqueen".
-
Paste web address in makecode extension: https://github.com/DFRobot/pxt-maqueen
-
Import the library by following the steps.

Was this article helpful?
