ABS plastic
ABS plastic
85 x 56 x 35 mm (L x W x H)
120g
| + Type | Brushless DC fan |
| + Voltage | 5V |
| + Current | 0.2A |
| + Speed | 2500 RPM |
0C to 40C
Usage Scenarios
| The Raspberry Pi ABS Case with Fan (Back) is ideal for a wide range of projects, including |
IoT projects
Home automation systems
Media centers
Retro game consoles
Robotics and automation projects
Prototyping and development environments
Conclusion
The Raspberry Pi ABS Case with Fan (Back) is a reliable and efficient solution for protecting and cooling your Raspberry Pi project. Its durable construction, precise fit, and built-in fan make it an excellent choice for various IoT and robotics applications.
Raspberry Pi ABS Case with Fan (Back) DocumentationOverviewThe Raspberry Pi ABS Case with Fan (Back) is a protective enclosure designed specifically for the Raspberry Pi single-board computer. This case provides excellent heat dissipation and airflow, thanks to the built-in fan located at the back of the case. This documentation provides an overview of the case's features, technical specifications, and code examples to demonstrate its usage in various contexts.FeaturesCompatible with Raspberry Pi models (A, B, A+, B+, 2B, 3B, 3B+, 4B)
Durable ABS plastic construction
Built-in fan for efficient heat dissipation
Access to all Raspberry Pi ports and interfaces
Easy to assemble and disassemble
Compact design for convenient storage and transportationTechnical SpecificationsMaterial: ABS plastic
Dimensions: 94mm x 60mm x 25mm
Weight: 120g
Fan specifications:
+ Voltage: 5V
+ Current: 0.2A
+ Speed: 2500 RPM
+ Noise level: 20 dBACode Examples### Example 1: Controlling the Fan using PythonThis example demonstrates how to control the fan using Python on the Raspberry Pi. We'll use the `RPi.GPIO` library to access the fan's GPIO pin.Hardware Requirements:Raspberry Pi (any model)
Raspberry Pi ABS Case with Fan (Back)
Jumper wiresSoftware Requirements:Raspbian OS (or any compatible OS)
Python 3.x
RPi.GPIO library (install using `sudo apt-get install python-rpi.gpio`)Code:
```python
import RPi.GPIO as GPIO# Set GPIO mode to BCM
GPIO.setmode(GPIO.BCM)# Define the fan's GPIO pin
FAN_PIN = 18# Set the fan pin as an output
GPIO.setup(FAN_PIN, GPIO.OUT)try:
while True:
# Turn the fan on
GPIO.output(FAN_PIN, GPIO.HIGH)
print("Fan on")
time.sleep(5)# Turn the fan off
GPIO.output(FAN_PIN, GPIO.LOW)
print("Fan off")
time.sleep(5)except KeyboardInterrupt:
GPIO.cleanup()
```
### Example 2: Monitoring Temperature and Controlling the Fan using Node-REDThis example demonstrates how to monitor the Raspberry Pi's temperature and control the fan using Node-RED, a visual programming tool.Hardware Requirements:Raspberry Pi (any model)
Raspberry Pi ABS Case with Fan (Back)
Jumper wiresSoftware Requirements:Raspbian OS (or any compatible OS)
Node-RED (install using `sudo apt-get install nodered`)Flow:1. Create a new Node-RED flow and add the following nodes:
`raspberry-pi` node (to monitor the system temperature)
`debug` node (to display the temperature)
`rpi-gpio` node (to control the fan)
`switch` node (to toggle the fan based on temperature thresholds)
2. Configure the nodes as follows:
`raspberry-pi` node: Set the `Temp` property to `System Temperature`.
`debug` node: Set the ` msg.payload` property to `{{temp}}`.
`rpi-gpio` node: Set the `Pin` property to `18`, `Mode` to `Output`, and `Initial State` to `LOW`.
`switch` node: Set the `Property` to `msg.payload`, `Threshold` to `45`, and `On` and `Off` states to `HIGH` and `LOW`, respectively.
3. Connect the nodes as follows:
`raspberry-pi` node -> `debug` node
`debug` node -> `switch` node
`switch` node -> `rpi-gpio` nodeResult:The fan will turn on when the system temperature exceeds 45C and turn off when it drops below 45C.These examples demonstrate the versatility of the Raspberry Pi ABS Case with Fan (Back) and its potential applications in various IoT projects.