ADC2 with WiFi workaround
Posted: Tue Jan 30, 2018 11:32 pm
Hi,
I have a custom PCB that has some DIP switches (via a resistor network) tied to some GPIO's on ADC2.
I also need OTA flashing (WiFi) to work, so end users can easily update the firmware in their devices.
I just now discovered the ADC2 and WiFi after my PCB design has been finished and in production....a bit frustrating.
I technically only need to measure the DIP switch inputs while booting (this is for end user settings configuration).
Does anyone have any ideas of a workaround/hack for allowing the ESP32 to read values from ADC2 on startup, save the values, then ~5 seconds later, enable WiFi for the duration of the power cycle?
Or perhaps I could use an internal trigger in my code to turn WiFi on/off as needed....so at any point I can turn WiFi off temporarily, take a reading from ADC2, then turn WiFi back on?
It says here, "me-no-dev" posted 'There is a fix coming for ADC2 and WiFi soon '
https://github.com/espressif/arduino-esp32/issues/102
Has this been fixed yet??
Thanks
Ben
I have a custom PCB that has some DIP switches (via a resistor network) tied to some GPIO's on ADC2.
I also need OTA flashing (WiFi) to work, so end users can easily update the firmware in their devices.
I just now discovered the ADC2 and WiFi after my PCB design has been finished and in production....a bit frustrating.
I technically only need to measure the DIP switch inputs while booting (this is for end user settings configuration).
Does anyone have any ideas of a workaround/hack for allowing the ESP32 to read values from ADC2 on startup, save the values, then ~5 seconds later, enable WiFi for the duration of the power cycle?
Or perhaps I could use an internal trigger in my code to turn WiFi on/off as needed....so at any point I can turn WiFi off temporarily, take a reading from ADC2, then turn WiFi back on?
It says here, "me-no-dev" posted 'There is a fix coming for ADC2 and WiFi soon '
https://github.com/espressif/arduino-esp32/issues/102
Has this been fixed yet??
Thanks
Ben