Difference between revisions of "ZP-0112"

From 52Pi Wiki
Jump to navigation Jump to search
(How to Assemble)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Aluminum Alloy CNC Heat Sink with Fan for Raspberry Pi CM4 Module==
 
==Aluminum Alloy CNC Heat Sink with Fan for Raspberry Pi CM4 Module==
 +
[[File:ZP-0112-1(2).jpg|right|320px]]
 +
 
==Description==
 
==Description==
 
This is an aluminum alloy heat sink, which is only suitable for Raspberry Pi computer modules.<br>
 
This is an aluminum alloy heat sink, which is only suitable for Raspberry Pi computer modules.<br>
Line 24: Line 26:
 
<pre>Note: The Raspberry Pi CM4 Module and IO board is not included in product.</pre>
 
<pre>Note: The Raspberry Pi CM4 Module and IO board is not included in product.</pre>
 
[[File:ZP-0112-3.jpg|left|500px]]
 
[[File:ZP-0112-3.jpg|left|500px]]
 +
<br style="clear:both;">
 +
* Pin Definitions
 +
[[File:ZP-0112-8.jpg|left|500px]]
 +
<br style="clear:both;">
 +
* How to connect fan
 +
[[ File:Zp0112howtowire.jpg|left|500px]]
 
<br style="clear:both;">
 
<br style="clear:both;">
  
Line 39: Line 47:
 
* Fix heat sink as following pictures
 
* Fix heat sink as following pictures
 
* Snap the CM4 module into the IO board
 
* Snap the CM4 module into the IO board
 +
* Connect Red wire to 5V on GPIO Pin
 +
* Connect Black wire to GND on GPIO Pin
 +
* Connect Blue wire to GPIO14 (TXD) on GPIO Pin (Similar with Raspberry Pi 4B GPIO PINOUT)
 
<font color=red><pre>NOTE: Please beware of the direciton of the screws and nuts</pre></font>
 
<font color=red><pre>NOTE: Please beware of the direciton of the screws and nuts</pre></font>
 
{|
 
{|
Line 46: Line 57:
 
|}
 
|}
  
 +
==How to enable auto adjustable fan==
 +
* Turn on Raspberry Pi and login.
 +
* Open a terminal and typing:
 +
<pre>sudo raspi-config</pre>
 +
* Navigate to <b>4 Performance Options</b> -> <b>P4 Fan </b> and select <b>YES</b>-> Input or keep it as <b>14</b>-><b>OK</b>->input temperature in degrees should the fan turn on, for example: I'd like turn on the fan when the temperature reached to 65 degrees, input 65 and press Enter.
 +
==How to enable it via Programming==
 +
* Make sure RPi.GPIO library has been installed.
 +
<pre>  pip freeze |grep RPi.GPIO </pre>
 +
If feedback is: <pre>RPi.GPIO==0.7.0</pre> means library is OK.
 +
* Open a terminal and create a file named: pwm-fan-control.py
 +
* Copy and paste following code into the file and save it.
 +
<pre>
 +
import 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)) >= 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")
 +
</pre>
 +
* Execute it by typing:
 +
<pre>python3 pwm-fan-control.py </pre>
 +
* The fan will be turned on when the CPU temperature is reached to 65 degrees.
 
==Keywords==
 
==Keywords==
 
* Aluminum Alloy CNC Heat Sink with Fan for Raspberry Pi CM4 Module, Aluminum heat sink for CM4, Raspberry Pi CM4 heat sink with fan, heat sink with fan for CM4
 
* Aluminum Alloy CNC Heat Sink with Fan for Raspberry Pi CM4 Module, Aluminum heat sink for CM4, Raspberry Pi CM4 heat sink with fan, heat sink with fan for CM4

Latest revision as of 19:18, 27 August 2021

Aluminum Alloy CNC Heat Sink with Fan for Raspberry Pi CM4 Module

ZP-0112-1(2).jpg

Description

This is an aluminum alloy heat sink, which is only suitable for Raspberry Pi computer modules.
It adopts passive heat dissipation and has good heat dissipation performance.
Active fan cooling mode, faster cooling.

Features

  • Easy to install
  • CNC machining
  • Accurate matching of heat dissipation contact surface
  • Good heat dissipation
  • Adjustable speed fan

Gallery

  • Product Outlook
ZP-0112-1(2).jpg
ZP-0112-1.jpg
  • Dimension of Product
ZP-0112-4-01 (2).jpg


  • The overall appearance and interface information after connecting with the IO board
Note: The Raspberry Pi CM4 Module and IO board is not included in product.
ZP-0112-3.jpg


  • Pin Definitions
ZP-0112-8.jpg


  • How to connect fan
Zp0112howtowire.jpg


Package Includes

  • 1 x Aluminum Alloy CNC Heat Sink with Fan for Raspberry Pi CM4 Module
  • 1 x Screw Driver
  • 4 x M2.5 Screw
  • 4 x M2.5 Nuts
  • 4 x Thermal Pad
ZP-0112-2.jpg


How to Assemble

  • Paste thermal pad to CM4 module(RPi)
  • Fix heat sink as following pictures
  • Snap the CM4 module into the IO board
  • Connect Red wire to 5V on GPIO Pin
  • Connect Black wire to GND on GPIO Pin
  • Connect Blue wire to GPIO14 (TXD) on GPIO Pin (Similar with Raspberry Pi 4B GPIO PINOUT)
NOTE: Please beware of the direciton of the screws and nuts
ZP-0112-5 (2).jpg
ZP-0112-6.jpg
ZP-0112-3.jpg

How to enable auto adjustable fan

  • Turn on Raspberry Pi and login.
  • Open a terminal and typing:
sudo raspi-config
  • Navigate to 4 Performance Options -> P4 Fan and select YES-> Input or keep it as 14->OK->input temperature in degrees should the fan turn on, for example: I'd like turn on the fan when the temperature reached to 65 degrees, input 65 and press Enter.

How to enable it via Programming

  • Make sure RPi.GPIO library has been installed.
  pip freeze |grep RPi.GPIO 

If feedback is:

RPi.GPIO==0.7.0

means library is OK.

  • Open a terminal and create a file named: pwm-fan-control.py
  • Copy and paste following code into the file and save it.
import 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)) >= 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")
  • Execute it by typing:
python3 pwm-fan-control.py 
  • The fan will be turned on when the CPU temperature is reached to 65 degrees.

Keywords

  • Aluminum Alloy CNC Heat Sink with Fan for Raspberry Pi CM4 Module, Aluminum heat sink for CM4, Raspberry Pi CM4 heat sink with fan, heat sink with fan for CM4