When RESET or initial power on happens on non 5V USB power (using LiIon battery and MCP1700)
WiFi radio begin() will fail and system reboots
second connect will pass
sequence fails again after deep sleep and timer WAKE
TODO: Scope 3.3V supply and look for any signs of droop
monitor regulator output and 3V3 pin on dev module
Observed that fully charged battery will RESET controller after deep sleep, but as voltage gets < ~4.1V controller stops resetting.
4:30am - Experiment start
19:10pm
MQTT topic added to report boot count
Boot count starts to increment after deep sleep, but microcontroller randomly still RESETs
I now have a way to know when things are working properly
One can clearly see when boot count is getting RESET to 0
Left graph: ADC reported battery voltage vs. time
Right graph: bootCount vs. time
**Notice how bootCount periodically resets after incrementing for some time. This is typical behavior is the ESP32 RESETs when activating WiFi radio.
I replaced the MCP1700 with a TC1262-3.3V LDO (500mA) and the system works on a fully charged battery immediately! I’ll post results from overnight run to see if any system resets occur.
Ordered 500mA LDO’s from Microchip. TC1262 (qty 10)