Example Code for micro:bit-Light Emitting House
This blog post guides readers through creating a light-emitting house using micro:bit, offering detailed hardware and software preparation, wiring diagrams, and sample programs for both programming and non-programming projects, making it a valuable resource for STEM enthusiasts and educators.
Hardware Preparation
![]() |
![]() |
![]() |
|---|---|---|
| BOS0013 Motion Sensor | BOS0017 LED Module | BOS0035 Mainboard-3IO |
![]() |
![]() |
|
| MBT0039 micro:bit | BOS0040 micro:bit BOSON expansion board |
Wiring Diagram
Non-programming Project
Connection Diagram:

Programming Project
Connection Diagram:

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

Was this article helpful?







