When using a raspberry pi 3 model b i just have to add the following lines in boot config txt.
Raspberry pi 3 fan gpio.
The easiest way to make a hole for the fan is to use a 1 1 8 hole saw drilling slowly.
This gpio pinout is an interactive reference to the raspberry pi gpio pins and a guide to the raspberry pi s gpio interfaces.
Dtoverlay gpio fan dtparam gpiopin dtparam temp millicelsius gpiopin is the gpio pin bcm value used as the output signal default 12.
Raspberry pi 4 fan iuniker raspberry pi cooling fan 30x30x7mm brushless cpu cooling fan for raspberry pi 4 model b 3 b pi 3 pi 2 pi 1 b retroflag nespi case 2 pack 4 5 out of 5 stars 276 7 99 7.
If you d like your fan to only run when needed based on pi temperature check out our raspberry pi fan controller guide.
Temp is the minimum temperature in millicelsius at which the gpio pin activates default 55000.
Prior to the pi 1 model b 2014 boards comprised a shorter 26 pin header.
If you love pinout please help me fund new features and improvements.
It plugs directly into the pi s gpio pins and needs no modifications.
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.
The raspberry pi gpio pinout guide.
Pinout also includes dozens of pinouts for raspberry pi add on boards hats and phats.
I purchased a pi fan came in a 2 pack from amazon since it fits nicely above the board and comes with the proper screws for mounting.
Connect the fan s red wire to gpio pin 4 5v and the black wire to gpio pin 6 ground.
The fan should receive power automatically when the pi is booted.
Plug the fan directly into your raspberry pi s 5v gnd gpio power pins as shown for instant cooling.
Place in your case or even better on top of your pi s cpu to give it extra air flow.
The raspberry pi has two i2c connections at gpio 2 and 3 sda and scl are for i2c0 master and physical pins 27 and 28 are i2c pins that enable the pi to talk to compatible hat hardware.
A 40 pin gpio header is found on all current raspberry pi boards unpopulated on pi zero and pi zero w.