I am following the online course “Learn ESP32 with Arduino IDE“.
1: I have the WiFi client working correctly, activating red and blue LED strips √
2: I have the complete system running on a 5Vdc battery pack √
3: The voltages with or without the PC USB port connected are perfect even the ESP32 3.3Vdc is good √
4: Disconnect the PC USB port and the ESP32 continues to appear ok, LEDs are on and the web page is good √
5: However requesting an action on the web page to select the relevant GPIO output to change does not work anymore ×
6: Activating the ESP32 on board push buttons “boot and enable” does not improve the issue ×
7: Reconnecting the PC USB cable to the ESP32, within one second the web page works again ?
Any thoughts from anyone, I am using the script as per the “Learn ESP32 with Arduino IDE“ course. It works 100% while connected to the PC, stops working when the USB connection is disconnected, yet the 5Vdc battery pack is providing a very smooth continuous power source to the ESP32 and associated circuitry.
How does your battery pack look like?
How are you connecting your 5V battery pack to the ESP32?
Can you try a “blinking LED” project with the battery pack and see if it works (to try to find if the problem is related to using the Wi-Fi or to the fact that a battery is powering it)?
What is the max current the 5V battery pack can supply? Generally the USB port can supply up to 2A. Wifi does use a lot of current and the battery pack may not have enough to power it.
Sara and Steve; thank you both for reviewing this question. I have tried various power supplies it is not related to supply capacity, the battery pack can provide 2.4A.
The test is as follows;
1: connect battery pack (or any power supply) via the USB port to the ESP32 and all is perfect.
2: connect battery pack (or any power supply) via the ext 5Vdc pins on the ESP32 and the programme fails to update as it should.
3: All supply voltages are perfect in either configuration, ie 5Vdc and 3.3Vdc, perfect.
4: I am activating two LEDs, one red and one blue from the two GPIO’s as per the programme, very small load.
I have a short video and wiring table photos to support this text if these assist to clarify?
Can you share the photos?
To share a picture, share a link to google drive, dropbox, Imgur or another service.