The on loud sound event detects a peak in the sound level, for example when someone claps. You can change the loud threshold using set loud sound threshold.

Live Data

The sound level block returns the current sound intensity from 0 (silent) to 255 (very loud).


The example plays a power up sound when a loud sound is detected. In a forever loop, it continuously charts the sound level using the chart block.

WORK AREA The microphone on the Circuit Playground is capable of sampling sounds. This feature is not yet supported in MakeCode, stay tuned.

This guide was first published on Jun 07, 2017. It was last updated on Mar 08, 2024.

This page (Microphone) was last updated on Jun 07, 2017.

Text editor powered by tinymce.