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 SER0045
BOS0006 Steam Sensor BOS0035 Mainboard-3IO
MBT0039 BOS0040
MBT0039 Micro:bit BOS0040 Micro:bit BOSON Expansion Board

Software Preparation

Mind+ and MakeCode

Wiring Diagram

Connection 2-2

Result

Video Demo

BOS0006-Video 4

Additional Information

Flowchart

Flowchart 2

Was this article helpful?

TOP