ESP32 ADC & DAC Example #541
-
Is there an example to use two analog inputs on the ESP32 say ADC1_6 (GPIO32) and ADC2_5 (GPIO14) for left and right audio and then output the audio using the DAC on GPIO25 and GPIO26 respectively? I looked at adc-serial.ino but I am not sure how to pick up the second ADC and how to send the audio out again using the built in DAC. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
I don't see this as an issue but rather a discussion because my library works as designed! |
Beta Was this translation helpful? Give feedback.
-
Thanks, and now I learnt something also... |
Beta Was this translation helpful? Give feedback.
-
How about using something that has two I2S like a stm32f407vet6? |
Beta Was this translation helpful? Give feedback.
-
The ESP32 has also 2 I2S ports and you can use both of them full duplex and read and write at the same time! So far I was only working with a Black Pill STM32411, so feel free to extend/adapt the functionality... |
Beta Was this translation helpful? Give feedback.
-
Maybe I'm a bit late, but what about just read audio from, say, analog Mic (for example, MAX4466) on an ADC pin and then just copy that audio to DAC pin 34, for example? I've tried to do that, but it is not working. Should I open a new issue and discuss it? |
Beta Was this translation helpful? Give feedback.
I don't see this as an issue but rather a discussion because my library works as designed!
There is not example because the ESP32 does not support this scenario. I2S using the ADC and the DAC work only on port 0. So you can't use them at the same time.
If you use an external DAC and ADC there are not such limitations...