Code Example for micro:bit-Automatic Windows Closer
This article provides a detailed guide on setting up an automatic windows closer using micro:bit. It includes hardware and software requirements, wiring diagrams, and example codes for both programming and non-programming projects, making it suitable for DIY enthusiasts and tech-savvy users.
Hardware Preparation
![]() |
![]() |
|---|---|
| BOS0006 Steam Sensor | BOS0035 Mainboard-3IO |
![]() |
![]() |
| MBT0039 Micro:bit | BOS0040 Micro:bit BOSON Expansion Board |
Software Preparation
Mind+ and MakeCode
Wiring Diagram

Result
Video Demo

Additional Information
Flowchart

Was this article helpful?




