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!
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
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
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