Micro:bit Smart Arier Projects
Hi, we’ve showed the assembly of the Smart Airier last week, now let’s begin with the program part to make it work!
Video of the project:https://youtu.be/bq2q_1O8dEA
Go to MakeCode editor:(https://makecode.microbit.org),click Advanced in the drawer to see more choices.
We need to add extensions for programming, click “Extensions” in the bottom of the drawer and search with “Wukong” and “IoT” latter to download them.
In the “on start” brick, set “rain” to “false”
While pressing button A, set to open the door and window, and the airier stretches out with the “rain” status in “false”.
While pressing button B, set to close the door and window, and the airier retracts with the “rain” status in “true”.
In forever brick, detecting if the value is over 10 from the water level sensor, and judge if the “rain” status is “false”, if yes, set to close the window and door and the airer retracts, then set the rain status in “true”
Screenshots of the code:
Download the program to your micro:bit to finish your project!
If you have any ideas or opinions, please feel free to contact us via firstname.lastname@example.org.
Share this post
About the Author
ELECFREAKS focuses on microbit and publishes interesting articles
- Micro bit supplier
- Wholesale Suppliers
- Micro bit tutorial
- Micro bit classroom pack
- Mcorbit Environment Monitoring
- TPBot car
- Micro:bit car
- AI Lens
- Micor:bit AI Lens
- Microbit gyroscope
- Micro:bit LEDs
- BBC micro:bit
- Micro:bit Manipulator
- Wukong board
- Micro:bit Motorcycle
- Nezha breakout
- Micro:bit DIY
- 360° servos
- AI Lens
- Retro Arcade
- Microbit programming