Noise Alarm Reminder

Noise Alarm Reminder

Purpose

Urban noise pollution is recognized as the third major public hazard in today’s society. It is no less harmful to humans than other pollution. Data shows that under long-term noise stimulation, the cerebral cortex excites and inhibits excessive balance disorders, abnormal conditioned reflexes, and brain damage to vascular tension will have a great impact on the human body’s nerves, cardiovascular, digestion, immunity, endocrine system and fetal development.

1.Traffic noise: mainly refers to the noise emitted by vehicles, airplanes, trains and ships during operation. The source of these noises is mobile and the interference range is large.

2.Industrial noise: mainly refers to the noise generated in industrial production labor. Mainly from machinery and high-speed running equipment.

3.Building construction noise: mainly refers to the noise generated at the construction site. In the construction, a large number of power machinery must be used, excavation, drilling, mixing, and frequent transportation of materials and components, resulting in a lot of noise.

4.Social life noise: mainly refers to the noise produced by people in various social activities such as commercial transactions, sports competitions, parades and assemblies, and entertainment venues, as well as the noise of various household appliances such as radio cassette recorders, televisions, and washing machines.

Thus, I want to make a noise reminder device to remind people around not to make noise.

Bricks Assembly

Steps:

Noise Alarm Reminder

Noise Alarm Reminder

Noise Alarm Reminder

Noise Alarm Reminder

Noise Alarm Reminder

Noise Alarm Reminder

Please download the io. file if you have Lego studio: Noise-Alarm-Reminder.io

After assembly, connect with Nezha breakout board, the rainbow LED ring, and the noise sensor.

Noise Alarm Reminder

Hardware connections

Noise Alarm Reminder

Software Programm

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

Noise Alarm Reminder

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

Noise Alarm Reminder

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:

Noise Alarm Reminder

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

Result

The decibel level in the current environment is detected by the noise sensor. The rainbow LED ring lights up according to the decibel level in the environment, the higher the decibel is, the more lights are on. If the noise intensity exceeds the set threshold, the rainbow LED ring will automatically switch the color of the light. The LED matrix will also change the expressions.