Micro:bit Classroom Multi-point Noise Level Monitor

by rolyjones in Teachers > Pre-K

33 Views, 1 Favorites, 0 Comments

Micro:bit Classroom Multi-point Noise Level Monitor

Multiple micro:bits programmed to aid classroom management. One micro:bit is the controller and kept under teacher control. The others are set up to measure noise levels in the rest of the room, and alarm if noise levels exceed a defined threshold.

Supplies

Micro:bits, one for the controller and one for each monitor that you want to use in the room (I used 6)

Glue dots (https://www.amazon.com/dp/B004L6GHZG) to temporarily attach micro:bit board to its battery pack

Micro:bit Hardware Setup

Each micro:bit is glued to its battery pack using a glue dot. This keeps all the components together as a single unit and provides some level of audio insulation between the micro:bit microphone and the surface the unit is placed on.

Micro:bit Controller Software

Software is available on Microsoft MakeCode at https://makecode.microbit.org/S36815-33485-80888-88398.

Run this on the micro:bit that will be used as the classroom controller.

Adjust the radio group to a different number, as desired, to avoid interference from other micro:bit projects.

Adjust threshold to your desired noise alarm threshold (I used 200, max usable threshold is 254).

Both of the above can be found and set in the first stack in the program.

Micro:bit Monitor Software

Software is available on Microsoft MakeCode at https://makecode.microbit.org/S44702-86383-49679-00937.

Run it on each micro:bit that will be used as a noise level monitor controlled by the controller above.

Make a separate program with unique monitor number for each monitor you will be using.

Make the radio group and threshold the same as that on the control micro:bit.

All the settings above can be found and set in the first stack in the program.

Running the Microbits Together

Once the micro:bits have been powered up and programmed they will start working together.

The controller will toggle all the monitors between disable (controller shows "D") and enable (controller shows "E") by pressing its capacitive touch logo.

The noise alarm threshold for all monitors can be increased or decreased through the controllers A (decrease) and B (increase) buttons. This is best done with monitors disabled, but also works while they are enabled. After adjusting, the controller will show the new threshold, and the monitors will show the new threshold (if they are disabled) after it has been transmitted to them.

Individual monitors can be toggled between disabled (monitor shows its monitor number) and enabled (monitor shows the noise level bar graph) using their A button

Future Work

Move from block based programming to python programming. This will allow the use of the "radio send transmit power" command to increase the transmit power of the controller. The default value of 6 is a little intermittent. It is hoped that the max value of 7 will improve things, though this may reduce the battery life.

Have the monitors transmit to the controller so it can show the number of the monitor that most recently alarmed. Not sure how useful this will be, but I would like to find out.

Find a more secure (but still non-permanent) way to attach the micro:bits to their battery packs. Interested students can easily detach them from the glue dot.

Make the monitor number for each monitor adjustable, so separate code does not have to be maintained for each monitor number.