Page 1 of 1

ESP32 will not connect to wifi when 5v output connected to peripherals

Posted: Sun Oct 09, 2022 9:33 pm
by ole_sticky_keys
Hello,

I am making a standalone weather station and running into an issue. On startup, when I have a air quality sensor connected to the 5V VIN output, the wifi on the ESP 32 wont connect. If i disconnect the sensor, startup the ESP 32, then connect the 5V everything works fine.

The problem is I keep the ESP32 outside at the edge of range of wifi, so when I get it all going using the method described above it works fine. But it eventually momentarily disconnects from the wifi and when it tries to reconnect, it cannot since the 5V is now outputting to the peripherals. When I tested the weather station close to the wifi for a few days it had no issues, so I know its an issue of Wifi connection. Any ideas on how to solve the issue?


Hardware:
ESP-WROOM-32 ESP32 ESP-32S Development Board 2.4GHz Dual-Mode WiFi

Re: ESP32 will not connect to wifi when 5v output connected to peripherals

Posted: Mon Oct 10, 2022 12:02 am
by ESP_Sprite
Sounds like the sensor is somehow either using too much current or is inducing some kind of EMF into the power supply... you could either fix that, or take the easy way out and switch the power supply of that sensor using a mosfet or relay or something after you've connected.