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
Materials required:
...
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”
Program: https://makecode.microbit.org/_8C5cxMYcJLAa
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 services@elecfreaks.com.
Share this post
About the Author
ELECFREAKS focuses on microbit and publishes interesting articles
Topics
- Curriculum
- Course
- Micro bit supplier
- Wholesale Suppliers
- Micro bit tutorial
- Micro bit classroom pack
- Mcorbit Environment Monitoring
- Temperature-controlled
- Motor
- Fan
- TPBot car
- TPBot
- Micro:bit car
- AI Lens
- Micor:bit AI Lens
- Micro:bit LEDs
- BBC micro:bit
- Micro:bit Manipulator
- Wukong board
- Cutebot
- Micro:bit Motorcycle
- Nezha breakout
- Micro:bit DIY
- 360° servos
- AI Lens
- Retro Arcade
- Ecode
- PlanetX
- Microbit programming
- Your:bit
- Do your:bit
- IoT:bit
- Octopus
- Rainbow LED Ring
- Joystick:bit
- Wonder Building Kit
- Sensor:bit
- Downie
- Wenjie
- Laser Engraver Tutorial
Tags
Comments