🎄Merry Christmas🎄Coolest Christmas Gift Received Ever!
🌟All products' price reduced by 15% off
🎁Hot-Selling Items: Buy 10 Get 1 Free

The Smart Window

1.Introduction

What is noise? In our daily life, all sounds that interfere with people’s rest, study and work, and interfere with the sounds you want to hear, these sounds are collectively called noise.

Long-term acceptance of 50 decibels of noise at night can easily lead to cardiovascular disease; 55 decibels have a negative impact on children’s learning; 60 decibels make people wake up from sleep; 70 decibels increase the incidence of myocardial infarction by about 30%; over 110 decibels may cause permanent hearing loss.

How to prevent noise? We can think about the three processing methods of noise source, transmission channel, and receiver.

For example, we can make a smart window, and when the external volume is too loud, it will automatically close the window and reduce the volume.

2.Materials

micro:bit X 1

USB cable X 1

Nezha Breakout Board X 1

Motor X 1

3.Assembly

Build-up steps in PDF:

The-Smart-Window.pdf

Hardware Connection:

Connect the motor to M1 on Nezha breakout board.

The Smart Window

programming

Click “Advanced” in the MakeCode to see more choices.

The Smart Window

For programming, we need to add a package: click “Extensions” at the bottom of the MakeCode drawer and search with “nezha” in the dialogue box to download it.

Notice: If you met a tip indicating that some codebases would be deleted due to incompatibility, you may continue as the tips say or create a new project in the menu.

Code:

The Smart Window

Link: https://makecode.microbit.org/_ijbJWkcUy9gF

Result

When the outside volume exceeds the threshold, the window will automatically close, otherwise it will automatically open.

Leave a Reply

Frame 422188
Meet ELECFREAKS at BETT 2025!
Frame 422521
Our New Distributor——BERRYBASE
images
In March, ELECFREAKS supported 5 schools to carry out school science and technology festival activities
Frame 422188
Meet ELECFREAKS at BETT 2025!
Frame 422521
Our New Distributor——BERRYBASE
images
How to make a counter with micro:bit?
Monthly Archive