-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-256 or -inf db #19
Comments
Can you show your ESPHome config? Which esp-idf versions are you using in both cases? I advice to use minimal config without any filters at first. Maybe try different sample rates/bits per sample and adjust In the worst case you might need to print raw audio data as it comes from I guess there could be small differences in initialization/config depending on chip/framework version. You can see all initialization parameters in |
These are the versions in use:
This is the esphome yaml file:
Some relevant logging at startup
I'm now trying different configurations (without filters as suggested). Can I print the raw data via esphome or should I add that in the C++ code ( |
I would suggest to print it in Setting |
I'm not getting anything, just zeroes: Logging right before the return true:
Until 2048... |
The measurements do seem quite high (loud), my other meter registers about 44 dB. That's for tomorrow to figure out. This issue can be closed I think since I no longer get inf or 256 values. Thanks again for the help! |
Glad to hear that you're getting more reasonable values now, you might also want to apply A-weighting then, it should give lower dB values, and it better matches how humans perceive loudness at different frequencies. There also potentially could be other sources of radio/electromagnetic noises that might affect readings. So you can experiment turning off wifi/bluetooth, moving wires/mic around and check whether it makes any difference. I'm closing for now, but feel free to comment if you will have more questions. |
However it seems suspicious that you have LZmin = LZeq = LZmax, usually it should be LZmin < LZeq < LZmax < LZpeak |
Using an Olimex esp32-c3 with an INMP441. Im not able to get any measurements:
Max always reports: -256.29 dBA
Min and peak are on: -inf dBA
I've tried switching left and right as in #10 .
The hardware does work with this Arduino code: https://iotassistant.io/esp32/smart-door-bell-noise-meter-using-fft-esp32/
Any tips on how to debug further?
The text was updated successfully, but these errors were encountered: