For Maqueen Lite V5 line following, add the Maqueen extension in MakeCode. DFRobot setup With a line-following program ready, transfer it to the micro:bit over USB and try it on the supplied map. MakeCode USB transfer · DFRobot Quick Start
What you need
- The Maqueen Lite V5 robot, model MBT0046, and its supplied line-tracking map. DFRobot kit and shipping list
- A micro:bit mainboard and a set of batteries for the robot. DFRobot Quick Start
- A computer and a USB cable to transfer the program to the micro:bit. MakeCode USB transfer
Add the Maqueen extension
- In MakeCode for micro:bit, select New Project, give the project a name, and select Create. DFRobot setup
- In the Toolbox, select Extensions. MakeCode Extensions
- Search for
dfrobotand select Maqueen. DFRobot setup - Look for Maqueen v5 in the Toolbox after the extension loads. The package is listed as
dfrobot/pxt-maqueen. MakeCode Extensions · V5 block definitions · MakeCode package listing
Maqueen V5 blocks for line following
| Maqueen v5 block | What it does |
|---|---|
| initialize via I2C until success | Initializes the robot over I2C. |
| Line patrolling set to ON | Enables line following. |
Transfer the program and try the map
- Connect the micro:bit to your computer with the USB cable. MakeCode USB transfer
- In a browser using the file-download flow, such as Safari or Firefox, select Download to save the
.hexfile. Micro:bit transfer guide If Download opens WebUSB pairing in Chrome or Edge, use MakeCode’s Save button to get a local copy. Micro:bit transfer guide - Drag the downloaded file onto the MICROBIT drive. The drive disconnects and reconnects as the micro:bit resets. Micro:bit transfer guide
- Seat the programmed micro:bit in the Maqueen Lite V5 using the orientation in DFRobot’s diagram. Install the batteries with the positive and negative ends oriented correctly. DFRobot setup and orientation diagram
- Move the power switch to ON and check that the power indicator lights up. Set the car on the supplied line-tracing map. DFRobot setup · DFRobot Quick Start
The car should now follow the black line on the map. DFRobot Quick Start
Recalibrate if the sensors miss the black line
The line-tracking sensors are calibrated at the factory. Try recalibrating if they fail to detect the black line. DFRobot calibration guide
- Remove the micro:bit mainboard and the ultrasonic sensor. DFRobot calibration guide
- Set the robot on the black calibration area with all three probes over black. DFRobot calibration guide
- Hold Calc-Key for about two seconds. Release it after the line-tracking indicator flashes twice. DFRobot calibration guide
Move the sensors between white and black and compare the line-tracking indicator with the states below. DFRobot calibration guide
| Surface under the sensors | Line-tracking indicator |
|---|---|
| White background | Off |
| Black background | On |
Some printed maps can remain unreadable to the sensors after calibration. DFRobot calibration guide
Evidence and limits
This guide covers the built-in V5 line-following mode and desktop USB transfer. It follows DFRobot’s V5 instructions and Maqueen extension v1.7.17, plus MakeCode and Micro:bit Educational Foundation USB documentation, checked on November 29, 2026. V5 Quick Start · MakeCode package listing · MakeCode USB transfer · Micro:bit transfer guide
No hands-on testing was performed for this guide.