6. case 04 Smart Wardrobe
6.1. Goal
- Make an auto window.
6.2. Materials
- 1 x Smart home Kit
- 1 x corrugated board
6.3. Background
What is an auto window ?
- Noise pollution is a common problem in our life. When the value of noise higher than 70dB, it is will impact our health. We will design a smart window and door using micro:bit.
6.4. Practical operation
Materials: corrugated board and cutter
Build as below picture:
Front side:
Back side:
Paste devices as below piture:
6.7. Programming
Step 1
Go to MakeCode page, click Advanced in the code block and click on Extensions.
We need to add a new codebase for programming of smart home. Finding “Add Package” in the bottom of code block and click it. Then a message box will show up, search “smart home”, and download this new codebase.
Note:If there is a hint says some codebase will be deleted because of incompatibility. Don’t worry. You could go ahead as the hint or build a new item in item menu bar.
Programming
Make code:https://makecode.microbit.org/_Trh6x75hYcAT
You also could directly download program visit website as below:
6.8. Result
micro:bit driving servo open the window when value of noise > 70dB.
Front side:
Back side:
6.9. Think
How to know wether open the window on room temperature.