Example Code for micro:bit-Remote Wireless Handle

Last revision 2025/12/31

This guide offers a step-by-step tutorial on using two micro:bit boards to create a remote wireless handle for a Maqueen car, utilizing the Makecode platform, Mind+ software, and the Math & Automatic expansion board. It includes hardware and software preparation, installation of necessary libraries, wiring instructions, and sample code to program the car's movements using a touch keypad.

Hardware Preparation

  • Math & Automatic expansion board for micro:bit, Quantity: 1
  • micro:bit, Quantity: 2
  • Maqueen car, Quantity: 1

Software Preparation

Makecode graphical programming, Mind+ platform.
Makecode Library Address.
About how to install a software library?

Wiring Diagram

One micro:bit for touch keypad, one for Maqueen car.

Other Preparation Work

Install the Makecode library from https://github.com/DFRobot/pxt-Math-Automatic.
About how to install a software library?

Sample Code

Remote Wireless Handle
Remote Wireless Handle Example Code Download

Result

Two micro:bit boards will be used in this tutorial. One for touch keypad, one for Maqueen car. Programme the key 2, 4, 6, 8 to control the car to move forward, backward, left, right respectively.

Was this article helpful?

TOP