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

EdtheWino
Posts: 13
Joined: Sun Jan 09, 2022 7:03 pm

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

Postby EdtheWino » Sat Jul 27, 2024 2:31 am

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/
Last edited by EdtheWino on Sat Jul 27, 2024 3:42 am, edited 1 time in total.

EdtheWino
Posts: 13
Joined: Sun Jan 09, 2022 7:03 pm

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

Postby EdtheWino » Sat Jul 27, 2024 3:41 am

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.

Who is online

Users browsing this forum: No registered users and 36 guests