Example Code for micro:bit-360° Servo Rotation
Last revision 2026/01/04
This article offers example code for micro:bit to achieve 360° servo rotation, detailing hardware setup, software library links, and sample codes for MakeCode and Mind+, along with visual guides and results.
Hardware Preparation
Connect the 360° servo to pin S2.
Software Preparation
-
MakeCode User Library Link: click here
-
Mind+ Upload Mode User Library Link: click here
-
Mind+ Python Mode User Library Link: click here
Wiring Diagram

Sample Code
| MakeCode Program ScreenshotProgram Link:click here | Mind+ Program Screenshot |
![]() |
![]() |
Result

Was this article helpful?


