Following up from this thread : Raspberry pi Model B - Control a mini fan
I found a relay switch that I had laying around... so I thought since I can control the relay with python, then why not attaching the 5v fan on the relay so I can control it. (basically I want to be able to switch 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/pi so that the raspberry powers up the fan as well, instead of using an external power source.
Do I just hook up the 2nd 5v pin from the pi on it? (through the relay)
And what about the Ground pin? Its occupied now by the relay ground pin?
Can I just put 2 cables on the same pin?
My relay's jumper is set to JD-VCC, VCC.