Page 1 of 1

How WiFi.begin statement could stop Emon Voltage Display? [SOLVED!]

Posted: Sat Jul 27, 2024 2:31 am
by EdtheWino
Arduino IDE 2.3.2

When running the Emon Energy Monitor program available at GitHub on an ESP32-S microcontroller the voltage and current data is displayed on the Serial Monitor output. When I attempted to add the host/client code (WiFi.h) to allow me to access the data remotely
through a browser request the voltage data goes to zero. Specifically this statement:

Code: Select all

Wifi.begin (wifissid, wifipass);
after being added and compiled causes the voltage output to go to 0. The current data remains unaffected.
Someone mentioned that WiFi uses one of the two ADC 'peripherals' that is shared with part of the analog pins.
I have no understanding about anything related to WiFi & ADC peripherals. Does this sound like a possibility to
create the interference I am seeing?

Link to Github:
https://github.com/danpeig/ESP32EnergyMonitor/

Re: How WiFi.begin statement could stop Emon Voltage Display?

Posted: Sat Jul 27, 2024 3:41 am
by EdtheWino
Solved! The ESP WiFi uses one of the two ADC 'peripherals' to function. Relocating to the other side of the ESP and using
different pins eliminated the issue.