pschatzmann / arduino-audiokit

Arduino ADF/Audiokit HAL (support for ESP32-A1S, AI-Thinker, LyraT for ES7148, ES7210, ES7243, ES8311, ES8347, ES8388, TAS5805M, AC101 audio chips)
GNU General Public License v3.0
153 stars 40 forks source link

Have you had AUDIO_HAL_ADC_INPUT_LINE1 work? #84

Closed Gaai closed 1 year ago

Gaai commented 1 year ago

I noticed in the input example you used AUDIO_HAL_ADC_INPUT_LINE2. I'm not sure how the two mics on the AudioKit are wired but is AUDIO_HAL_ADC_INPUT_LINE1 supposed to work as microphone input too? It doesn't for me. And I'm wondering if this is a defect on my board or pretty common.

Line1 seems to be the default input AudioKitSettings.h: #define AUDIOKIT_DEFAULT_INPUT AUDIO_HAL_ADC_INPUT_LINE1 And in AudioKitHAL.h: audio_hal_adc_input_t adc_input = AUDIOKIT_DEFAULT_INPUT; /*!< set adc channel with audio_hal_adc_input_t*/

So I guess you had it working once.

Gaai commented 1 year ago

Ah now I'm wondering if this might be the line input. I'll check right away.

pschatzmann commented 1 year ago

All AudioKit boards have a hardware bug and you can't select between Aux in and microphone in. https://www.pschatzmann.ch/home/2021/12/15/the-ai-thinker-audiokit-audio-input-bug/

Gaai commented 1 year ago

Thanks a lot. Valuable info there that I hadn't fully read and taken in before!