Raspberry Pi 4 Case Fan (CE07370)

This is a placeholder topic for “Raspberry Pi 4 Case Fan” comments.



The Raspberry Pi 4 Case Fan works with Raspberry Pi 4 and the Raspberry Pi 4 Case. Designed for overclockers and other power users, it keeps your Raspberry Pi 4 at a comfortable operating temperature even under heavy load.

Read more

Hello! I was just wondering if there was a downloadable script for the Raspberry Pi 4 Case Fan (a script like the one for the Argon One fan). I know how to use it with Raspberry Pi OS but I would like to use some other Linux distros. Thank you!

1 Like

Hi Willem,

All you’d have to do would be to turn on and off the control pin on the Pi that the fan plugs into.

Someone made a simple script for this, you’ll just have to double check that running the gpio and vcgencmd command will work in your OS:

#!/bin/bash
ontemp=48
gpio -g mode 3 out
temp=$(vcgencmd measure_temp | egrep -o '[0-9]*\.[0-9]*')
echo $temp #use BCM pin 3, as pin 2 is used for PSU control
temp0=${temp%.*}
echo $temp0

if [ $temp0 -gt $ontemp ] 
then
	echo greater than $ontemp fan on
	gpio -g write 3 1
else
	echo less than or equal to  $ontemp fan off
	gpio -g write 3 0
fi

All the best with your cool Pi!
-James

1 Like

Thanks for your help! I appreciate your time.

1 Like