Example Code for Starting Maqueen Plus V3
Last revision 2026/01/20
This article offers practical example code for programming the Maqueen Plus V3 robot to move forward at a specified speed and control its RGB vehicle lights using the MakeCode Editor, providing insights into hardware and software setup for optimal performance.
Introduction
In this example, the Maqueen Plus V3 moves forward at a speed of 100. Additionally, the vehicle lights flash at a frequency of one second. The motor driving and vehicle light control blocks are used.
- The valid speed range is 0–255 (corresponding to PWM pulse width), not 0–100.
- If the speed is set below 30, the car may not move due to insufficient driving force from the PWM-driven motors. It is recommended to use speeds above 30.
- The vehicle lights are RGB LEDs. In this program, they are controlled in on/off mode, displaying only red.
Hardware Preparation
- Maqueen Plus V3 robot
- micro:bit (V1 or V2)
- USB cable for programming
Software Preparation
- MakeCode Editor for micro:bit
- Maqueen Plus V3 extension installed in MakeCode
Wiring Diagram
No additional wiring is required. The Maqueen Plus V3 integrates all components onboard.
Sample Code

Key Blocks Used:
Maqueen Plus V3.motor(MotorChannel.All, Direction.Forward, 100)Maqueen Plus V3.vehicleLight(VehicleLight.All, LightSwitch.On)pause(1000)andLightSwitch.Offfor flashing effect
Result
- The robot moves forward steadily at speed 100.
- The front vehicle lights blink red once per second.
Was this article helpful?
