Page 1 of 1

Question about adc_continuous and adc_monitor

Posted: Wed May 08, 2024 2:48 pm
by MSzymanek
Hello!

I am working on my bachelor projects using an Esp32s3. It's a USB MIDI controller with buttons, knobs and hittable pads. Needless to say I have to read a lot of analog signals, and so far I've been doing well using analog MUX and just reading with adc_oneshot, while getting interrupts from my buttons, switches and pads.

For the knobs (potentiometer) I cannot really make an interrupt, since they don't have a default state, like the other peripherals. I can poll them, but I was wondering about whether or not I can use adc_continuous and adc_monitor instead of polling. I guess my questions are:

* Can I use adc_continuous and adc_one_shot from the same adc unit?
* ESP-IDF documentation mentions there are precisely 2 ADC monitors available. Does this mean I cannot monitor more than 2 channels at the same time?
* Is there a way to change adc_monitor threshold values after it has been initialized?

Thank you in advance!