# Pi SSD Media Server

## Overview

https://youtu.be/2f3EQOqmhAg

Build your own media server using Raspberry Pi 4 and an external SSD. Stream live TV and movies with Plex using the Chromium web browser, or install any other network drive / streaming software to run on this all-in-one lunchbox sized Pi-based server

## SSD Media Server

Use an SSD to store all of your media and get blazing fast read and write speeds using a SATA to USB 3.0 cable.

Learn how to create a bootable USB drive for your Raspberry Pi.

![raspberry_pi_pi-ssd-hero.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/563/medium640/raspberry_pi_pi-ssd-hero.jpg?1661804973)

## 3D Printed Case

Build a PC tower inspired 3D printed case. Secure the Pi and extra accessories such as a 1.9in TFT display, 5V fan, 2x buttons and a power switch with an LED.

Side panels attach to the frame making this a modular design for easy access. The case features a handle with a print-in-place hinge for transport.

![raspberry_pi_hero-handle.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/562/medium640/raspberry_pi_hero-handle.jpg?1661804960)

## TFT Display

Use the 1.9in color TFT screen to display your media servers IP address, CPU temperature or memory/disk usage using CircuitPython libraries for Raspberry Pi OS.

Also play looping GIF images on the display and cycle through them using the built-in buttons.

![raspberry_pi_pi-case-tft.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/564/medium640/raspberry_pi_pi-case-tft.jpg?1661805026)

## Extra Features

Customize the side panels to add more features and accessories.

A 5V fan can be mounted to one side of the panels to keep the Raspberry Pi nice and cool.

A 16mm metal pushbutton with built-in LED is mounted to the back side of the case, right above the microSD card slot.

![raspberry_pi_pi-case-fan.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/565/medium640/raspberry_pi_pi-case-fan.jpg?1661805050)

![raspberry_pi_pi-case-power.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/566/medium640/raspberry_pi_pi-case-power.jpg?1661805060)

## SSD Attachment

Secure the 2.5in SSD with standard mounting holes to the 3D printed bracket.

Attach the SSD bracket to the side panel for a secure and reliable external drive.

![raspberry_pi_pi-case.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/569/medium640/raspberry_pi_pi-case.jpg?1661805178)

![](https://cdn-learn.adafruit.com/assets/assets/000/114/561/medium800/raspberry_pi_pi-media-server.jpg?1661804942)

## Prerequisite Guides

Take a moment to browse through the following guides.&nbsp;

- [How to make bootable Rasberry Pi from USB SSD](https://www.tomshardware.com/how-to/boot-raspberry-pi-4-usb)
- [Install CircuitPython on Raspberry Pi](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux)
- [1.9in TFT display python usage](https://learn.adafruit.com/adafruit-1-9-color-ips-tft-display/python-usage)
- [GIF player on TFT displays with Raspberry Pi](https://learn.adafruit.com/pitft-linux-python-animated-gif-player)
- [Heat-set rig for Soldering Irons](https://learn.adafruit.com/heat-set-rig)

# Parts
### Raspberry Pi 4 Model B - 2 GB RAM

[Raspberry Pi 4 Model B - 2 GB RAM](https://www.adafruit.com/product/4292)
The Raspberry Pi 4 Model B is the newest Raspberry Pi computer made, and the Pi Foundation knows you can always make a good thing _better_! And what could make the Pi 4...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4292)
[Related Guides to the Product](https://learn.adafruit.com/products/4292/guides)
![Angled shot of Raspberry Pi 4](https://cdn-shop.adafruit.com/640x480/4292-03.jpg)

### Adafruit 1.9" 320x170 Color IPS TFT Display

[Adafruit 1.9" 320x170 Color IPS TFT Display](https://www.adafruit.com/product/5394)
This lovely little display breakout is the best way to add a small, colorful, and very bright display to any project. Since the display uses 4-wire SPI to communicate and has its own pixel-addressable frame buffer, it can be used with every kind of microcontroller. Even a very small one with...

In Stock
[Buy Now](https://www.adafruit.com/product/5394)
[Related Guides to the Product](https://learn.adafruit.com/products/5394/guides)
![TFT display breakout soldered and assembled onto a half-size breadboard and wired up to a microcontroller. The color TFT screen displays a cycle of animations.](https://cdn-shop.adafruit.com/product-videos/640x480/5394-10.jpg)

### STEMMA Wired Tactile Push-Button Pack - 5 Color Pack

[STEMMA Wired Tactile Push-Button Pack - 5 Color Pack](https://www.adafruit.com/product/4431)
Little clicky switches are standard input "buttons" on electronic projects. These are just like our&nbsp;[Colorful Round Tactile Button Switch Assortment](https://www.adafruit.com/product/1009), but already assembled onto a PCB - they even have a pull-up resistor...

In Stock
[Buy Now](https://www.adafruit.com/product/4431)
[Related Guides to the Product](https://learn.adafruit.com/products/4431/guides)
![STEMMA Wired Tactile Push-Buttons connected to a half sized white breadboard](https://cdn-shop.adafruit.com/640x480/4431-03.jpg)

### Micro SD Card PCB Extender

[Micro SD Card PCB Extender](https://www.adafruit.com/product/4395)
Stop fiddling with micro SD card sockets in the back of your latest gadget during development, and give yourself&nbsp;a little more elbow room with this **&nbsp;Small Micro SD Card Extender**. This is a great hack for length constraints with 3D printers, single-board computers,...

In Stock
[Buy Now](https://www.adafruit.com/product/4395)
[Related Guides to the Product](https://learn.adafruit.com/products/4395/guides)
![Angled Demo Shot of the Micro SD Card PCB Extender inserted into Micro SD Card slot at the bottom of a Raspberry Pi Computer. ](https://cdn-shop.adafruit.com/640x480/4395-02.jpg)

### Miniature 5V Cooling Fan with Molex PicoBlade Connector

[Miniature 5V Cooling Fan with Molex PicoBlade Connector](https://www.adafruit.com/product/4468)
Looking for another way to keep your&nbsp;project&nbsp;_cool?_ Hook up this&nbsp; **5V Mini Cooling Fan** &nbsp;and prevent from overheating! Of course, it's also great for use with any small computer or FPGA or motor driver or anything that needs cooling.&nbsp;

We...

In Stock
[Buy Now](https://www.adafruit.com/product/4468)
[Related Guides to the Product](https://learn.adafruit.com/products/4468/guides)
![Miniature 5V Cooling Fan with Molex Pico Blade Connector](https://cdn-shop.adafruit.com/640x480/4468-01.jpg)

### Part: Wireless Keyboard with Trackpad
quantity: 1
Full size
[Wireless Keyboard with Trackpad](https://www.adafruit.com/product/2876)

### Part: Pimoroni Nano HAT Hacker
quantity: 1
Raspberry Pi Accessory
[Pimoroni Nano HAT Hacker](https://www.adafruit.com/product/3577)

### Part: GPIO Header for Raspberry Pi
quantity: 1
2x20 female headers
[GPIO Header for Raspberry Pi](https://www.adafruit.com/product/2222)

### Part: 16mm Metal Pushbutton with LED
quantity: 1
Momentary switch with red LED 
[16mm Metal Pushbutton with LED](https://www.adafruit.com/product/559)

### Part: 16GB microSD Card
quantity: 1
Memory card for Pi
[16GB microSD Card](https://www.adafruit.com/product/2693)

### Part: SATA to USB 3 cable
quantity: 1
Hard Driver Adapter
[SATA to USB 3 cable](https://www.adafruit.com/product/5622)

### Part: 2.5in SATA SSD Drive 
quantity: 1
Samsung 1TB SSD drive
[2.5in SATA SSD Drive ](https://www.amazon.com/SAMSUNG-Inch-Internal-MZ-77E1T0B-AM/dp/B08QBJ2YMG/)

### Part: 10-wire Silicone Cover Ribbon Cable
quantity: 1
28AWG stranded core wire
[10-wire Silicone Cover Ribbon Cable](https://www.adafruit.com/product/3890)

### Part: Quick-Connect Wire Pairs
quantity: 1
0.11" (10 pack) for Arcade buttons
[Quick-Connect Wire Pairs](https://www.adafruit.com/product/1152)

### Part: 2-pin Cable Molex Connector
quantity: 1
1.25mm Pitch 40cm long - Molex PicoBlade Compatible
[2-pin Cable Molex Connector](https://www.adafruit.com/product/4720)

### Part: M3 Hardware Kit
quantity: 1
Black Nylon Hardware
[M3 Hardware Kit](https://www.adafruit.com/product/4685)

### Part: M2.5 Hardware Kit
quantity: 1
Black Nylon Hardware
[M2.5 Hardware Kit](https://www.adafruit.com/product/3299)

### Part: M3 Heat-Set Inserts
quantity: 1
Brass Heat-Set Inserts for Plastic - M3 x 4mm - 50 pack
[M3 Heat-Set Inserts](https://www.adafruit.com/product/4255)

### Part: M3 Heat-Set Tip
quantity: 1
Heat-Set Insert For Soldering Irons - #4-40 / M3 Inserts
[M3 Heat-Set Tip](https://www.adafruit.com/product/4239)

# Pi SSD Media Server

## Circuit Diagram

The diagram below provides a visual reference for wiring of the components. This diagram was created using the software package [Fritzing](http://fritzing.org/download/).

## Adafruit Library for Fritzing

Use Adafruit's Fritzing parts library to create circuit diagrams for your projects. Download the library or just grab individual parts. Get the library and parts from [GitHub - Adafruit Fritzing Parts](https://github.com/adafruit/Fritzing-Library/tree/master/parts).

![](https://cdn-learn.adafruit.com/assets/assets/000/114/497/medium800/raspberry_pi_circuit-diagram-v6.jpg?1661451954)

TFT Display

- Vin from TFT to 3V3 on Pi
- Gnd from TFT to Gnd on Pi
- SCK from TFT to GPIO11 on Pi
- MISO from TFT to GPIO9 on Pi
- MOSI from TFT to GPIO10 on Pi
- TSC from TFT to GPIO8 on Pi
- RST from TFT to GPIO24 on Pi
- DC from TFT to GPIO25 on Pi

Momentary Button Switch with LED

- Anode(+) from LED to GPIO14 on Pi
- Cathode(–) from LED to GND on Pi
- Normally Open pin from switch to GPIO3 and GPIO27 on Pi
- Common pin from switch to GND on Pi

5V Fan

- Red wire from fan to 5V pin on Pi
- Black wire from fan to GND pin on Pi&nbsp;

Momentary Button Switches

- Button 1 to GND and GPIO12 on Pi
- Button 2 to GND and GPIO16 on Pi

# Pi SSD Media Server

## CAD Files

## CAD Parts List

STL files for 3D printing are oriented to print "as-is" on FDM style machines. Parts are designed to 3D print without any support material. Original design source may be downloaded using the links below:

- pi-ssd-button-mount.stl
- pi-ssd-case.stl
- pi-ssd-fan-panel.stl
- pi-ssd-handle.stl
- pi-ssd-mount.stl
- pi-ssd-port-panel.stl

![raspberry_pi_3d-parts-hero.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/570/medium640/raspberry_pi_3d-parts-hero.jpg?1661814174)

[Download STLs_V2.zip](https://cdn-learn.adafruit.com/assets/assets/000/114/911/original/Guide_STLs_V2.zip?1662933041)
[Download CAD source](https://cdn-learn.adafruit.com/assets/assets/000/114/575/original/CAD.zip?1661865258)
## Build Volume

The parts require a 3D printer with a minimum build volume.

- 100mm (X) x 114mm (Y) x 64mm (Z)

![raspberry_pi_slice-bed-size.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/571/medium640/raspberry_pi_slice-bed-size.jpg?1661863365)

## Design Source Files

The project assembly was designed in Fusion 360. This can be downloaded in different formats like STEP, STL and more. Electronic components like Adafruit's boards, displays, connectors and more can be downloaded from the&nbsp;[Adafruit CAD parts GitHub Repo](https://github.com/adafruit/Adafruit_CAD_Parts).

![raspberry_pi_1.9in-TFT-Display.gif](https://cdn-learn.adafruit.com/assets/assets/000/114/573/medium640thumb/raspberry_pi_1.9in-TFT-Display.jpg?1661864635)

# Pi SSD Media Server

## Software Setup

## Choose your OS

Take a moment to decide which operating system you'd like to use. Consider the following limitations.

- Raspberry Pi OS has support for CircuitPython libraries and works with the 1.9in TFT screen for displaying GIFs and information like the Pi's IP address, CPU temperature, etc.
- Ubuntu variants but does not have support for CircuitPython libraries.

![raspberry_pi_pi-imager.png](https://cdn-learn.adafruit.com/assets/assets/000/114/580/medium640/raspberry_pi_pi-imager.png?1661879768)

## USB Boot with SSD

If you'd like to boot your Pi using an external SSD, you can follow along with the guide from [Tom's Hardware](https://www.tomshardware.com/how-to/boot-raspberry-pi-4-usb). This process utilizes the full storage and features faster performance when reading/writing. This can be a good option for running a media server.&nbsp;

Danger: 

## Install OS with Raspberry Pi Imager

Download the Raspberry Pi Imager and choose your preferred OS and method of booting.

If you're using Pi OS, click the gear icon to open advanced options.&nbsp; There you can enable SSH and configure wireless LAN.

[Download Raspberry Pi Imager](https://www.raspberrypi.com/software/)
## Install CircuitPython Libraries

If you'd like to use the 1.9in TFT display, follow the installation guide to get setup.

[Install Circuit Python on Raspberry Pi](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux)
## TFT Display Info

Use the Python script below to display the IP address, CPU temperature and disk/memory usage. Make sure you have the fonts directory installed in the same directory as the Python script.&nbsp;

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Pi_SSD_Media_Server/display-info.py

Download and copy the Python file to the home folder on your Raspberry Pi. Use the command in terminal to run the Python script: `sudo nano python3 display-info.py`

## TFT Display GIF images

Use the python script below to display GIF images on the TFT display. You can use buttons to cycle through the images. Make sure you have the GIF images in a directory named GIFs. Ensure the python script is in a directory just outside the GIFs directory.

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Pi_SSD_Media_Server/gif-player.py

Download and copy the Python file to the home folder on your Raspberry Pi. Use the command in terminal to run the Python script: `sudo nano python3 gif-player.py`

## Autostart TFT Python Scripts

Create an autostart script to enable the TFT display automatically on boot. Start by creating a new file with this command.&nbsp;

```auto
sudo nano /lib/systemd/system/tftdisplay.service
```

Copy the text below and paste it into the new file. Check the .py file is in the correct directory. You may need to modify the path if you've changed the Pi's hostname or title of Python script.&nbsp;&nbsp;

```auto
[Unit]
Description=TFT Display Service
After=multi-user.target

[Service]
Type=idle
ExecStart=/usr/bin/python /home/pi/tft-display.py

[Install]
WantedBy=multi-user.target
```

Save this file and exit the editor. A few commands then enable this new service and will launch it on startup:

```auto
sudo systemctl daemon-reload
sudo systemctl enable tftdisplay.service
sudo reboot
```

To change which program is loaded on startup, just edit **/lib/systemd/system**** /tftdisplay.service **&nbsp;and change the&nbsp;** ExecStart**&nbsp;line, and reboot. No need to repeat the systemctl commands.

## Enable Safe Shutdown

You can use the metal push button to safely shutdown your Pi. Add a line to the **config.txt** file using the `sudo nano /boot/config.txt` command in terminal.

In the circuit diagram, the metal push button is wired to both GPIO3 and GPIO27. By default, ground and GPIO3 will power up the Pi. GPIO27 is used to safely shutdown the Pi.&nbsp;

```auto
dtoverlay=gpio-shutdown,gpio_pin=27,active_low=0
```

Save the config.txt file and exit the editor. Reboot the Raspberry Pi and the pressing the power button should run the safe shutdown service.

## Install Plex Media Server

If you'd like to use the Pi as a media center, you can install Plex on the Raspberry Pi. This will use the Chromium web browser to display the Plex interface where you can play and stream media.

Head over to the [plex website](https://www.plex.tv/media-server-downloads/#plex-media-server) and choose Linux as the platform and then click Choose Distribution. Select the Ubuntu ARM (v7 for 32-bit Pi OS) and download.

![](https://cdn-learn.adafruit.com/assets/assets/000/114/495/medium800/raspberry_pi_plex-install.jpg?1661440053)

Once downloaded, double-click the file to install the software. When complete, Head over to **localhost:32400/web/** where you should see the Plex log in screen. There you can configure your settings and add media.

Follow along with the [Basic Setup Wizard guide](https://support.plex.tv/articles/200288896-basic-setup-wizard/) from Plex for more documentation on configuring your settings.&nbsp;

## Autostart Chromium in Full Screen Kiosk Mode

You can launch Chromium in full screen mode by adding a line to the autostart file on the LXDE desktop. Run the following command in terminal to edit the configuration file.

```auto
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
```

Modify the autostart file by adding the line below and save with key combination Ctrl+ X then Y.

```auto
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
/usr/bin/chromium-browser --kiosk --disable-restore-session-state http://localhost:32400/web/
```

Reboot the Raspberry Pi to test the updated autostart file. Chromium will automatically open and display the Plex interface by loading the [http://localhost:32400/web/](http://localhost:32400/web/) website.

# Pi SSD Media Server

## Wiring

## Pi Hat

The 2x20 GPIO header will be to soldered to the Pi Nano hacker hat. Place the header into one of the set of pins like shown in the photo.

Solder all 40 pins in place and remove the excess pins using flush snips.

![raspberry_pi_pihat-header.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/514/medium640/raspberry_pi_pihat-header.jpg?1661782428)

![raspberry_pi_pihat-header-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/515/medium640/raspberry_pi_pihat-header-install.jpg?1661782458)

## Wiring TFT

The 1.9in TFT will need 8 wired connections to the Raspberry Pi. Use a piece of ribbon cable to make the connections.&nbsp;

Measure and cut a piece of ribbon cable so it's about 4in(10cm) in length. Solder the individual wires to 8 of the 11 pins on the TFT display.

![raspberry_pi_tft-wiring.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/516/medium640/raspberry_pi_tft-wiring.jpg?1661782602)

## Wiring Power Button

Connect two sets of quick connect cables to the four leads on the power button.

Connect one cable set to the LED, labeled + and – on the side of the button switch.

Connect the second cable set to the switch, labeled C(common) and NO(normally open)

![raspberry_pi_arcade-cables-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/518/medium640/raspberry_pi_arcade-cables-install.jpg?1661782657)

## Wiring Fan

The wires from the 5V fan can either be soldered directly to the pins on the Pi hat or use a set of connecting JST cables.

This 3-wire fan uses a 3-pin molex connector and has been shortened to better fit inside the case.

![raspberry_pi_fan-cable.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/519/medium640/raspberry_pi_fan-cable.jpg?1661782700)

## Wiring Pi Hat

Solder all of the cables and wires to the various pins on the Pi hat.

- Cables for the two buttons.
- Cables for the power button and LED.
- Wires for the 5V fan (optional cable)
- Wires for the 1.9in TFT display

![raspberry_pi_pihat-wiring.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/517/medium640/raspberry_pi_pihat-wiring.jpg?1661782639)

## Wired Pi Hat

Double check all of the wires and cables have been soldered to the correct pins on the Pi Hat.

![raspberry_pi_pihat-soldered.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/520/medium640/raspberry_pi_pihat-soldered.jpg?1661782803)

# Pi SSD Media Server

## Assembly

## Install Pi Standoffs

Use the following hardware for mounting the Raspberry Pi to the 3D printed case.

- Four M2.5 x 10mm long standoffs
- Four M2.5 x 6mm long screws

![raspberry_pi_pi-hardware.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/521/medium640/raspberry_pi_pi-hardware.jpg?1661782907)

![raspberry_pi_pi-standoffs.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/522/medium640/raspberry_pi_pi-standoffs.jpg?1661782997)

Info: 

## Add Heat Inserts to Case

Install 8x M3 inserts to the case. Inserts are heat-set into place using the tip of a soldering iron.

Check out our [learn guide](https://learn.adafruit.com/heat-set-rig) for creating a heat-set rig to make this process more precise and easier.

![raspberry_pi_case-heat-inserts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/523/medium640/raspberry_pi_case-heat-inserts.jpg?1661783057)

## Install Handle

Secure the handle to the 3D printed case using the following hardware.

- Four M3 x 6mm long screws
- Four M3 hex nuts

Place the tabs from the handle over the mounting holes on the top side of the case. Insert screws and fasten hex nuts while holding in place.

![raspberry_pi_case-handle-screws.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/524/medium640/raspberry_pi_case-handle-screws.jpg?1661783073)

![raspberry_pi_case-handle-installing.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/525/medium640/raspberry_pi_case-handle-installing.jpg?1661783092)

## Secured Handle

The handle features a hinge that is printed in place and allows it to be rotated 180 degrees.&nbsp;

![raspberry_pi_case-handle-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/526/medium640/raspberry_pi_case-handle-installed.jpg?1661783601)

![raspberry_pi_case-handle-test.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/527/medium640/raspberry_pi_case-handle-test.jpg?1661783632)

## Button Plate Install

Use the following hardware to secure the buttons to the 3D printed plate.

- Four M2.5 x 10mm standoffs
- Eight M2.5 x 6mm long screws
- Four M2.5 hex nuts

Secure the two buttons to the plate using Four M2.5 x 6mm screws and hex nuts.

![raspberry_pi_button-plate-hardware.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/528/medium640/raspberry_pi_button-plate-hardware.jpg?1661783730)

![raspberry_pi_button-pcbs-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/529/medium640/raspberry_pi_button-pcbs-install.jpg?1661783375)

## Button Plate Secure

Install and fasten the standoffs to the button plate in the correct orientation.

Place the button plate inside the case with the button caps properly fitted through the cutouts.

Secure the button plate to the 3D printed plate using the remaining M2.5 screws.

![raspberry_pi_button-plate-standoffs.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/530/medium640/raspberry_pi_button-plate-standoffs.jpg?1661783853)

![raspberry_pi_button-plate-secured.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/531/medium640/raspberry_pi_button-plate-secured.jpg?1661783585)

## Installed Buttons

Press the buttons to verify correct placement.

![raspberry_pi_button-plate-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/532/medium640/raspberry_pi_button-plate-installed.jpg?1661784475)

## Install Pi

Get the Raspberry Pi ready to install into the 3D printed case.

Optionally use thumbscrews to double as feet risers for the Raspberry Pi.

Fit the Raspberry Pi into the case with the various ports fitting through the cutouts.

![raspberry_pi_pi-case-thumbscrews.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/533/medium640/raspberry_pi_pi-case-thumbscrews.jpg?1661784519)

![raspberry_pi_pi-case-ports.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/534/medium640/raspberry_pi_pi-case-ports.jpg?1661784557)

## Secure Pi to Case

Insert and fasten the hardware to secure the standoffs from the Raspberry Pi to the case.

![raspberry_pi_thumbscrews-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/535/medium640/raspberry_pi_thumbscrews-install.jpg?1661785501)

## Install microSD card extender

Carefully insert the micro SD card extender to the slot in the Raspberry Pi.

![raspberry_pi_sdcard-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/536/medium640/raspberry_pi_sdcard-install.jpg?1661785712)

## Secure Power Button

Insert the power button through the hole on the side of the case with cables going in first.

Slip the hex nut over the cables and fasten onto the threading of the button.

Fit the hex nut into the recess inside the case and tighten the power button to secure in place.

![raspberry_pi_arcade-case-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/537/medium640/raspberry_pi_arcade-case-installed.jpg?1661784935)

![raspberry_pi_arcade-case-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/539/medium640/raspberry_pi_arcade-case-install.jpg?1661785050)

## Hardware for TFT Display

Use the following hardware to secure the TFT display to the 3D printed case.

- Four M2.5 x 10mm long screws
- Four M2.5 hex nuts

![raspberry_pi_tft-hardware.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/542/medium640/raspberry_pi_tft-hardware.jpg?1661785295)

## Install TFT Display

Orient the TFT display with the case and match the photo for correct placement.

Insert screws through the case and mounting tabs. Use hex nuts to secure the TFT display to the 3D printed case.

![raspberry_pi_tft-case-installing.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/540/medium640/raspberry_pi_tft-case-installing.jpg?1661785160)

![raspberry_pi_tft-case-secured.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/541/medium640/raspberry_pi_tft-case-secured.jpg?1661785183)

## Secured TFT Display

Double check the protective film has been removed from the TFT display that it has been properly secured to the 3D printed case.

![raspberry_pi_tft-case-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/543/medium640/raspberry_pi_tft-case-installed.jpg?1661785410)

## Install Pi Hat

Carefully press fit the Pi hat onto the GPIO headers of the Raspberry Pi.

Ensure the all of the pins are correctly fitting through the Pi hat headers.&nbsp;

![raspberry_pi_pihat-pi-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/544/medium640/raspberry_pi_pihat-pi-install.jpg?1661785568)

## Connect LED for Power Button

Plug in the cable from the LED of the power button to the corresponding cable on the Pi hat.

![raspberry_pi_power-led-connect.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/545/medium640/raspberry_pi_power-led-connect.jpg?1661785832)

## Connect Power Button

Plug in the cable from the power button to the corresponding cable on the Pi hat.

![raspberry_pi_power-button-connect.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/546/medium640/raspberry_pi_power-button-connect.jpg?1661785871)

## Connect Top Buttons

Plug in the cable from the corresponding cables on the Pi hat to the JST ports on the two buttons.

![raspberry_pi_buttons-connect.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/547/medium640/raspberry_pi_buttons-connect.jpg?1661785888)

## Hardware for Fan

Use the following hardware to secure the 5V fan to the 3D printed side panel.

- Four M3 x 16mm long screws
- Four M3 hex nuts

![raspberry_pi_fan-hardware.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/549/medium640/raspberry_pi_fan-hardware.jpg?1661786023)

## Secure Fan to Panel

Place the 5V fan over the side panel and line up the mounting holes. Insert and fasten hex nuts to secure fan to the side panel.

![raspberry_pi_fan-panel-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/550/medium640/raspberry_pi_fan-panel-install.jpg?1661786749)

## Connect Fan&nbsp;

Plug in the corresponding cable from the Pi hat to the 5V fan's cable.

![raspberry_pi_fan-connect.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/551/medium640/raspberry_pi_fan-connect.jpg?1661786831)

## Secure Panel to Case

Place the side panel over the mounting holes on the case.

Insert and fasten four M3 x 6mm long screws to secure the panel to the case.

![raspberry_pi_fan-panel-secure.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/552/medium640/raspberry_pi_fan-panel-secure.jpg?1661786871)

## Hardware for SSD mount

Use the following hardware to attach the SSD mount to the 3D printed case.

- Four M3 x 6mm long standoffs
- Eight M3 x 6mm long screws

Secure the standoffs to the mounting holes on the SSD mount. Then, secure the SSD mount to the SSD side panel.

![raspberry_pi_ssd-plate-hardware.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/553/medium640/raspberry_pi_ssd-plate-hardware.jpg?1661786314)

![raspberry_pi_ssd-plate-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/554/medium640/raspberry_pi_ssd-plate-install.jpg?1661786431)

## Secure SSD Panel to Case

Place the panel over the mounting holes on the 3D printed case.

Secure the panel to the case using 4x M3 x 6mm long screws.

![raspberry_pi_ssd-panel-secure.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/555/medium640/raspberry_pi_ssd-panel-secure.jpg?1661786895)

## Secure SSD to mount

Orient the SSD with the connector facing the ports on the Rasberry Pi.

Slide the SSD into the mount and line up the tabs with the mounting holes on the side.

Secure the SSD to the mount using 4x M3 x 6mm long screws.

![raspberry_pi_ssd-plate-secure.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/556/medium640/raspberry_pi_ssd-plate-secure.jpg?1661786542)

## Connect SSD to USB

Plug in the SATA to USB cable from the SSD to one of the USB 3 (blue) ports on the Raspberry Pi.

![raspberry_pi_ssd-pi-connect.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/557/medium640/raspberry_pi_ssd-pi-connect.jpg?1661786947)

Info: 


## Featured Products

### Raspberry Pi 4 Model B - 2 GB RAM

[Raspberry Pi 4 Model B - 2 GB RAM](https://www.adafruit.com/product/4292)
The Raspberry Pi 4 Model B is the newest Raspberry Pi computer made, and the Pi Foundation knows you can always make a good thing _better_! And what could make the Pi 4...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4292)
[Related Guides to the Product](https://learn.adafruit.com/products/4292/guides)
### Adafruit 1.9" 320x170 Color IPS TFT Display

[Adafruit 1.9" 320x170 Color IPS TFT Display](https://www.adafruit.com/product/5394)
This lovely little display breakout is the best way to add a small, colorful, and very bright display to any project. Since the display uses 4-wire SPI to communicate and has its own pixel-addressable frame buffer, it can be used with every kind of microcontroller. Even a very small one with...

In Stock
[Buy Now](https://www.adafruit.com/product/5394)
[Related Guides to the Product](https://learn.adafruit.com/products/5394/guides)
### STEMMA Wired Tactile Push-Button Pack - 5 Color Pack

[STEMMA Wired Tactile Push-Button Pack - 5 Color Pack](https://www.adafruit.com/product/4431)
Little clicky switches are standard input "buttons" on electronic projects. These are just like our&nbsp;[Colorful Round Tactile Button Switch Assortment](https://www.adafruit.com/product/1009), but already assembled onto a PCB - they even have a pull-up resistor...

In Stock
[Buy Now](https://www.adafruit.com/product/4431)
[Related Guides to the Product](https://learn.adafruit.com/products/4431/guides)
### Micro SD Card PCB Extender

[Micro SD Card PCB Extender](https://www.adafruit.com/product/4395)
Stop fiddling with micro SD card sockets in the back of your latest gadget during development, and give yourself&nbsp;a little more elbow room with this **&nbsp;Small Micro SD Card Extender**. This is a great hack for length constraints with 3D printers, single-board computers,...

In Stock
[Buy Now](https://www.adafruit.com/product/4395)
[Related Guides to the Product](https://learn.adafruit.com/products/4395/guides)
### Miniature 5V Cooling Fan with Molex PicoBlade Connector

[Miniature 5V Cooling Fan with Molex PicoBlade Connector](https://www.adafruit.com/product/4468)
Looking for another way to keep your&nbsp;project&nbsp;_cool?_ Hook up this&nbsp; **5V Mini Cooling Fan** &nbsp;and prevent from overheating! Of course, it's also great for use with any small computer or FPGA or motor driver or anything that needs cooling.&nbsp;

We...

In Stock
[Buy Now](https://www.adafruit.com/product/4468)
[Related Guides to the Product](https://learn.adafruit.com/products/4468/guides)
### Pimoroni Nano HAT Hacker

[Pimoroni Nano HAT Hacker](https://www.adafruit.com/product/3577)
 **Pimoroni's Nano HAT Hacker** gives you full access to all 40 pins on your Pi, broken out at the top. It's a super-skinny 0.8mm PCB, so you can solder it right onto the pins on your Pi and still have enough height on a standard header to fit a HAT or pHAT on...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/3577)
[Related Guides to the Product](https://learn.adafruit.com/products/3577/guides)
### Rugged Metal Pushbutton with Red LED Ring

[Rugged Metal Pushbutton with Red LED Ring](https://www.adafruit.com/product/559)
These chrome-plated metal buttons are rugged&nbsp;and look real good while doing it! Simply drill a 16mm hole into any material up to 1/2" thick and you can fit these in place, there's even a rubber gasket to keep water out of the enclosure. On the front of the button is a flat metal...

In Stock
[Buy Now](https://www.adafruit.com/product/559)
[Related Guides to the Product](https://learn.adafruit.com/products/559/guides)
### SD/MicroSD Memory Card - 16GB Class 10 - Adapter Included

[SD/MicroSD Memory Card - 16GB Class 10 - Adapter Included](https://www.adafruit.com/product/2693)
Add speedy mega-storage in a jiffy using this 16 GB Class 10 micro-SD card. It comes with a SD adapter so you can use it with any of our shields or adapters! Preformatted to FAT so it works out of the box with our projects. Works great with any device in the Adafruit shop that uses micro-SD...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2693)
[Related Guides to the Product](https://learn.adafruit.com/products/2693/guides)

## Related Guides

- [Raspberry Pi Care and Troubleshooting](https://learn.adafruit.com/raspberry-pi-care-and-troubleshooting.md)
- [Adafruit 1.9" Color IPS TFT Display](https://learn.adafruit.com/adafruit-1-9-color-ips-tft-display.md)
- [Tyrell Desktop Synthesizer](https://learn.adafruit.com/tyrell-desktop-synthesizer.md)
- [Spinning Disc Step Sequencer](https://learn.adafruit.com/spinning-disc-step-sequencer.md)
- [Prop-Maker Feather Talking Adabot Clock](https://learn.adafruit.com/prop-maker-feather-talking-adabot-clock.md)
- [CircuitPython OLED Watch Clock](https://learn.adafruit.com/circuitpython-oled-watch.md)
- [reef-pi Guide 2: Power Controller](https://learn.adafruit.com/reef-pi-power-controller.md)
- [Stand for Feather ESP32 with Reverse TFT](https://learn.adafruit.com/stand-for-feather-esp32-with-reverse-tft.md)
- [BrainCraft Camera Case](https://learn.adafruit.com/braincraft-camera-case.md)
- [Stepper Motor Turntable](https://learn.adafruit.com/stepper-motor-turntable.md)
- [Bricktunes: LEGO Synthesizer Glove](https://learn.adafruit.com/bricktunes-lego-glove-synthesizer.md)
- [Arcade Bonnet Controller](https://learn.adafruit.com/arcade-bonnet-controller.md)
- [Fruit Jam Video Music](https://learn.adafruit.com/fruit-jam-video-music.md)
- [LED Matrix Wall Arcade for Pico-8](https://learn.adafruit.com/led-matrix-wall-arcade.md)
- [Feather Scorpio Snap Fit Case](https://learn.adafruit.com/feather-scorpio-snap-fit-case.md)
- [QT Py Snap Fit Case](https://learn.adafruit.com/qt-py-snap-fit-case.md)
- [New Years Eve Ball Drop](https://learn.adafruit.com/new-years-eve-ball-drop.md)
