Using the ADC to record stereo signals

escher
Posts: 10
Joined: Mon Feb 18, 2019 11:12 am

Using the ADC to record stereo signals

Postby escher » Mon Mar 04, 2019 9:26 am

I was reading the API docs for i2s_set_adc_mode:

Code: Select all

esp_err_t i2s_set_adc_mode(adc_unit_t adc_unit, adc1_channel_t adc_channel)
The only acceptable adc_unit_t is ADC_UNIT_1. (ADC_UNIT_BOTH is "not supported yet").

Does this mean that the ESP32 ADCs are incapable of recording stereo signals or is there a way? I note the ESP-ADF examples outsource the audio work to the ES8388.

escher
Posts: 10
Joined: Mon Feb 18, 2019 11:12 am

Re: Using the ADC to record stereo signals

Postby escher » Thu Mar 07, 2019 1:35 pm

So, I assume not possible then? The STM32 ADC1 and ADC2 can be synchronized in dual mode at orders of magnitude of Msps with hardware triggering; whereas the ESP32 can't do any of that? It's disappointing.

ESP_Sprite
Posts: 9709
Joined: Thu Nov 26, 2015 4:08 am

Re: Using the ADC to record stereo signals

Postby ESP_Sprite » Fri Mar 08, 2019 8:51 am

It's... complicated. The long and short of it is that WiFi needs to use ADC2 to measure some things with relation to the analog bits of the hardware. We haven't found an elegant way to make that mesh with simultaneous sampling of ADC1 and ADC2 yet.

Who is online

Users browsing this forum: Bing [Bot] and 99 guests