intermittent startup when powered from DC supply #18677
Replies: 4 comments 9 replies
-
|
Is the ESP32 on a dev board? Is it a 5V supply? I would check the output voltage versus the current capability of your regulator. I leave boot.py as is and in I always put a 1uF cap across the EN button, you will find that recommended in several sources. |
Beta Was this translation helpful? Give feedback.
-
Do you have anything in place to allow external monitoring of the startup process that allows you to verify exactly where it stops? I know that the ESP32 have a few rather significant power spikes on enablement of the WLAN stack that can be influenced by external circumstances beyond whatever is happening on your board. Wifi spectrum, neighbour gaming, lease expired etc etc That may ask more power in 5% of the cases than the HW design accounts for. |
Beta Was this translation helpful? Give feedback.
-
|
This sounds like an electrical issue. When you use the questionable supply, how are you switching it on? If you are switching the mains supply it's possible that the 5V level rises too slowly to trigger the chip reset mechanism. You need to get your hands on an oscilloscope and see what's actually going on. |
Beta Was this translation helpful? Give feedback.
-
|
It seems to me that this is a power supply issue, as well. First of all, avoid using high resistive connections (e.g. breadboard) in DC supply. Use solder joints instead. ESP32 is known to be a power hungry device. The current spikes can easily exceed 0.5 A in startup and in using WIFI, You seem to have a bench supply, a small power supply and a voltage regulator, presumably of a low voltage dropout (LDO) I would suggest testing your voltage regulator by using your bench supply instead of the small power supply. Change If the output voltage of your small power supply is 5 V, I recommend using a very low dropout voltage regulators, say |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone! I’ve been working on an ESP32 project using MicroPython for a Wi-Fi sensor logger, and while the code works great once it’s actually running, I’m hitting a bit of a wall with startup reliability... It’s strange because when I use a bench supply or USB, it boots up perfectly, but as soon as I switch to a small DC supply through a regulator, it occasionally just hangs. It won't start the MicroPython runtime until I manually hit the reset button, which is a big issue since I meed this project to run unattended.
I’m really trying to dig into the why behind this rather than just finding a quick fix for one board. I’m curious to learn how sensitive the MicroPython interpreter is to things like voltage ramp-up speed, and if there are soecific ways to handle the EN and BOOT pins to make the startup sequence more 'bulletproof' for always-on devices. are there any known MicroPython-specific quirks compared to ESP-IDF that I should be designing for??? I’d love to hear from anyone who has deployed similar projects in the field. I’m really here to learn from the discussion and understand the design logic so I can make my future projects more reliable. Thanks in advance for any insights!
Beta Was this translation helpful? Give feedback.
All reactions