# 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
Featured
### 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 the Raspberry Pi 4 Model B - 2 GB RAM](https://cdn-shop.adafruit.com/640x480/4292-13.jpg)

Featured
### 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)

Featured
### 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)

Featured
### 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)

Featured
### 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)

### Full Size Wireless Keyboard with Trackpad

[Full Size Wireless Keyboard with Trackpad](https://www.adafruit.com/product/2876)
The quick brown fox jumps over the lazy dog. &nbsp;The quick brown fox jumps over the lazy dog. &nbsp;The quick brown fox - sorry! We were practicing our typing ON THIS AWESOME KEYBOARD.

With slim chiclet keys, this 'normal size' keyboard is the perfect on-the-go accessory to...

In Stock
[Buy Now](https://www.adafruit.com/product/2876)
[Related Guides to the Product](https://learn.adafruit.com/products/2876/guides)
![Full Size Wireless Keyboard with Trackpad connected to Raspberry Pi](https://cdn-shop.adafruit.com/640x480/2876-03.jpg)

### GPIO Header for Raspberry Pi A+/B+/Pi 2/Pi 3/Pi 4/Zero

[GPIO Header for Raspberry Pi A+/B+/Pi 2/Pi 3/Pi 4/Zero](https://www.adafruit.com/product/2222)
Connect your own PCB to a Raspberry Pi with this normal-height female header. &nbsp;The female header part is about 8.5mm tall, good for small HATs that do not to clear the USB/Ethernet jacks. This header has 3mm of pins, compared with our <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/2222)
[Related Guides to the Product](https://learn.adafruit.com/products/2222/guides)
![Side shot GPIO Header for Raspberry Pi A+/B+/Pi 2/Pi 3/Pi 4/Zero](https://cdn-shop.adafruit.com/640x480/2222-00.jpg)

### 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...

Out of Stock
[Buy Now](https://www.adafruit.com/product/559)
[Related Guides to the Product](https://learn.adafruit.com/products/559/guides)
![Angled shot of Rugged Metal Pushbutton with Red LED Ring - 16mm Red Momentary.](https://cdn-shop.adafruit.com/640x480/559-00.jpg)

### 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/)

### Silicone Cover Stranded-Core Ribbon Cable - 10 Wire 1 Meter Long

[Silicone Cover Stranded-Core Ribbon Cable - 10 Wire 1 Meter Long](https://www.adafruit.com/product/3890)
For those who are fans of our silicone-covered wires, but are always looking to _up their wiring game_. We now have **Silicone Cover Ribbon cables!** These may look _a lot_ like <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/3890)
[Related Guides to the Product](https://learn.adafruit.com/products/3890/guides)
![10 wire Silicone Cover Stranded-Core Ribbon Cable](https://cdn-shop.adafruit.com/640x480/3890-01.jpg)

### Arcade Button Quick-Connect Wire Pairs - 0.11" (10 pack)

[Arcade Button Quick-Connect Wire Pairs - 0.11" (10 pack)](https://www.adafruit.com/product/1152)
Quick connector wire sets will make wiring up our arcade-style or metal buttons quicky-quick. Each wire comes as a 'pair' with two 0.11" quick-connects pre-crimped onto 20cm long wires. The wires are then terminated together in a JST 2.5mm/0.1" spaced 2-pin connector (we...

In Stock
[Buy Now](https://www.adafruit.com/product/1152)
[Related Guides to the Product](https://learn.adafruit.com/products/1152/guides)
![Angled shot of ten 20 cm long quick-connect wire pairs. ](https://cdn-shop.adafruit.com/640x480/1152-06.jpg)

### 1.25mm Pitch 2-pin Cable Matching Pair - 40cm long

[1.25mm Pitch 2-pin Cable Matching Pair - 40cm long](https://www.adafruit.com/product/4720)
When 0.1" is too big, and JST PH's too chunky, these ultra-slim 1.25mm connectors are a reliable alternative. These are only 1.25mm pitch, but have a nice clicky connection.

These cables are&nbsp;nice and long, 40cm in fact. They've&nbsp;got both small form factor and are a...

In Stock
[Buy Now](https://www.adafruit.com/product/4720)
[Related Guides to the Product](https://learn.adafruit.com/products/4720/guides)
![1.25mm Pitch 2-pin Cable Matching Pair](https://cdn-shop.adafruit.com/640x480/4720-04.jpg)

### Black Nylon Machine Screw and Stand-off Set – M3 Thread

[Black Nylon Machine Screw and Stand-off Set – M3 Thread](https://www.adafruit.com/product/4685)
Totaling **420 pieces** , this **M3 Screw Set** &nbsp;is a must-have for your workstation.&nbsp;You'll have enough screws, nuts, and hex standoffs to fuel your maker tendencies&nbsp;for days on end! M3 size screws fit a number of&nbsp;Adafruit breakout/dev board...

In Stock
[Buy Now](https://www.adafruit.com/product/4685)
[Related Guides to the Product](https://learn.adafruit.com/products/4685/guides)
![Opened box showing many nylon screws](https://cdn-shop.adafruit.com/640x480/4685-01.jpg)

### Black Nylon Machine Screw and Stand-off Set – M2.5 Thread

[Black Nylon Machine Screw and Stand-off Set – M2.5 Thread](https://www.adafruit.com/product/3299)
Totaling 380 pieces, this **M2.5 Screw Set** &nbsp;is a must-have for your workstation.&nbsp;You'll have enough screws, nuts, and hex standoffs to fuel your maker tendencies&nbsp;for days on end! M2.5 size screws fit almost all of the Adafruit breakout/dev board mounting holes...

In Stock
[Buy Now](https://www.adafruit.com/product/3299)
[Related Guides to the Product](https://learn.adafruit.com/products/3299/guides)
![Black Nylon Screw and Stand-off Set with M2.5 Threads, kit box](https://cdn-shop.adafruit.com/640x480/3299-00.jpg)

### Brass Heat-Set Inserts for Plastic - M3 x 4mm - 50 pack

[Brass Heat-Set Inserts for Plastic - M3 x 4mm - 50 pack](https://www.adafruit.com/product/4255)
Wanna improve the connection strength between your project's 3D-printed parts, and also have nice clean surfaces? Instead of gluing bits together, or screwing plastic screws directly into your 3D prints, use strong and reusable machine screws and heat-set inserts. Heat set inserts are only...

In Stock
[Buy Now](https://www.adafruit.com/product/4255)
[Related Guides to the Product](https://learn.adafruit.com/products/4255/guides)
![pile of 50 Brass Heat-Set Inserts for Plastic - M3 x 4mm.](https://cdn-shop.adafruit.com/640x480/4255-02.jpg)

# 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: 


## Guide 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)
### Full Size Wireless Keyboard with Trackpad

[Full Size Wireless Keyboard with Trackpad](https://www.adafruit.com/product/2876)
The quick brown fox jumps over the lazy dog. &nbsp;The quick brown fox jumps over the lazy dog. &nbsp;The quick brown fox - sorry! We were practicing our typing ON THIS AWESOME KEYBOARD.

With slim chiclet keys, this 'normal size' keyboard is the perfect on-the-go accessory to...

In Stock
[Buy Now](https://www.adafruit.com/product/2876)
[Related Guides to the Product](https://learn.adafruit.com/products/2876/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)
### GPIO Header for Raspberry Pi A+/B+/Pi 2/Pi 3/Pi 4/Zero

[GPIO Header for Raspberry Pi A+/B+/Pi 2/Pi 3/Pi 4/Zero](https://www.adafruit.com/product/2222)
Connect your own PCB to a Raspberry Pi with this normal-height female header. &nbsp;The female header part is about 8.5mm tall, good for small HATs that do not to clear the USB/Ethernet jacks. This header has 3mm of pins, compared with our <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/2222)
[Related Guides to the Product](https://learn.adafruit.com/products/2222/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)
- [Mini Smart Home with Huzzah, HASSio and Crickit](https://learn.adafruit.com/mini-smart-home-with-esp8266-huzzah-feather-raspberry-pi-hassio-crickit.md)
- [AS5600 Super Smooth Rotary Encoder](https://learn.adafruit.com/as5600-smooth-rotary-encoder.md)
- [Raspberry Pi 5 3D Printed Case](https://learn.adafruit.com/pi-5-case.md)
- [Watchmen's Sister Night NeoPixel Goggles](https://learn.adafruit.com/watchmen-sister-night-circuitpython-neopixel-goggles.md)
- [Espresso Water Tank Meter](https://learn.adafruit.com/espresso-water-tank-meter.md)
- [Prop-Maker Feather Talking Adabot Clock](https://learn.adafruit.com/prop-maker-feather-talking-adabot-clock.md)
- [Soundboard Speaker for Bikes & Scooters](https://learn.adafruit.com/soundboard-speaker-for-bikes-scooters.md)
- [16x16 NeoPixel Matrix Square Pixel Display](https://learn.adafruit.com/16x16-neopixel-matrix-square-pixel-display.md)
- [MIDI Laser Harp with Time of Flight Distance Sensors](https://learn.adafruit.com/midi-laser-harp-time-of-flight-sensors.md)
- [LEGO Set Lighting](https://learn.adafruit.com/lego-set-lighting.md)
- [DIY Pico Mechanical Keyboard with Fritzing and CircuitPython](https://learn.adafruit.com/diy-pico-mechanical-keyboard-with-fritzing-circuitpython.md)
- [Velociraptor Voice and Eye Upgrade with MONSTER M4SK](https://learn.adafruit.com/hand-puppet-voice-and-eye-upgrade-with-monster-m4sk.md)
- [Monitor Your Greenhouse with a No-Code Environmental Sensor](https://learn.adafruit.com/monitor-your-greenhouse-with-a-no-code-environmental-sensor.md)
- [MIDI Melody Maker](https://learn.adafruit.com/midi-melody-maker.md)
- [RGB & HSV NeoPixel Dialer](https://learn.adafruit.com/rgb-hsv-neopixel-dialer.md)
