Question about adc_continuous and adc_monitor

MSzymanek
Posts: 2
Joined: Wed May 08, 2024 2:41 pm

Question about adc_continuous and adc_monitor

Postby MSzymanek » Wed May 08, 2024 2:48 pm

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!

Who is online

Users browsing this forum: No registered users and 370 guests