Raspberry Pi 5v Fan Gpio
Plug the fan directly into your raspberry pi s 5v gnd gpio power pins as shown for instant cooling.
Raspberry pi 5v fan gpio. The raspberry pi has two 5v pins but they re always on. Prior to the pi 1 model b 2014 boards comprised a shorter 26 pin header. Pinout the output will be something like. The 5v power pins are connected directly to the pi s power input and will capably provide the full current of your mains adaptor less that used by the pi itself.
The raspberry pi has 40 gpio pins that connect to sensors lights motors and other devices. Connect the fan s header to the correct gpio pins of your raspberry pi see below 9. Https pinout xyz or type pinout at the command line are variable 3v3 you can configure them to control a 5v supply with a gpio pin use a transistor. Gpio pinout diagram next time you plug in the pi the fan should start spinning right away.
Any of the gpio pins can be designated in software as an input or output pin and used for a wide range of purposes. Close the case and screw it shut with the remaining black screws. Compatible with any and all raspberry pi computers but only the pi 3 runs hot enough to benefit from any cooling when doing intense computations. A 40 pin gpio header is found on all current raspberry pi boards unpopulated on pi zero and pi zero w.
Connect the fan s red wire to gpio pin 4 5v and the black wire to gpio pin 6 ground. When you re putting the pi back into the case put it in as normal then connect the red wire from the pan to the pi s pin 4 5v and the black wire to the pi s pin 6 ground. Place in your case or even better on top of your pi s cpu to give it extra air flow. There are also 3v3 pins which are always on but the ones marked gpio on pinout diagrams e g.
The fan should receive power automatically when the pi is booted. If your fan is a 5v fan you need 5v or 3v for slow spinning and ground pins. Raspberry pi has an utility called pinout which tells you the phisical layout of your board. Don t be disuaded by what sounds like a measly low voltage.
With a decent power supply such as the official pi adaptor you can expect to pull about 1 5a. Screw the 5v fan into the inside of case making sure that you copy the orientation of both the fan and lid below. If you d like your fan to only run when needed based on pi temperature check out our raspberry pi fan controller guide.