{"id":222,"date":"2020-09-26T13:33:12","date_gmt":"2020-09-26T13:33:12","guid":{"rendered":"https:\/\/dft.wiki\/?p=222"},"modified":"2026-06-09T14:40:48","modified_gmt":"2026-06-09T18:40:48","slug":"fanshim-with-raspberry-pi-4","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=222","title":{"rendered":"FanSHIM with Raspberry Pi 4"},"content":{"rendered":"<p>Heat dissipation can strongly affect the performance of your Raspberry Pi because it has built-in protection that reduces the processor clock rate to prevent hardware damage caused by overheating.<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/files\/fanshim-comparison.jpg?v=1562943121\" alt=\"\" \/><\/figure>\n<p>There are many passive and active cooling solutions to keep your CPU temperature down, but one stands out because it gives you direct control over the accessory and opens up many additional possibilities. It is called FanSHIM!<\/p>\n<p>FanSHIM [<a href=\"https:\/\/learn.pimoroni.com\/tutorial\/sandyj\/getting-started-with-fan-shim\">https:\/\/learn.pimoroni.com\/&#8230;fan-shim<\/a>] &#8211; Official site with instructions for assembly, installation, configuration, and Python programming templates to control the device.<\/p>\n<pre>sudo apt install git python3-pip -y\r\ngit clone https:\/\/github.com\/pimoroni\/fanshim-python\r\ncd fanshim-python<\/pre>\n<p>For Raspberry Pi OS, follow the steps below. If you are on Ubuntu 22.04, check the bonus section before proceeding.<\/p>\n<pre>sudo .\/install.sh\r\ncd examples\r\nsudo .\/install-service.sh --on-threshold 55 --off-threshold 40 --delay 1 --preempt --noled --nobutton\r\nsudo systemctl stop pimoroni-fanshim.service\r\nsudo systemctl disable pimoroni-fanshim.service\r\nsudo systemctl enable pimoroni-fanshim.service\r\nsudo systemctl start pimoroni-fanshim.service<\/pre>\n<p>It also has an RGB (Red Green Blue) LED that can be controlled through software using the Python libraries.<\/p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" class=\"wp-image-503\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/image.png\" alt=\"\" \/><\/figure>\n<p>If your project will be running standalone as a print server, file server, web server, or similar, without regular handling or testing, it is recommended to solder the terminals.<\/p>\n<p>The manufacturer claims soldering is not required, but I experienced poor contact at the terminals, which caused the fan to stay always on and the LED to stop working.<\/p>\n<p>Soldering also keeps the board firmly positioned above the processor. I also experienced noise from the fan vibrating against the heatsink. Before soldering, place something underneath the fan to create a small gap between the parts.<\/p>\n<p>Now it runs completely silently and only when needed!<\/p>\n<hr \/>\n<p><strong>BONUS<\/strong><\/p>\n<p>Dependencies for <strong>Ubuntu 22.04<\/strong>.<\/p>\n<pre>sudo apt install python3-rpi.gpio python3-metaconfig python3-dev libmysqlclient-dev python3-pip -y\r\nsudo pip3 install configparser<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Heat dissipation can strongly affect the performance of your Raspberry Pi because it has built-in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-222","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=222"}],"version-history":[{"count":12,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions"}],"predecessor-version":[{"id":5833,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions\/5833"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}