ESP32 turns off after a while

I am trying to control my blinds with the help of an ESP32. As you can see in the circuit diagram, I have a 220V to 5V power supply, that is powering the ESP32, two touch inputs and two relays.
The touch inputs function as Up and Down switches, to switch on the relais as needed (up or down). It works in the beginning, after I use the touch for a minute or so, it stops responding and the esp32 is being switched off.

It works again once I restart it.

Does it have to do with the circuit? Are the switches 'tripping'? I have a slightly different board than the one seen in the circuit diagram (TTGO T-Call). Any help would be highly appreciated, thank you!


I am also looking for some input on how to improve my wiring skills. Please share any tips you have.

Hi,
Do you have any filtering/decoupling capacitors on the devices in your project?
In my experience the esp32 will behave in all sorts of weird ways if it is not happy with the 5v supply

I tend to use a lot of the dupont connectors as you have but I do tend to find them a bit unreliable, especially single ones. If you can tape/glue several together (or better still use a multiple holder) this improves it.

Thanks alanesq for the feedback. I never used decoupling capacitors, I am reading about that on the internet now. can you share some more information about it, like an example sketch or so?

What do you mean by multiple holders? I could not find much on the internet. But I also have a feeling that the connections are may be too 'loose'.
Thanks

Hi,

I tend to put a good sized capacitor across the 5v feed to my esp32s as especially when using wifi they have a lot of spikes of current draw and this can help smooth it out a bit.

If you search eBay for "dupont housing" you will see what I mean. the bigger housing you use the more stable they tend to be in my experience. You can lift the plastic clips on them and remove the existing pins from the single casings and inser them in to larger ones or you can buy a crimper and fit your own pins on to wires.
this video may be of interest: #12 Five Tricks for working with Dupont wires - YouTube

1 Like

Hi,
The source you are using is 3W.
3W/5V = 0.6A, that is 600mA. Maximum.
You are powering an ESP32, + 2 relay modules + 2 TTP223 + 3 LEDs.

It is likely that you are at the source supply limit. and she may be going to shutdown.

When the ESP turns off, measure the 5V voltage of the power supply output.

1 Like

You should probably run you touch sensors @ 3.3 V, use current limiting resistors on your LED,
not use Dupont wires for power.

1 Like

You are probably right. The psu might be over-working. It is broken now.

Okay. If not use Dupont for the power supply, should I directly solder the cables to the pin? I am a newbie in the space, please share any alternatives you would recommend. Thanks

Great. I will try to also supply 3.3V to the relays and touch sensors. I ordered now a 5V 2A PSU. May be that will also solve the problem.

BTW - Ralph S Bacon has just posted a video on the very subject of dupont connectors

1 Like

This is very helpful thank you!

Which sized capacitor did you use across the feed? Can you share your circuit diagram, please? Is it PSU5V->capacitor->exp32-gnd?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.