Effect Demonstration Example for micro:bit
Adjust the knob module; the blades start rotating, simulating the wind power generation process.The Microbit LED matrix lights up row by row, simulating electricity storage.When the entire LED matrix is lit, it indicates the storage device is full.Adjust the knob module in the opposite direction; the blades stop rotating, simulating the electricity consumption process.The Microbit LED matrix turns off row by row as the stored energy is released.After the stored energy is depleted, turn the knob again; the blades rotate, starting a new power generation cycle.
Demonstration Video
Hardware Diagram
| SENSOR | PIN |
|---|---|
| Rotation Sensor Interface | P0 |
| 360° Servo (Geekservo) | M4 |
Example Code
Mind+ Upload Mode User Library Link for Building Block Expansion Board


Download the Example Code
Wind Energy Kit for microbit.mpcode
Was this article helpful?

