Fan installation and control via TP4 #860
-
Hello, I'm a newbie, I am looking for a way to be able to install 1-2 fans and be able to control it via TP4, as I understand it can be done via Relay I did a lot of research on the internet but it mostly just confused me :( Please help me, with which devices should I buy and how to connect them to RPi, mine is RPi zero 2 W. Currently, I adr have 2 fans with 5v. Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
I used these relays and they work: https://www.ebay.de/itm/155086624324, but you may also use a multichannel relay. Add your relay to TP Sometimes a reboot is needed to make sure changes are used by TP I used jumper cables to connect the following pins of the relay to the Raspberry Pi: Each channel of the relay board has 3 screw terminals, in the middle is usually the input, the right and left one are either open or close in idle state. (use a continuity tester to test). Attach unswitched 5V + to the middle and attach the output channel to your fan. |
Beta Was this translation helpful? Give feedback.
-
Maybe this will help a bit: https://raspberrypi-guide.github.io/electronics/control-electronics-with-a-relay#what-is-a-relay Is you fan a 220 volt or 12 volt? If it is just 12 volt, it is a bit easier and safer :) |
Beta Was this translation helpful? Give feedback.
-
The GPIO pins of the Raspberry Pi deliver only 3.3 V and 16mA each / 51mA in total over all GPIO. That might not be enough even for the 5V fan you mentioned in your initial post. Is there a reason to use a battery? You need a power supply for the Pi anyways. |
Beta Was this translation helpful? Give feedback.
-
I do not think you can use the 5V fan directly at the GPIO pins. The fan with the lowest current I found during a quick search was 0,2A. I would suggest to use a power supply (maybe you have one from an old telephone or LED light) check the V and W it can deliver, connect it to the IRF520 and run your fan with it. You may also buy an new power supply. They cost approx. the price of 2-3 9V blocks. Don't be scared about the wiring. It is simple. |
Beta Was this translation helpful? Give feedback.
I do not think you can use the 5V fan directly at the GPIO pins. The fan with the lowest current I found during a quick search was 0,2A. I would suggest to use a power supply (maybe you have one from an old telephone or LED light) check the V and W it can deliver, connect it to the IRF520 and run your fan with it. You may also buy an new power supply. They cost approx. the price of 2-3 9V blocks. Don't be scared about the wiring. It is simple.