2

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.

relay pi 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.

Sandbird
  • 163
  • 1
  • 2
  • 11

1 Answers1

-1

I connected the (-)black cable of the fan to the same Ground pin the relay is connected, then i connected the (+)red cable to the relay switch, then the 2nd hole from the relay switch to the same red cable the relay is connected to the pi.

Sandbird
  • 163
  • 1
  • 2
  • 11