ZP-0213
ABS Case for Raspberry Pi 4B
Description
The Black ABS Enclosure for Raspberry Pi 4B is a sleek and protective housing designed specifically for the Raspberry Pi 4B model. Crafted from high-quality ABS material, this enclosure not only safeguards the delicate PCB circuit board from dust, moisture, and physical damage but also enhances the aesthetic appeal of your Raspberry Pi setup. Its black color and refined design complement the modern look of the Raspberry Pi 4B, making it an ideal choice for both functional and stylish enclosures.
Features:
- Compatibility: Exclusively designed for Raspberry Pi 4B, ensuring a perfect fit and full coverage for the device.
- Durability: Made from robust ABS plastic, the enclosure is built to withstand daily wear and tear, providing long-lasting protection for your Raspberry Pi 4B.
- Aesthetics: The black color and clean lines of the enclosure give the Raspberry Pi 4B a professional and polished appearance, suitable for any environment.
- Fan Included: The package comes with an adjustable-speed fan that supports PWM signal control, allowing for precise regulation of fan speed to manage heat efficiently.
- Flexible Operation: The fan can be operated in two modes - programmatically controlled via PWM signal for customized cooling solutions, or in Full Speed mode by simply connecting VCC and GND pins for continuous high-speed operation.
- Easy Assembly: The enclosure is designed for easy assembly, requiring no special tools or complex instructions, making it accessible for users of all skill levels.
- Enhanced Cooling: The included fan helps maintain optimal operating temperatures, extending the life of your Raspberry Pi 4B and ensuring stable performance.
- Slim Profile: Despite its protective capabilities, the enclosure maintains a slim profile, ensuring that it does not add bulk to your Raspberry Pi 4B setup.
- Ventilation: Strategically placed vents on the enclosure facilitate airflow, preventing overheating and ensuring the longevity of your device.
- Accessories: The enclosure may come with necessary screws and standoffs to secure the Raspberry Pi 4B in place, ensuring a secure fit and easy installation.
This Black ABS Enclosure for Raspberry Pi 4B is the perfect blend of functionality and style, offering a reliable shield for your device while also enhancing its visual appeal.
Gallery
- Product Outlook
- Port Definitions
- Dimension
- Decoration
- Application Scenario
How to assemble it?
- Fix the Fan with 4 self-tap screws
- Paste heatsinks after peeling off the protection films.
- Fix Raspberry Pi 4B to the bottom case via self-tap screws.
- Connect the Red wire to Raspberry Pi 4B's GPIO Pin on 5V Pin.
- Connect the Black wire to Raspberry Pi 4B's GPIO Pin on GND Pin.
- Connect the Blue wire to Raspberry Pi 4B's GPIO Pin on GPIO18(Or RX Pin).
NOTE: The fan will not spinning if you connect the Blue wire but did not sending signal from your Raspberry Pi 4B. the Fan need to be controlled by using PWM signal or just control it by operating system itself. but you still need to set it up by using `sudo raspi-config` tool. more information please refer to How to configure the fan section below.
Please refer to following figure to set it up.
How to connect the fan to Raspberry Pi 4B?
- If you don't want to control your fan via sending PWM signal from Raspberry Pi, please disconnect the blue wire. the fan will be running in full speed mode when you connect the red wire to 5V pin, and it will be running in quite cooling mode if you connect the red wire to 3.3V pin and disconnect the blue wire.
Package Includes
How to configure the fan?
Preparation
- Assuming you are using the official Raspberry Pi operating system, Raspberry Pi OS, and it is the latest version.
- OS image Download: [ https://downloads.raspberrypi.com/raspios_arm64/images/raspios_arm64-2024-07-04/2024-07-04-raspios-bookworm-arm64.img.xz ]
- How to flash image to MicroSD card, please refer to: [ https://www.raspberrypi.com/documentation/computers/getting-started.html ]
Setup fan configuration
- Turn on Raspberry Pi 4B and login to desktop.
- Open a terminal and typing:
sudo raspi-config
and then follow following steps to set it up. Navigate to `4 Performance Options`
and then to `3 Fan`:
14 means your fan blue wire has been connected to GPIO14 pin on Raspberry Pi 4B's GPIO Pin.
- The temperature's range is from 60 to 80, the 60 is the lowest option.
- Do remember restart your Raspberry Pi 4B to take effect.
SETTING THE PWM SETTINGS
- 1. In Raspbian, open the Terminal App
- 2. Go to the root directory and Open the file:
/boot/firmware/config.txt file
- 3. Open and edit the "config.txt" file by typing:
sudo nano config.txt
- 4. Add the line:
dtoverlay=gpio-fan,gpiopin=14,temp=55000
- 5. Save changes and exit by pressing Ctrl+X.
This setting will start the Fan at CPU Temp 55 degrees Celcius(temp=55000).
You may set your desired fan initiation temperature as you desire.
How to control the fan speed automatically by using CPU's Temperature?
- 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)) >= 40: 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
- ABS case for Raspberry Pi 4B, Raspberry Pi ABS case, ABS case with speed adjustable fan, fan speed control on Raspberry Pi 4B.