ZP-0140: Difference between revisions

From 52Pi Wiki
Jump to navigation Jump to search
Line 10: Line 10:
Other operating systems may require you to write software yourself and send PWM signals to the fan through GPIO pins to control fan’s speed.
Other operating systems may require you to write software yourself and send PWM signals to the fan through GPIO pins to control fan’s speed.
<br><font color=red>
<br><font color=red>
NOTE: Raspberry Pi 4B and M.2 SATA SSD drive are not included in the package, require additional purchase. Please pay attention to the type of your SSD drive, it must be M.2 SATA SSD 2280, The adapter board does not support NVME SSD and NGFF SSD.</font>
NOTE: Raspberry Pi 4B and M.2 SATA SSD drive are not included in the package, require additional purchase. Please pay attention to the type of your SSD drive, it must be M.2 SATA SSD 2280, The adapter board does not support NVME SSD.</font>
[[File:SupportSSDinfo.jpg|left|800px]]
<br styl="clear:both;">


==Features==
==Features==

Revision as of 15:19, 10 March 2023

Aluminum NAS Case with 3510 Ultra-Quiet Cooling Fan

ZP-0140主图.jpg

Descriptions

It is aluminum NAS Case which is supporting Raspberry Pi 4 model B ONLY. It can protect the Raspberry Pi well and dissipate heat well through adjustable-speed fan.

At the same time, there is a M.2 SATA SSD adapter board inside the package, you can build your own NAS device by using this adapter board and M.2 SATA SSD, and it offered an ultra-quiet cooling fan with the heatsink.

We strongly recommend using the official Raspberry Pi operating system, which can directly configure the fan to adjust the speed according to the CPU temperature through the raspi-config command.

Other operating systems may require you to write software yourself and send PWM signals to the fan through GPIO pins to control fan’s speed.
NOTE: Raspberry Pi 4B and M.2 SATA SSD drive are not included in the package, require additional purchase. Please pay attention to the type of your SSD drive, it must be M.2 SATA SSD 2280, The adapter board does not support NVME SSD.

SupportSSDinfo.jpg


Features

  • Easy to assemble
  • Acrylic Top Cover
  • Ultra-Quiet Cooling Fan
  • Adjustable Speed Fan
  • Precise Positioning
  • Beautiful and Stable
  • Support M.2 SATA SSD B Key 2280 Only
  • Support Raspberry Pi 4 model B Only

Gallery

  • Product outlook
Zp-0140-5.jpg


  • Easy to insert and remove TF card
Zp-0140-2.jpg


  • Easy to access to all ports
Zp-0140-1.jpg


  • Dimensions
Zp-0140-3.jpg


  • Good Heat dissipation
Zp-0140-4.jpg


  • Material details
Zp-0140-6.jpg


Package Includes

  • 1 x Aluminum NAS case with Ultra-Quiet cooling fan
  • 1 x Acrylic Top cover
  • 1 x Aluminum bottom cover
  • 1 x 52Pi Mini M.2 SATA SSD Adapter board
  • 1 x USB adapter for SSD adapter board
  • 4 x Copper pillar
  • 2 x M2.5 nut
  • 4 x M2.5 Flat head screw
  • 2 x Thermal Pad
  • 1 x hex wrench
  • 4 x Hexagon socket head screw for Top cover
  • 2 x Rubber anti-slipper pad
  • 1 x Instructions
Zp-0140-清单.jpg


How to assemble

  • 1. Fix 3510 Ultra-quiet Cooling Fan as following figure.
Zp-0140-安装1.jpg


  • 2. Fix M.2 SATA SSD drive to adapter board with the screw onboard, please insert your SSD drive in 45° degree angle.Insert Raspberry Pi 4B and ICE Tower Cooler and adapter board into the case, and fix it with M2.5 Flat head screws. Then insert the USB adapter to USB port and adapter board.Peeling off the protect film from Acrylic Top Cover and fix it with hexagon socket screws.Paste the rubber anti-slipper pad on the bottom of the case.
Zp-0140-安装2.jpg


How to configure PWM fan

We are assuming that you are using Raspberry Pi OS (Official). 1. Press `Ctrl+T` or click terminal Icon to open a terminal and typing: “sudo raspi-config”

0138Step1.png


Navigate to 4 Performance Options

0138Step2.png


and navigate to P4 Fan and select YES.

0138Step3.png


Keep 14 as default.

0138Step4.png


select yes, input a temperature in degrees should the fan turn on, Recommend setting to 60 degrees.

0138Step5.png


select yes and reboot your Raspberry Pi.

0138Step6.png


0138Step7.png


0138Step8.png


If you are using other OS on Raspberry Pi, please refer to how to generate PWM signal in your OS. Here is a demo code, it will help you to control the fan speed according to the temperature of CPU.

Demo code

#File Name: fan_control.py
#!/usr/bin/python3

import RPi.GPIO as GPIO
import time
import subprocess

GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
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)) >= 45:
            dc = 100
            pwm.ChangeDutyCycle(dc)
            print("CPU Temp:",float(temp)," Fan duty cycle:",dc)
            time.sleep(180.0)
        if round(float(temp)) >= 40:
            dc = 85
            pwm.ChangeDutyCycle(dc)
            print("CPU Temp:",float(temp)," Fan duty cycle:",dc)
            time.sleep(120.0)
        else:
            dc = 70
            pwm.ChangeDutyCycle(dc)
            print("CPU Temp:",float(temp)," Fan duty cycle:",dc)
            time.sleep(60.00)

except KeyboardInterrupt:
    pwm.stop()
    GPIO.cleanup()
print("Ctrl + C pressed -- Ending program")

save it and execute it in a terminal:
python3 fan_control.py

How to initialize SSD drive?

1. Check if SSD drive has been recognized by Raspberry Pi. Turn on your Raspberry Pi, we assume that you are using Raspberry Pi official OS, open a terminal and typing:

lsblk 
Ssd1.png


you will see there is a disk named : sda 2. Make partition and format partition to ext4 File system. typing:

sudo fdisk /dev/sda 
Ssd2.png


Typing: “n” and press enter, and then typing: “p” press enter, typing: “1” and then press enter twice, and typing: “w” to save the partition table.

Ssd3.png


format the partition to ext4 file system:

sudo mkfs.ext4 /dev/sda1 
Ssd4.png


3. Mount the file system and configure /etc/fstab to auto-mount the device Create a directory and mount the device to the directory

mkdir ~/mydata
sudo mount -t ext4 /dev/sda1 /home/pi/mydata
sudo chmod 777 /home/pi/mydata 
df -Th 
Ssd5.png


Edit /etc/fstab file. Please edit this file carefully, wrong configure will cause the system booting failure. adding following line: /dev/sda1 /home/pi/mydata ext4 defaults,noatime 0 0 save it and reboot your Pi.

Ssd6.png


4. Install samba software and configure it as NAS Server.

Ssd7.png


Modify /etc/samba/smb.conf file and adding your own share parameter:

Ssd8.png


Ssd9.png


save and restart the service. also enable smbd.service and nmbd.service too.

sudo systemctl enable smbd.service
sudo systemctl enable nmbd.service
sudo systemctl restart smbd.service nmbd.service
Ssd10.png


Access from your laptop or windows PC. Press windows icon + R and typing the IP address of your Raspberry Pi.

Ssd11.png


Ssd12.png


you will access your own NAS service, you can upload and download pictures, music, movies and so on! Enjoy your own NAS device share your stuff with your friends or family in your local network(LAN).


Tech -Support

If you have any question about this product, please kindly contact with us: admin@52pi.com

Keywords

  • Aluminum NAS Case with 3510 Ultra-Quiet Cooling Fan, NAS Case, Raspberry Pi 4B case.