esp32-wroom-32 start on battery power on without requiring boot button

ewgoncalves
Posts: 4
Joined: Mon Jun 15, 2020 2:23 pm

esp32-wroom-32 start on battery power on without requiring boot button

Postby ewgoncalves » Mon Jun 15, 2020 2:55 pm

Greetings,

I have a custom board that integrates the esp32-wroom-32 with minimal peripherals. This device's application demands that the chip remains in deep sleep (~5uA) for most of the time.

I currently have it operating with some batteries however, whenever I place a new set of batteries, I always need to press a button that straps the CHIP_PU pin to GND for it to initiate, after that, it cycles between 'deep sleep' and 'operating' modes regularly.
I would like to know how to start the device automatically just by plugging in the batteries, thus not depending on the button.
Is there any special strapping for this pin (preferably a static strapping)? Or is there any bootloader modification to be performed?

Thank you and best regards,

Beowulff
Posts: 17
Joined: Fri Mar 01, 2019 2:59 am

Re: esp32-wroom-32 start on battery power on without requiring boot button

Postby Beowulff » Tue Jun 16, 2020 3:05 pm

Do you have a capacitor and pullup resistor on the /EN pin?

ewgoncalves
Posts: 4
Joined: Mon Jun 15, 2020 2:23 pm

Re: esp32-wroom-32 start on battery power on without requiring boot button

Postby ewgoncalves » Tue Jun 16, 2020 3:25 pm

Hello Beowulff and thank you for your reply,
Yes, I have a 10k Resistor from EN to VDD (the same power supply as batteries) and a 0.1uF capacitor to GND.
Screenshot from 2020-06-16 16-24-49.png
Screenshot from 2020-06-16 16-24-49.png (10.03 KiB) Viewed 10398 times
Best regards,

mikemoy
Posts: 626
Joined: Fri Jan 12, 2018 9:10 pm

Re: esp32-wroom-32 start on battery power on without requiring boot button

Postby mikemoy » Tue Jun 16, 2020 6:45 pm

Check out section "2.1.2 Power-on Sequence and System Reset" of the esp32 hardware design guidelines.
https://www.espressif.com/sites/default ... nes_en.pdf

ewgoncalves
Posts: 4
Joined: Mon Jun 15, 2020 2:23 pm

Re: esp32-wroom-32 start on battery power on without requiring boot button

Postby ewgoncalves » Wed Jun 17, 2020 2:03 pm

Hello mikemoy,

Thank you for your reply,
By following that suggestion do you mean that by applying an RC circuit to delay the activation of CHIP_PU? "...The chip should be activated after the power rails have stabilized. This is achieved by delaying the activation of CHIP_PU (Pin9) after the 3.3 V rails have been brought up..."

I have used the same RC combination as in the devkit schematic (0.1uF / 10kOhm).
If there is something else please enlighten me.

Best regards,

PaulVdBo
Posts: 4
Joined: Sun May 17, 2020 1:30 pm

Re: esp32-wroom-32 start on battery power on without requiring boot button

Postby PaulVdBo » Mon Jun 22, 2020 8:07 pm

I have the same problem. I noticed that when I disconnect the power, and reconnect it within a few seconds, the ESP boots normally. When the power is disconnected for a longer time, the ESP won't start until I press the EN button ...
I've been browsing through the internet to find a solution, and I've found MANY "so called" solutions, but I can't find THE solution. I only find things like : try this, and try that and then maybe :roll: ... or sometimes it works, :roll: or most of the time it works... :roll:
Is there any one here that (for once and for all) can say what to do, and what certainly ALWAYS works ? I' can't hand over a finished ESP32 system to my clients telling them that when it shouldn't start, that they have to get a screwdriver, open the box, find that little button and press it. :roll:
It should be : POWER ON => RUN. Always, EVERY time.

Thanks in advance. :)

PS :
- my boards don't have a GPIO0...
- I tried the condenser "trick" on the EN pin -> same result.
- I've read through many "official" PDF's...
- I use a good power supply that delivers 3.3V/2A.

ewgoncalves
Posts: 4
Joined: Mon Jun 15, 2020 2:23 pm

Re: esp32-wroom-32 start on battery power on without requiring boot button

Postby ewgoncalves » Tue Jun 23, 2020 8:15 am

Hello,
I had a solution from espressif support after exchanging some details of my circuitry.
My issue was with the fact that I kept a capacitor attached to IO0. I used the dev kit schematic as a guideline, however, I think that in the latest update they also removed it. That capacitor does not let the IO0 shift as fast as necessary which messes up the strapping when powering the chip. The issue was solved after the removal of the capacitor attached to IO0.
Hope this helps,
Best Regards

PaulVdBo
Posts: 4
Joined: Sun May 17, 2020 1:30 pm

Re: esp32-wroom-32 start on battery power on without requiring boot button

Postby PaulVdBo » Tue Jun 23, 2020 8:21 pm

My issue was with the fact that I kept a capacitor attached to IO0
Thanks for your fast reply !
BUT ... I don't see a IO0 on my board ... ???
I attach a pic of my board.
Attachments
ESP32-DEVKIT-Pin-mapping.jpg
ESP32-DEVKIT-Pin-mapping.jpg (161.37 KiB) Viewed 10152 times

esp32-user
Posts: 10
Joined: Sat Mar 05, 2022 6:54 pm

Re: esp32-wroom-32 start on battery power on without requiring boot button

Postby esp32-user » Sun Mar 06, 2022 9:30 am

Paul, did you ever get a reply? I have a similar issue, not sure what I need to do to make sure that my board boots every time it gets power.

Who is online

Users browsing this forum: No registered users and 27 guests