I am using a lctech x2 relay with my esp-01s for my home automation.
For some reason after approximately 24h of use, the relay (the components itself, not the board) broke down.
It is the second time I de-soldering and re-soldering a new relay. After changing it, every things is working fine until the next morning.
Once unsoldered, I test the failing relay by applying 5v to the pins, and I can confirm that the relay is dead because I don't heard any click from the relay.
The relay is used for opening and closing blinds, so it is off 99% of the time. It is activated only twice to 4 times a day during 10 to 30 seconds.
Do you guys have a idea ?
It has nothing to do with my esp programmation right? It maybe a electronical problem?
Ps: English is not my first language, sorry if I made some mistakes. If needed I will be happy to make some clarification.
That's a cheap hobby relay - many many Arduino relay boards use them - I'm looking at one right now. I would not expect them to last for years under heavy use, but a 24 hour lifespan suggests that something else is wrong.
Maybe you could kill it by switching it very frequently all day. Pulling a lot of current can weld the contacts together so it can't switch any more.
Try running a test with a LED or some other component that is stressful to make sure it isn't the board itself.
I am using those relay on a different board, but still to do the same thing, controlling my blinds, and those are running well (for the moment ...). The module in question is similar to this one 5 v 2 road 10 a optical coupling isolation relay module_chinalctech.
I am using the ictech one because it is "all in one board", esp+AM117+relay in one place.
I hope the others agree that we can make a conclusion:
It is too cheap. Those relays cause a lot of trouble. They can certainly not deal with 10A, probably not even 1A. That module is probably not according to the rules to be used with mains voltages. There are others on this forum that also run into problems when using those relays for something serious. It might be melted contacts or a overheated relay.
Sparks can be reduced with a RC snubber circuit, but the overall quality of the module is not good enough.
I think you have find something else. Something that is certified for using with mains voltages and preferably with a SSR. You need to step up to at least ten times better quality.
Because I am still in a process of learning how to make it work (because my long term project is to have a smart home without using proprietary tech), I prefer to take my chance my aliexpress.
If I broke something, or order the wrong object, the financial impact is less important.
So if I try with a SSR, what kind of SSR do I need?