Fixes for ES8311 auto level control #208
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
More experimentation with ES3811 codec with on-board mic that's present on the Espressif ESP32-P4 EV board and the Waveshare ESP32-P4 Nano boards.
Seems more reliable for auto level control of the onboard mic, not causing random weirdness now.
Not tested in extremely loud venues yet, but seems fine at "home stereo not hurting your ears" volumes, and also fairly quiet volumes.
Pins for the Expressif P4 EV board and the Waveshare P4 nano board are both the same:
Type = ES8311
SD = 11
WS = 10
SCK = 12
MCLK = 13
SDA = 7
SCL = 8
I tested a lot of settings and this seems like a good starting point:
Squelch = 2 to 5 (tune to the point a quiet room shows no response)
Gain = 1
AGC = Normal
Mic Quality = Average
Profile = INMP441 (or the big/small speakers INMP441 variants depending on your environment)