{"product_id":"tall-aluminium-heatsink-fan-for-raspberry-pi-compute-module-4-cm4","title":"Tall Aluminium Heatsink \u0026 Fan for Raspberry Pi Compute Module 4 (CM4)","description":"\u003cp\u003eThis tall heatsink + programmable fan combo for the Raspberry Pi Compute Module 4 is the ideal choice for those looking for the ultimate cooling aid for their CM4 whilst having control over fan noise via code.\u003c\/p\u003e\n\u003cp\u003eStanding at 17mm tall (from the base mounting points), this unit will cool your CM4 silently until your set temperature threshold, at which point the fan will kick in as the heatsink's trust sidekick! The CM4 heatsink comes with fixings, thermal tape and a mini-screwdriver.\u003c\/p\u003e\n\u003cp\u003eThe fan has three wires, 5V, GND and a signal wire that is intended for GPIO18 (Physical pin 12) to allow PWM (code) control of the fan speed\/activity. The heatsink is intended to be installed on the Raspberry Pi Compute Module 4 IO board as this provides a pin connection.\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eA \u003c\/span\u003elow-profile CM4 heatsink\u003cspan\u003e and a \u003c\/span\u003etall version without a fan\u003cspan\u003e is also available.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2\u003eFeatures\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eDesigned for the Compute Module 4\u003c\/li\u003e\n\u003cli\u003eUltimate cooling with both a heatsink and fan\u003c\/li\u003e\n\u003cli\u003eEasy to install\u003c\/li\u003e\n\u003cli\u003eCNC machining\u003c\/li\u003e\n\u003cli\u003eExcellent heat dissipation\u003c\/li\u003e\n\u003cli\u003eAdjustable speed fan\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003ePackage Contents\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e1 x Aluminum Alloy CNC Heat Sink with Fan for Raspberry Pi CM4 Module\u003c\/li\u003e\n\u003cli\u003e1 x Screw Driver\u003c\/li\u003e\n\u003cli\u003e4 x M2.5 Screw\u003c\/li\u003e\n\u003cli\u003e4 x M2.5 Nuts\u003c\/li\u003e\n\u003cli\u003e4 x Thermal Pad\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eCM4 and IO board not included\u003c\/strong\u003e\u003c\/p\u003e\n\u003ch2\u003eAssembly\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eApply the thermal pads to the CM4 module\u003c\/li\u003e\n\u003cli\u003eFix the heatsink as per the image below\u003c\/li\u003e\n\u003cli\u003eFit the CM4 module into the IO board\u003c\/li\u003e\n\u003cli\u003eConnect the Red wire to 5V on GPIO Pin\u003c\/li\u003e\n\u003cli\u003eConnect the Black wire to GND on GPIO Pin\u003c\/li\u003e\n\u003cli\u003eConnect the Blue wire to GPIO14 (TXD) on GPIO Pin (physical pin 8)\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eNOTE\u003c\/strong\u003e: Please beware of the direction of the screws and nuts\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0176\/3274\/files\/raspberry-pi-4-cm4-tall-heatsink-and-fan_7.jpg?v=1631881791\u0026amp;width=700\" alt=\"Raspberry Pi Compute Module 4 heatsink and fan assembly\"\u003e\u003c\/p\u003e\n\u003ch2\u003eEnable Automatic Fan Adjustment\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eTurn on Raspberry Pi and log in\u003c\/li\u003e\n\u003cli\u003eOpen a terminal and type:\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cpre style=\"padding-left: 40px;\"\u003esudo raspi-config\u003c\/pre\u003e\n\u003cul\u003e\n\u003cli\u003eNavigate to (4) Performance Options \u0026gt; P4 Fan and select YES \u0026gt; Input or keep it as 14 \u0026gt; OK \u0026gt; input temperature in degrees should the fan turn on, for example: I'd like to turn on the fan when the temperature reacheds 65 degrees, input 65 and press Enter\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eEnabling the Fan via Programming\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eMake sure the RPi.GPIO library has been installed\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cpre style=\"padding-left: 40px;\"\u003e pip freeze |grep RPi.GPIO \u003c\/pre\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003eIf the feedback is similar to below (showing a version number), it means the library is installed:\u003c\/p\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cpre style=\"padding-left: 40px;\"\u003eRPi.GPIO==0.7.0\u003c\/pre\u003e\n\u003cul\u003e\n\u003cli\u003eOpen a terminal and create a file named: pwm-fan-control.py\u003c\/li\u003e\n\u003cli\u003eCopy and paste the following code into the file and save it:\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cpre\u003eimport RPi.GPIO as GPIO import time import subprocess GPIO.setmode(GPIO.BCM) GPIO.setup(14, GPIO.OUT) pwm = GPIO.PWM(14,100) print(\"\\nPress Ctrl+C to quit \\n\") dc = 0 pwm.start(dc) try: while True: temp = subprocess.getoutput(\"vcgencmd measure_temp|sed 's\/[^0-9.]\/\/g'\") if round(float(temp)) \u0026gt;= 65: dc = 100 pwm.ChangeDutyCycle(dc) time.sleep(0.05) else: dc = 0 pwm.ChangeDutyCycle(dc) time.sleep(0.05) except KeyboardInterrupt: pwm.stop() GPIO.cleanup() print(\"Ctrl + C pressed -- Ending program\")\u003c\/pre\u003e\n\u003cul\u003e\n\u003cli\u003eExecute it by typing:\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cpre\u003epython3 pwm-fan-control.py \u003c\/pre\u003e\n\u003cul\u003e\n\u003cli\u003eThe fan will turn on when the CPU temperature reaches 65 degrees\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"52Pi","offers":[{"title":"Default Title","offer_id":48624228860122,"sku":"pdj1789687269767","price":7.22,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0824\/8318\/3834\/files\/tall-aluminium-heatsink-fan-for-raspberry-pi-compute-module-4-cm4_1.jpg?v=1789687278","url":"https:\/\/memoryfoamwear.shop\/products\/tall-aluminium-heatsink-fan-for-raspberry-pi-compute-module-4-cm4","provider":"My Store","version":"1.0","type":"link"}