Ai-Thinker-Open / ESP32-A1S-AudioKit

Ai-Thinker AudioKit Board SDK - 安信可 esp32-a1s 音频模组开发板
Other
132 stars 63 forks source link

Strange values from Microphone #32

Closed pschatzmann closed 2 years ago

pschatzmann commented 2 years ago

I bought a AI-Thinker AudioKit 2.2 and most of the functions are working. However I am struggeling with the ADC function:

Here is the output:

18:34:27.412 -> 2, -32766
18:34:27.412 -> 32765, 32765
18:34:27.412 -> -32766, -32764
18:34:27.412 -> 1, 32767
18:34:27.412 -> 32764, 32762
18:34:27.450 -> 3, 2
18:34:27.450 -> -32767, -32768
18:34:27.450 -> 32765, -4
18:34:27.450 -> 32764, 32763
18:34:27.450 -> 5, -32762
18:34:27.450 -> 32761, 32762
18:34:27.450 -> -4, -2
18:34:27.450 -> 1, -32766
18:34:27.450 -> 32766, 32766
18:34:27.450 -> 32763, -6
18:34:27.450 -> -1, 0
18:34:27.450 -> 3, 4
18:34:27.450 -> 32762, -6
18:34:27.450 -> -32768, 32767
18:34:27.450 -> -32768, -32768
18:34:27.450 -> 32766, 0
18:34:27.450 -> 32765, 32765

Screen Shot 2021-12-11 at 18 40 54

Does anybody have a hint where the issue could be ?

pschatzmann commented 2 years ago

In order to define old IDF versions I used

define I2S_COMM_FORMAT_STAND_I2S (I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_LSB)

But it should have been (I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB) !