The pump is powered by a transformer which takes a standard kettle lead. I've trimmed the lead and exposed the wires and cut the live (brown) wire. I've plugged that into the COM + NO1 (Normally open) header, the kettle lead is then plugged into the pumps transformer and that is plugged into the pump.
In my setup() I switch all power pins OFF, the switch them to OUTPUT. In my loop I switch the appropriate power pin LOW to close the circuit and the pump fires up. After 15 seconds I flip it to HIGH to open the circuit and pump turns off. I then wait for 6 minutes and repeat the cycle indefinitely
However what I am seeing is that after 1 or 2 cycles the pump stops turning off. I'm guessing this has something to do with some voltage kick back when the I cut the circuit to the transformer. I'm an electronics novice so am just guessing based on the research I've done.
Arduino UNO is powered by 5V USB Adapter, Power Relay Shield is powered by 9V Adapter generating 640mA. The transformer powering my pump says it outputs 12V 2A. Could I be overloading the power relay in some way which is preventing it from turning off? Kettle lead is plugged into standard wall socket, then connected to power relay and subsequently pump's transformer
Warning noted but it would have been more useful if it included why what I'm doing is dangerous and what I should do/read-up on next. I'm happy to put in the ground work but I'm a complete novice at this right now.
I've been programming for quite a while but this my first real foray into controlling electronics. Given same thing worked for a lamp when I was testing my code I (naively) assumed it would hold for the pump's kettle lead.
I'm not sure how much current the pump is drawing. The transformer outputs 12V DC 2A does that help. I really need to get a multi-meter.