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

# DIY Pi 400 Keyboard Case

## 3D Printing

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

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

[Edit Pi 400 Case design](https://a360.co/3bREz3j)
[Download STLs](https://www.thingiverse.com/thing:5465966)
## Slice with settings for PLA material&nbsp;

The parts were sliced using CURA using the slice settings below.

- PLA filament 220c extruder
- 0.25 layer height
- 10% gyroid infill
- 60mm/s print speed
- 60c heated bed

## Build Plate Adhesion&nbsp;

- Type: brim
- Line Count: 4

![raspberry_pi_slice.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/156/medium640/raspberry_pi_slice.jpg?1660587457)

## Snap fit

The enclosure snap fits over the bottom panel so it’s easy to open and take things apart.

Built in standoffs are designed for standard mounting holes so you can secure the board with screws and hex nuts.

Power up the mini fan over five volts by plugging in jumper cables to the GPIO headers

![raspberry_pi_snaps.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/158/medium640/raspberry_pi_snaps.jpg?1660587575)

![raspberry_pi_mount-fan-board.jpg](https://cdn-learn.adafruit.com/assets/assets/000/114/159/medium640/raspberry_pi_mount-fan-board.jpg?1660587624)

[This slim Full Size Wireless Keyboard with Trackpad](https://www.adafruit.com/product/2876 "Full Size Wireless Keyboard with Trackpad") lays on top with a notch in place so you can access the built-in controls!

![](https://cdn-learn.adafruit.com/assets/assets/000/114/157/medium800/raspberry_pi_compact-back.jpg?1660587526)


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

- [Ultrasonic Ruler](https://learn.adafruit.com/ultrasonic-ruler.md)
- [NeoPixel Bracelet](https://learn.adafruit.com/neopixel-bracelet.md)
- [Really Simple Animatronic Tail](https://learn.adafruit.com/really-simple-animatronic-tail.md)
- [Remote Controlled LED Tea Light Sconce](https://learn.adafruit.com/remote-controlled-led-candelabra.md)
- [Guitar Synth with CircuitPython SynthIO](https://learn.adafruit.com/guitar-synth-with-circuitpython-synthio.md)
- [Ride & Rock - DIY Bike Stereo System with 20W Speaker](https://learn.adafruit.com/ride-rock-diy-bike-stereo-system-with-20w-speaker.md)
- [Watchmen's Sister Night NeoPixel Goggles](https://learn.adafruit.com/watchmen-sister-night-circuitpython-neopixel-goggles.md)
- [3.5" PiTFT OctoPrint Rig](https://learn.adafruit.com/3-dot-5-pitft-octoprint-rig.md)
- [HalloWing Case](https://learn.adafruit.com/hallowing-case.md)
- [Four Channel Audio Passive Stereo Mixer](https://learn.adafruit.com/four-channel-audio-passive-stereo-mixer.md)
- [PyBadge GamePad](https://learn.adafruit.com/pybadge-gamepad.md)
- [Raspberry Pi Pico and LED Arcade Button MIDI Controller](https://learn.adafruit.com/raspberry-pi-pico-led-arcade-button-midi-controller-fighter.md)
- [Starduino: 8-Bit Super Mario Tree Topper](https://learn.adafruit.com/starduino-neopixel-8-bit-mario-star-tree-topper.md)
- [Skill Badge Guide: 3D Printing](https://learn.adafruit.com/skill-badge-guide-3d-printing.md)
- [PyBadge Case](https://learn.adafruit.com/pybadge-case.md)
