Hi all
If i try to open an ADC on pin 26, then i get a`invalid Pin for ADC` error (which is consistent with the documentation which notes that ADC works on pins 32-39 : https://docs.micropython.org/en/latest/ ... conversion).
However, in the ESP32 datasheet, we see that there are ADC channels connected to pins outside of this range, which are channels of ADC2.
I'm wondering if there's a reason why we cannot use ADC2 at the moment with the ESP32 port of micropython
Thank you
Elliot
ADC on ADC2
Re: ADC on ADC2
From a quick look at the source on GitHub it looks like ADC2 is completely unsupported. Only the pins associated with ADC1 are in the list of valid inputs and all of the functions refer to ADC1.
I suspect that the reason is probably because ADC2 is disabled when WiFi is in use and the MicroPython authors are assuming that will be the case more often than not.
Cheers,
Ray
I suspect that the reason is probably because ADC2 is disabled when WiFi is in use and the MicroPython authors are assuming that will be the case more often than not.
Cheers,
Ray