Example Code for micro:bit-Remote Controller
Last revision 2026/01/14
The article offers example codes for creating a remote controller using micro:bit with Maqueen Plus V2 and Gamepad Expansion, detailing hardware and software setup, wiring, and sample code links for basic and speed control programs.
Hardware Preparation
- Maqueen Plus V2
- micro:bit V1/V2 (2 units: one for car, one for remote)
- Micro:bit Gamepad Expansion Board
Software Preparation
Wiring Diagram
Install one micro:bit on the car and one on the remote control handle.
Other Preparation Work
- Install the micro:bit on the remote control handle.
- Complete the Quick Start Guide steps for the car.
Sample Code
Basic Remote Program Link: https://makecode.microbit.org/_Ew9VCh414YW3

Basic Car Program Link: https://makecode.microbit.org/_bTPhA5JDs6mA

Speed Control Remote Program Link: https://makecode.microbit.org/_99UJEH9hahwF

Speed Control Car Program Link: https://makecode.microbit.org/_evzJtbUqoLFt

Result
Basic: Use the remote joystick to control direction.
Speed Control: Joystick angle controls both direction and speed.
Additional Information
- Micro:bit Gamepad Wiki

- Ensure both micro:bits are powered on and connected wirelessly.
Was this article helpful?
