The board I bought worked for a while then died suddenly, upon closer inspection I found a hardware flaw in the design. The problem is that when the transistor that turns on the relay is not powered the led diode is backward biased with the difference between 12V and 5V (the power goes through the relay coil, which is just a piece of wire with hundred of ohms resistance in this case) which fries the led diode sooner or later. On the board I had the dead diode fried the AMS1117 stabilizer which passed 12V to the CPU and the CPU died as well.
Fortunately the fix is rather easy, we just need to power the led from 12V instead:
The board I bought worked for a while then died suddenly, upon closer inspection I found a hardware flaw in the design. The problem is that when the transistor that turns on the relay is not powered the led diode is backward biased with the difference between 12V and 5V (the power goes through the relay coil, which is just a piece of wire with hundred of ohms resistance in this case) which fries the led diode sooner or later. On the board I had the dead diode fried the AMS1117 stabilizer which passed 12V to the CPU and the CPU died as well.
Fortunately the fix is rather easy, we just need to power the led from 12V instead: