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
ADC2 with WiFi workaround
Re: ADC2 with WiFi workaround
Yes, I realize it will work fine with wifi disabled...
Im trying to figure out if its possible for both to work together....maybe by turning wifi off temporarily, reading ADC2, then turning wifi back on, etc.
I need both functions...wifi and ADC2. I dont need them to work at the same time, but I want to be able to switch "on the fly" between wifi on, and reading from ADC2.
Im trying to figure out if its possible for both to work together....maybe by turning wifi off temporarily, reading ADC2, then turning wifi back on, etc.
I need both functions...wifi and ADC2. I dont need them to work at the same time, but I want to be able to switch "on the fly" between wifi on, and reading from ADC2.
Re: ADC2 with WiFi workaround
Since you "technically only need to measure the DIP switch inputs while booting" I would say stick to that until the fix comes.
Otherwise https://github.com/espressif/esp-idf/bl ... est_adc2.c
Otherwise https://github.com/espressif/esp-idf/bl ... est_adc2.c
Re: ADC2 with WiFi workaround
Hi WiFive,
We are planning to use few ADC2 channels as per our project requirement. So, Also, In parallel, We are planning to use BLE in parallel. So, Will it create any impact into ADC2 while using BLE? will it work ADC2 channel while using BLW?
As I have heard like ADC2 can not be used with WIFi and i don't that issue has been fixed into newer SDK or not.
So, Please confirm that so that we can make our product schematic according to that.
We are planning to use few ADC2 channels as per our project requirement. So, Also, In parallel, We are planning to use BLE in parallel. So, Will it create any impact into ADC2 while using BLE? will it work ADC2 channel while using BLW?
As I have heard like ADC2 can not be used with WIFi and i don't that issue has been fixed into newer SDK or not.
So, Please confirm that so that we can make our product schematic according to that.
Regards,
Ritesh Prajapati
Ritesh Prajapati
Who is online
Users browsing this forum: Google [Bot] and 97 guests