Example Code for micro:bit-Sound-controlled
Last revision 2026/01/14
This article provides step-by-step guidance on using micro:bit V2 to control a Maqueen Plus robot car using sound. It includes hardware preparation, software setup with MakeCode, and a sample program link. The project enables users to start and stop the car by clapping, with no additional wiring required.
Hardware Preparation
- Maqueen Plus V2
- micro:bit V2
Software Preparation
Wiring Diagram
No additional wiring needed beyond the Quick Start Guide.
Other Preparation Work
- Complete the Quick Start Guide steps.
- Ensure the Maqueen Plus V2 is powered on.
Sample Code
Program Link: https://makecode.microbit.org/_hcsETx7EyV5C

Result
Clap once to start the car with lights on; clap again to stop with lights off.
Additional Information
Only supports micro:bit V2.0.
Was this article helpful?
