Using I2S_NUM_1 for Multi Channel ADC sampling
Posted: Tue Sep 29, 2020 11:30 am
Hi everyone
I just got the code working for using an ADC together with I2S. I used ESP-IDF 4.0 because versions > 4.0 don't seem to support the code I found. (User ESP_houwenxiang on https://www.esp32.com/viewtopic.php?t=2346#p37378). With some changes in the rtc_module.c I got it working for both ADCs.
Both ADCs with up to five channels seem to work perfectly fine when using I2S_NUM_0. But when I start using I2S_NUM_1 it either blocks or returns wrong values (wrong values = constant 3.3V). I saw that only I2S_NUM_0 supports DAC function (https://docs.espressif.com/projects/esp ... s/i2s.html), so my guess is that this may apply to the ADC functions as well. Is this true?
My goal use both ADCs with I2S to measure 10 channels "simultaneously". I need I2S to get higher SPS. My Code is mostly based ESP_houwenxiang' - see link above.
Thanks!
I just got the code working for using an ADC together with I2S. I used ESP-IDF 4.0 because versions > 4.0 don't seem to support the code I found. (User ESP_houwenxiang on https://www.esp32.com/viewtopic.php?t=2346#p37378). With some changes in the rtc_module.c I got it working for both ADCs.
Both ADCs with up to five channels seem to work perfectly fine when using I2S_NUM_0. But when I start using I2S_NUM_1 it either blocks or returns wrong values (wrong values = constant 3.3V). I saw that only I2S_NUM_0 supports DAC function (https://docs.espressif.com/projects/esp ... s/i2s.html), so my guess is that this may apply to the ADC functions as well. Is this true?
My goal use both ADCs with I2S to measure 10 channels "simultaneously". I need I2S to get higher SPS. My Code is mostly based ESP_houwenxiang' - see link above.
Thanks!