2

I've just got a small 5V fan for my Pi, but it is very loud, and I'd like to be able to switch it on/off.

Currently, the fan is just wired to 5V power and ground. I know that I can use the GPIO pins with some other components, but could I just put a switch in the current circuit?

2 Answers 2

1

There is absolutely no danger in adding a switch in order ton control the fan.

If you're going to add a switch in the current loop, I recommend you to do so on the loop returning to ground.

Indeed if you put a simple switch there is no problem in putting the switch between 5V and the fan. But if one day you want to make something more sophisticated like a PWM controlled fan, you will need a transistor. And this transistor is likely to be a mos-Fet canal-N. Which works better (if not only) if on the fan ---> ground side. It works better because the voltage needed at the gate to control it will be less

Hope I'm clear.

I've done it on my, which allow me to control the fan with the GPIO, even no need to touch the raspberry !

0

Yes, you could just add a switch.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.