"It’s Here! The BFCM Sale of the Year – Grab Your Favorites!"

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:

micro:bit

Wukong expansion board

360 degrees servo

Go to MakeCode editor:(https://makecode.microbit.org),click Advanced in the drawer to see more choices.

Smart Arier Projects

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.

Smart Arier Projects

Smart Arier Projects

Smart Arier Projects

In the “on start” brick, set “rain” to “false”

Smart Arier Projects

While pressing button A, set to open the door and window, and the airier stretches out with the “rain” status in “false”.

Smart Arier Projects

While pressing button B, set to close the door and window, and the airier retracts with the “rain” status in “true”.

Smart Arier Projects

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”

Smart Arier Projects

Program: https://makecode.microbit.org/_8C5cxMYcJLAa

Screenshots of the code:

Smart Arier Projects

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 [email protected].

Leave a Reply

images
In March, ELECFREAKS supported 5 schools to carry out school science and technology festival activities
images
Children’s Programming Education is the Future Trend
images
Technical verification! Nezha series products can complete WRO competition tasks
images
Let's take part in the Ceremony of the New Factory of ELECFREAKS together!
images
Bluetooth Bee(HC-05 and HC-06) User Guide
images
In March, ELECFREAKS supported 5 schools to carry out school science and technology festival activities
Monthly Archive