# DIY Pi 400 Keyboard Case

## Overview

https://youtu.be/f1t6kB6299E

## Build a PC case inside a Keyboard

Plug into any HDMI display! Browse, work, watch streaming video and code, just like any computer!

Most single board computers, like a Raspberry Pi, fit right into the small form factory of a keyboard with built-in trackpad. Easily detach the keyboard to access additional GPIO hidden inside the case.&nbsp;

Ports on the back allow you to attach accessories and keep them tidy!

![raspberry_pi_hero-screen-site.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/147/medium640/raspberry_pi_hero-screen-site.jpg?1660583582)

![raspberry_pi_ports.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/148/medium640/raspberry_pi_ports.jpg?1660583641)

## Room to grow

&nbsp;

**This case works with both Pi 3 or Pi 4 'shaped' boards!**

The case has plenty of room to store extra wires. Fan mount with a ventilation grill keeps the PC cool with enough space to add a heat sink.

## SD Card Slot

The Micro SD card slot is accessible on the front so you can always swap it out.

![raspberry_pi_cables.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/149/medium640/raspberry_pi_cables.jpg?1660584092)

![raspberry_pi_sd-card.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/150/medium640/raspberry_pi_sd-card.jpg?1660584253)

## Grippy, stable base

Add a set of rubber feet to the bottom so it’s nice and grippy.

The mini fan provides air flow to the board so it stays nice and cool.

## Cable Coiling

With the extra space you can pull out the HDMI and microUSB cable for connecting to a display and power supply.

![raspberry_pi_feet.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/151/medium640/raspberry_pi_feet.jpg?1660584417)

![raspberry_pi_compact-back.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/152/medium640/raspberry_pi_compact-back.jpg?1660584669)

# Parts
![](https://cdn-learn.adafruit.com/assets/assets/000/114/154/medium800/raspberry_pi_parts.jpg?1660586758)

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

### 7" Display 1280x800 (720p) IPS + Speakers - HDMI/VGA/NTSC/PAL

[7" Display 1280x800 (720p) IPS + Speakers - HDMI/VGA/NTSC/PAL](https://www.adafruit.com/product/1667)
Yes, this is an adorable small HDMI television with incredibly high resolution **and built in 3W stereo speakers**! We tried to get the smallest possible HDMI/VGA display with high-res, high-contrast visibility. The visible display measures only 7" (17.8cm) diagonal, and the TFT comes...

In Stock
[Buy Now](https://www.adafruit.com/product/1667)
[Related Guides to the Product](https://learn.adafruit.com/products/1667/guides)
![Front view of assembled and powered on HDMI 4 Pi - 7" Display. The monitor displays a desktop background with a raspberry logo.](https://cdn-shop.adafruit.com/640x480/1667-00.jpg)

### Miniature 5V Cooling Fan for Raspberry Pi (and Other Computers)

[Miniature 5V Cooling Fan for Raspberry Pi (and Other Computers)](https://www.adafruit.com/product/3368)
Looking for another way to keep your [Raspberry Pi](https://www.adafruit.com/products/3055)&nbsp;_cool_? Hook up this&nbsp; **5V Mini Cooling Fan** &nbsp;and prevent your hard-working Pi from overheating! Of course, it's also great for use with any small...

In Stock
[Buy Now](https://www.adafruit.com/product/3368)
[Related Guides to the Product](https://learn.adafruit.com/products/3368/guides)
![Miniature 5V Cooling Fan for Raspberry Pi and Other Computers](https://cdn-shop.adafruit.com/640x480/3368-00.jpg)

### Official Raspberry Pi Power Supply 5.1V 3A with USB C

[Official Raspberry Pi Power Supply 5.1V 3A with USB C](https://www.adafruit.com/product/4298)
The official Raspberry Pi USB-C power supply is here! And of course, we have 'em in classic Adafruit black! Superfast with just the right amount of cable length to get your Pi 4 projects up and running!

Best for use with Pi 4 series, [Pi...](https://www.adafruit.com/product/5814)

In Stock
[Buy Now](https://www.adafruit.com/product/4298)
[Related Guides to the Product](https://learn.adafruit.com/products/4298/guides)
![Angled shot of Official Raspberry Pi Power Supply 5.1V 3A with USB C with Power plug facing down. ](https://cdn-shop.adafruit.com/640x480/4298-04.jpg)

### Slim HDMI Cable - 450mm / 1.5 feet long

[Slim HDMI Cable - 450mm / 1.5 feet long](https://www.adafruit.com/product/2420)
Connect two HDMI devices together and save space with this slim, high quality HDMI cable. It has nice molded grips for easy installation and&nbsp;is 450mm long (~1.5 feet). Sporting a&nbsp;teeny&nbsp;4mm diameter this cable stays out of your way!

We also have slim HDMI cables at <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/2420)
[Related Guides to the Product](https://learn.adafruit.com/products/2420/guides)
![1.5 foot long slim HDMI cable.](https://cdn-shop.adafruit.com/640x480/2420-01.jpg)

### Mini HDMI Plug to Standard HDMI Jack Adapter

[Mini HDMI Plug to Standard HDMI Jack Adapter](https://www.adafruit.com/product/2819)
What an adorable little [pug!](http://www.vetstreet.com/dogs/pug)&nbsp;Sorry - plug! What an adorable mini HDMI to HDMI plug. &nbsp;We find this plug adapter really helpful. &nbsp;It's a great way to convert any mini HDMI plug to a normal HDMI plug and...that's about it! Now...

In Stock
[Buy Now](https://www.adafruit.com/product/2819)
[Related Guides to the Product](https://learn.adafruit.com/products/2819/guides)
![Angled shot of a small, white, mini HDMI to HDMI plug adapter.](https://cdn-shop.adafruit.com/640x480/2819-00.jpg)

### Little Rubber Bumper Feet - Pack of 4

[Little Rubber Bumper Feet - Pack of 4](https://www.adafruit.com/product/550)
Keep your electronics from going barefoot, give them little rubber feet! These small sticky bumpers are our favorite accessory for any electronic kit or device. They are sticky, but not impossible to remove. They're small enough to fit onto any board, and have just enough height to give...

In Stock
[Buy Now](https://www.adafruit.com/product/550)
[Related Guides to the Product](https://learn.adafruit.com/products/550/guides)
![Angled Shot of the Little Rubber Bumper Feet - Pack of 4](https://cdn-shop.adafruit.com/640x480/550-06.jpg)

### Part: M3x12mm Screws
quantity: 4
M3x12mm Screws for Fan
[M3x12mm Screws](https://www.albanycountyfasteners.com/3-MM-x-5-Phillips-Flat-Head-Machine-Screw-p/1011-1006.htm)

### Part: M3x6mm Screws
quantity: 4
M3x6mm Screws for Pi board
[M3x6mm Screws](https://www.albanycountyfasteners.com/3-MM-x-5-Phillips-Flat-Head-Machine-Screw-p/1011-1006.htm)

- [Next Page](https://learn.adafruit.com/pc-keyboard-case/3d-printing.md)

## Featured Products

### 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)
### 7" Display 1280x800 (720p) IPS + Speakers - HDMI/VGA/NTSC/PAL

[7" Display 1280x800 (720p) IPS + Speakers - HDMI/VGA/NTSC/PAL](https://www.adafruit.com/product/1667)
Yes, this is an adorable small HDMI television with incredibly high resolution **and built in 3W stereo speakers**! We tried to get the smallest possible HDMI/VGA display with high-res, high-contrast visibility. The visible display measures only 7" (17.8cm) diagonal, and the TFT comes...

In Stock
[Buy Now](https://www.adafruit.com/product/1667)
[Related Guides to the Product](https://learn.adafruit.com/products/1667/guides)
### Miniature 5V Cooling Fan for Raspberry Pi (and Other Computers)

[Miniature 5V Cooling Fan for Raspberry Pi (and Other Computers)](https://www.adafruit.com/product/3368)
Looking for another way to keep your [Raspberry Pi](https://www.adafruit.com/products/3055)&nbsp;_cool_? Hook up this&nbsp; **5V Mini Cooling Fan** &nbsp;and prevent your hard-working Pi from overheating! Of course, it's also great for use with any small...

In Stock
[Buy Now](https://www.adafruit.com/product/3368)
[Related Guides to the Product](https://learn.adafruit.com/products/3368/guides)
### Official Raspberry Pi Power Supply 5.1V 3A with USB C

[Official Raspberry Pi Power Supply 5.1V 3A with USB C](https://www.adafruit.com/product/4298)
The official Raspberry Pi USB-C power supply is here! And of course, we have 'em in classic Adafruit black! Superfast with just the right amount of cable length to get your Pi 4 projects up and running!

Best for use with Pi 4 series, [Pi...](https://www.adafruit.com/product/5814)

In Stock
[Buy Now](https://www.adafruit.com/product/4298)
[Related Guides to the Product](https://learn.adafruit.com/products/4298/guides)
### Slim HDMI Cable - 450mm / 1.5 feet long

[Slim HDMI Cable - 450mm / 1.5 feet long](https://www.adafruit.com/product/2420)
Connect two HDMI devices together and save space with this slim, high quality HDMI cable. It has nice molded grips for easy installation and&nbsp;is 450mm long (~1.5 feet). Sporting a&nbsp;teeny&nbsp;4mm diameter this cable stays out of your way!

We also have slim HDMI cables at <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/2420)
[Related Guides to the Product](https://learn.adafruit.com/products/2420/guides)
### Mini HDMI Plug to Standard HDMI Jack Adapter

[Mini HDMI Plug to Standard HDMI Jack Adapter](https://www.adafruit.com/product/2819)
What an adorable little [pug!](http://www.vetstreet.com/dogs/pug)&nbsp;Sorry - plug! What an adorable mini HDMI to HDMI plug. &nbsp;We find this plug adapter really helpful. &nbsp;It's a great way to convert any mini HDMI plug to a normal HDMI plug and...that's about it! Now...

In Stock
[Buy Now](https://www.adafruit.com/product/2819)
[Related Guides to the Product](https://learn.adafruit.com/products/2819/guides)
### Little Rubber Bumper Feet - Pack of 4

[Little Rubber Bumper Feet - Pack of 4](https://www.adafruit.com/product/550)
Keep your electronics from going barefoot, give them little rubber feet! These small sticky bumpers are our favorite accessory for any electronic kit or device. They are sticky, but not impossible to remove. They're small enough to fit onto any board, and have just enough height to give...

In Stock
[Buy Now](https://www.adafruit.com/product/550)
[Related Guides to the Product](https://learn.adafruit.com/products/550/guides)

## Related Guides

- [Wireless Dual Stepper Control with Adafruit IO, Raspberry Pi and Python](https://learn.adafruit.com/wireless-stepper-control-with-adafruit-io-circuitpython-raspberry-pi-python.md)
- [Zelda LED UltraHand](https://learn.adafruit.com/ultrahand.md)
- [Analog Knobs on Raspberry Pi 400 with CYBERDECK Hat](https://learn.adafruit.com/analog-knobs-on-raspberrypi-400-with-cyberdeck-hat.md)
- [Webcam Cover-Up Lego brick with Adabot Mini Fig](https://learn.adafruit.com/lego-webcam-cover.md)
- [USB MIDI Keyset Controller](https://learn.adafruit.com/midi-keyset.md)
- [3D Printed Light-Up Kaleidoscope](https://learn.adafruit.com/3d-printed-light-up-kaleidoscope.md)
- [Custom 3D Hat Graphics](https://learn.adafruit.com/custom-3d-hat-graphics.md)
- [Speech Synthesis On Raspberry Pi with KittenTTS](https://learn.adafruit.com/speech-synthesis-on-raspberry-pi-with-kittentts.md)
- [Circuit Playground Christmas Tree](https://learn.adafruit.com/circuit-playground-christmas-tree.md)
- [Raspberry Pi YouTube Boombox](https://learn.adafruit.com/youtube-radio.md)
- [3D Printed Fidget Spinner](https://learn.adafruit.com/3d-printed-fidget-spinner.md)
- [Raspberry Pi E-Ink Weather Station using Python](https://learn.adafruit.com/raspberry-pi-e-ink-weather-station-using-python.md)
- [PyPortal Wall Mount](https://learn.adafruit.com/pyportal-wall-mount.md)
- [Animated LED Sand](https://learn.adafruit.com/animated-led-sand.md)
- [Ultrasonic Ruler](https://learn.adafruit.com/ultrasonic-ruler.md)
