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

ole_sticky_keys
Posts: 2
Joined: Sun Oct 09, 2022 9:27 pm

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

Postby ole_sticky_keys » Sun Oct 09, 2022 9:33 pm

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

ESP_Sprite
Posts: 9591
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Mon Oct 10, 2022 12:02 am

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.

Who is online

Users browsing this forum: No registered users and 122 guests