LyraT-mini v1_2 testing. #89
-
Hello, I am in the process of testing the Lyrat-mini with es8311 codec. I'm just using the first input sketch. The program seems to run fine but the input data starts with 0 with the initial data block, then a burst of data up to +-70 then settles to what may be noise +-3 . The left/right channel data is the same being this is is a mono codec, I assume that is the expected result. I've used AUDIO_HAL_ADC_INPUT_LINE1 and 2 but the results are the same. I see that you had a similar issue with the es8388 where the mic gain was not perceivable and you have a fix for that. Possibly I have to select between the input mic modes, or apply a similar fix? Any hints where I should start debugging this? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
A few updates here. I did some tests to see what was working and here's what I found:
|
Beta Was this translation helpful? Give feedback.
-
I am not sure how the mini is working exactly, since I don't own one myself My recommendation would have been to set the gain by calling es8311_set_mic_gain() and use AUDIO_HAL_ADC_INPUT_LINE1. I noticed that unlike the regular Lyrat there are 2 different i2s ports. It seems that the microphone is connected to the ES7243 and not to the ES8311. Did you try the input on port 1 (setting i2s_num) instead of the default 0 port? |
Beta Was this translation helpful? Give feedback.
-
Looking at this diagram: https://espressif-docs.readthedocs-hosted.com/projects/esp-adf/en/latest/design-guide/dev-boards/board-esp32-lyrat-mini-v1.2.html#id7 |
Beta Was this translation helpful? Give feedback.
-
My gut feeling is that it should work: but since I don't have any LyraT-mini you are the only one who can check this. |
Beta Was this translation helpful? Give feedback.
I am not sure how the mini is working exactly, since I don't own one myself
My recommendation would have been to set the gain by calling es8311_set_mic_gain() and use AUDIO_HAL_ADC_INPUT_LINE1.
For testing try to record a sine tone, this helps to visually confirm that you get a proper signal.
I noticed that unlike the regular Lyrat there are 2 different i2s ports. It seems that the microphone is connected to the ES7243 and not to the ES8311.
Did you try the input on port 1 (setting i2s_num) instead of the default 0 port?