Example Code for micro:bit-Start the Motor
This article offers a detailed guide on starting a motor using micro:bit, covering hardware requirements, software tools, wiring diagrams, and providing sample code for both Mind+ and MakeCode graphical programming. It also includes video demonstrations for non-programming and programming projects, alongside a flowchart to visualize program flow.
Hardware Preparation
![]() |
![]() |
![]() |
|---|---|---|
| BOS0003 Self Locking Switch | BOS0024 Servo Controller Module | FIT0528 Micro Metal Gear Motor |
![]() |
![]() |
![]() |
| MBT0039 micro:bit | BOS0040 micro:bit BOSON Expansion Board | BOS0035 Mainboard-3IO |
Software Preparation
Mind+ and MakeCode graphical programming.
Wiring Diagram
Non-programming Project
Connection Diagram:

Programming Project
Connection Diagram:

Other Preparation Work
micro:bit and its expansion board will be used in programming projects.
Result
Video Demo
| Non-programming | Programming |
|---|---|
![]() |
![]() |
Additional Information
Program Flowchart:

Was this article helpful?








