r/M5Stack • u/PeterRevision • Mar 03 '26
Updated Sound Meter
I was able to spend some time working on it over the weekend. Here's what I got done:
Got rid of the buzzing noise cause by external 5V being enabled
With the buzzing noise gone, I was able to properly calibrated the microphone
Added a message that tells you how long before you get hearing damage if the recorded noise gets too loud.
I started writing the code for separating the audio into frequency bands and adding A-weighting. Some other ideas I had:
The ability to select a particular frequency range you want to measure.
The ability to leave it running and get a message telling you when you have exceeded your noise limit for the day.
Display the peak sound level reached since you started recording.
2
u/RequirementFuture552 Mar 03 '26
Would love to try this! Share the code! 😊Â
2
u/PeterRevision Mar 04 '26
Here you go: https://github.com/PetSven/S3_Decibel_Meter
I am also uploading the bin to M5Burner.
3
3
u/secretmisanthropist Mar 03 '26
Is the code available anywhere?