I have a spare Raspberry pi Model B rev2 laying around which i use for various projects. I wanted to install a mini 5v fan on top of it because it gets a bit hot during the summer.
Now i want to be able to control the fan with a python script, instead of it being on all the time using the raspberry pins (5v, ground).
I had a spare 2 channel relay so i thought i can use that to turn the fan on/off.
So i connected the relay to the 5v, ground and GPIO 3 on the pi and with a simple python script i can turn on/off the relay.
Now my question is...how can i connect the fan also on the relay so that the raspberry powers up the fan, instead of using an external power source.
Do i just hook up the 2nd 5v pin on the pi ? And what about the Ground pin ? Its occupied now by the relay ground pin ?
My relay's jumper is set to JD-VCC, VCC.