ZP-0110: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==3510 adjustable speed fan heat sink for Raspberry Pi 4B== right|320px ==Description== This is a thin and lightweight heat sink, equipped with a 3510 ult...") |
|||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== | ==Armor lite heatsink with pwm fan for Raspberry Pi 4B== | ||
[[File: | [[File:精修风扇1.jpg|right|320px]] | ||
==Description== | ==Description== | ||
This is a thin and lightweight heat sink, equipped with a 3510 ultra-quiet cooling fan, and the fan supports PWM speed regulation, which is perfectly compatible with Raspberry Pi OS. Other systems need to manually write python or C code to drive the fan speed through PWM.<br> | This is a thin and lightweight heat sink, equipped with a 3510 ultra-quiet cooling fan, and the fan supports PWM speed regulation, which is perfectly compatible with Raspberry Pi OS. Other systems need to manually write python or C code to drive the fan speed through PWM.<br> | ||
Line 13: | Line 14: | ||
* Product Outlook | * Product Outlook | ||
{| | {| | ||
|[[File: | |[[File:精修风扇1.jpg|left|320px]] | ||
|[[ | |[[File:Zp0110back.jpg|none|320px]] | ||
|[[File:Zp0110精修.jpg|none|320px]] | |||
|} | |} | ||
* Specifications | |||
{| | |||
|[[File:精修风扇1.jpg|left|320px]] | |||
|[[File:Detailszp0110.jpg|none|320px]] | |||
|[[File:降温.jpg|none|320px]] | |||
|} | |||
==Package Includes== | ==Package Includes== | ||
* 1 x | * 1 x Armor lite heatsink with pwm fan for Raspberry Pi 4B | ||
* 1 x Screw driver | * 1 x Screw driver | ||
* 2 x M2.5x6mm Screws | * 2 x M2.5x6mm Screws | ||
* 4 x Thermal Pad | * 4 x Thermal Pad | ||
* 1 x Instructions | * 1 x Instructions | ||
[[File:清单图1.jpg|left|320px]] | |||
<br style="clear:both;"> | |||
==How to assemble== | ==How to assemble== | ||
[[File:Zp0110安装1.jpg|left|500px]] | |||
<br style="clear:both;"> | |||
[[File:Zp0110安装2.jpg|left|500px]] | |||
[[File: | |||
<br style="clear:both;"> | <br style="clear:both;"> | ||
==How to enable auto adjustable fan== | ==How to enable auto adjustable fan== | ||
* Turn on Raspberry Pi and login. | * Turn on Raspberry Pi and login. | ||
Line 34: | Line 46: | ||
* 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. | * 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== | ==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== | ||
* | * Armor lite heatsink with pwm fan for Raspberry Pi 4B, PWM fan, adjustable speed fan, heat sink, quiet fan |
Revision as of 15:10, 2 April 2021
Armor lite heatsink with pwm fan for Raspberry Pi 4B
Description
This is a thin and lightweight heat sink, equipped with a 3510 ultra-quiet cooling fan, and the fan supports PWM speed regulation, which is perfectly compatible with Raspberry Pi OS. Other systems need to manually write python or C code to drive the fan speed through PWM.
NOTE: Supports Raspberry Pi 4B Only, Automatic speed control function only supports Raspberry Pi OS.
Features
- Lightweight and silent
- Support PWM control speed regulation
- Compatible with official system configuration
- Easy to install and fix
- Good heat dissipation effect
Gallery
- Product Outlook
- Specifications
Package Includes
- 1 x Armor lite heatsink with pwm fan for Raspberry Pi 4B
- 1 x Screw driver
- 2 x M2.5x6mm Screws
- 4 x Thermal Pad
- 1 x Instructions
How to assemble
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
- Armor lite heatsink with pwm fan for Raspberry Pi 4B, PWM fan, adjustable speed fan, heat sink, quiet fan