I've recently taken a swing at arduinos and decided to build myself an automation system for my plants.
The ESP8266 system monitors and controls temps, etc and edits values in MySQL which my web browser will output using AJAX.
I have connected everything into a small fireproof enclosure, with 3 relays,a samsung 5v cellphone charger plug and a DHT11 sensor. The arduino device (NodMCU) and the other components are connected to this charger and is switching the relays constantly.
The issue im having is that the relays stop working after a day or 2. They just stop clicking completely, or don't switch when you write HIGH or LOW to the input pins.
Not sure if this is because the relays arent reliable enough, or if its the components ive used.
Someone told me the noise generated in the enclosure is interfering with the process and confusing the relays, or taht it could be too little power provided.
So i went back to the drawing board while I wait for someones assistance. What ive gathered so far is that i need more AMPS. and i need more voltage. Only issue is i dont know how much or what is more prefered than others.
So i've bought a simple "12v 2A Max" power supply, and a few 7805 regulators.
I was also looking at the Ultra-compact power module "HLK-PM01" to step down 230V within the enclosure.
I have not tested this yet, as i was also hoping that someone could recommend something more efficient? Perhaps a few caps or diodes to improve the circuit? Im not clued up enough to know all the options, but i do know enough to do what needs to be done with provided info, plus its simple logic to understand a circuit.
Would greatly appreciate the help. Thanks