Pimoroni Fan SHIM
By Jo Hinchliffe. Posted
This article was originally published as part of HackSpace magazine, which has since been incorporated into Raspberry Pi Official Magazine.

It’s a much-discussed fact that the Raspberry Pi 4 is a great performer, but if you push your little computer to the limit, it gets a bit hot. Many Raspberry Pi 4 users have added fans to their systems, coming up with all manner of DIY mounts. However, Pimoroni offer a very elegant-looking solution off the shelf: the ‘Fan SHIM’.
The Fan SHIM kit includes a clever way to non-permanently but securely mount the fan, without any soldering. Pimoroni have also developed a software library which offers some simple ways to automate fan control settings as well as providing a platform for if you want to tinker with the settings more deeply.
We ordered a Fan SHIM which arrived very quickly and came well-packed in a nice branded box. Inside the box, the Fan SHIM is a tiny, thin PCB – the fan is a separate item. The fan is wired to a small JST connector, with the wires neatly protected with heat-shrink tubing. You’ll also find a small bag containing some nylon nuts and bolts, plus the obligatory spare set for when you lose one in your carpet.
Advertisement
Introducing the smarter desktop: use cloud apps, thin clients, and get real work done on a Raspberry Pi. Also in the magazine we’re building a digital jukebox, controlling a robot arm, storing…
There are some instructions on the Pimoroni website about how to assemble the Fan SHIM, but it’s simple enough. Two bolts are inserted up through the PCB, and a nut is tightened down on them to act as a spacer to lift the fan slightly off the PCB. Then the fan is fitted with the wires facing the lower side of the Fan SHIM. Two nuts are then run down on top of the remaining bolt thread to clamp the fan in place. Noting the orientation of the wires the JST is connected to is quite fiddly, but in the end, we did this with a pair of tweezers as it’s such a small connector.

The Fan SHIM can now be fitted to Raspberry Pi 4; it uses a friction fit over the Raspberry Pi’s header pins to hold it in place, so requires no soldering. Powering on the Raspberry Pi and without making any changes or installing anything, the fan starts running straight away. It was good to note that it was very quiet, barely perceivable at all.
Of course, we might not want the fan to be on all the time, so setting it up to automatically turn on and off at certain temperatures, akin to a regular laptop computer fan, was our next step. The team at Pimoroni have written a small Python library for fan control, and again the instructions online give you an easy-to-follow guide to installing and configuring the settings using the terminal app in Raspbian.
In the library example to automate the fan, the user can change the thresholds of what temperature the fan turns on, turns off, and how often it checks the temperature. It’s also set up to use the on-board LED to give visual feedback, from green to red, to indicate the temperature of the computer. You can also, using the example given, use the button on the side of the Fan SHIM to manually override the automated settings and turn the fan on and off. If you find an automatic set of settings you like, they will persist, and the Raspberry Pi will start the service on subsequent boot ups.

We found the fan to be effective as well. We set a load of YouTube videos running in numerous browser tabs and set the fan to kick in at 50 degrees and to turn off at 40 degrees which it did perfectly, and it only had to run for a minute or so to bring the temperature down. It really is a quick and effective solution. One thing that is worth considering is that the tactile button on the side of the Fan SHIM protrudes the edge of the Raspberry Pi footprint. While this is accommodated for in Pimoroni cases for Raspberry Pi 4, we have an aluminium case from another vendor which doesn’t have space for the button (yet – we have our rotary tool primed and ready).
With the latest firmware, Raspberry Pi 4 doesn’t overheat unless it’s under heavy load, but if you’re doing some serious number crunching, the Fan SHIM is a good cooling option that doesn’t take up too much space.
Pimoroni £9.60 shop.pimoroni.com
VERDICT
A small, elegant solution to Raspberry Pi 4 cooling.
9/10
Maker, talker, and passionate about all things DIY space
Subscribe to Raspberry Pi Official Magazine
Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.
More articles

Picocomputer 6502
The Picocomputer 6502 is truly open-source hardware: just download the design files from GitHub, send them to the PCB manufacturing service of your choice, slot in the components (which are all common and available from, among others, Mouser), and you’ve got a machine that will bring a tear to the eye of anyone who played […]
Read more →

CrowPi 3 review
An electronics playground with added AI lessons for Raspberry Pi, Pico, and more.
Read more →

Network mapper
It’s not as efficient as reading a table of figures, but we love this display anyway.
Read more →
Sign up to the newsletter
Get every issue delivered directly to your inbox and keep up to date with the latest news, offers, events, and more.