ImI'm building a small project where I will control a 12V water pump with my raspberry Pi.
I have made a small sketch of what I imagine should be a correct setup, but have been reading about the need for a flyback diode. N
ow I'm new to electricity, so I'm not sure how to connect this. I just bought a pack of 1N4007-diodes, but how diodes. How should I connect it so that it protects my raspberryRaspberry Pi/relay from any arcs?
Also, I have the following relay:
Should I remove the jumper between COM/GND to separate the two power sources through the optocoupler?
Appreciate any help on this, thanks!