{"id":222,"date":"2020-09-26T13:33:12","date_gmt":"2020-09-26T13:33:12","guid":{"rendered":"https:\/\/dft.wiki\/?p=222"},"modified":"2023-03-03T16:19:15","modified_gmt":"2023-03-03T21:19:15","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 embedded protection that reduces the clock rate of the processor to prevent any harm to the hardware 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, static, and dynamically active solutions to keep your CPU temperature down, but one is especially interesting because it gives you the control of the accessory and opens 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, installing, configuring, and templates for Python programming 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 RaspberryPi OS just follow the next steps but if 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 one RGB (Red Green Blue) LED that can be controlled by 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 sitting there executing its duties standalone as a print server, file server, web server, etc but not being manipulated or used for tests it is recommended to solder the terminals.<\/p>\n<p>The manufacture claims it does not require to be soldered but I faced poor contact of the terminals, which led to not control the fan that was always on and the LED was also not lighting up.<\/p>\n<p>Another reason is to make it solid positioned suspended above the processor. I also faced noise due to the vibration of the fan touching the heatsink. Before the soldering, put something underneath the fan to make one gap between the parts.<\/p>\n<p>Now it works absolutely in silence and only on demand!<\/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 embedded [&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":11,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions"}],"predecessor-version":[{"id":3429,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions\/3429"}],"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}]}}