This is a simple program to detect noisy environments and to provide feedback via the calliope mini.
Calliope Mini starts up and initializes the noise level / threshold to the current mic value. You then can use the Buttons A to decrease the level (which means you need to be quieter) or Button B to increase the threshold. In the forever loop, we check against the threshold and show a sad face for some time in case the threshold was surpassed (which means it was noisier).
Probably a great feedback tool during "quiet time" at school.
- Calculate seconds it is noisy vs. not noisy. Turn it into a performance/noise indicator by calculating a noise KPI (noisy time divided by total time). Try to beat it next class.
- Which class is the noisiest, which one is the quietest.
- Which areas of your classroom/school are noisier and which ones are quieter over the duration of typical a day?