Turn a Keyboard Into a Raspberry Pi Case for Around $20 or Less.

by crkrjak2001 in Circuits > Raspberry Pi

83574 Views, 69 Favorites, 0 Comments

Turn a Keyboard Into a Raspberry Pi Case for Around $20 or Less.

121230_0012.jpg
My first published instructable. I wanted to have a cover for my RPi, but didn't want to spend a lot to get one. I remember seeing one online and thought I could do something like this: http://www.howtogeek.com/121814/turning-a-keyboard-into-a-computer-with-raspberry-pi/  on the cheap. Sure, mine didn't turn out as professionally looking as the one in Germany, but it's practical all the same, and I'm happy with the results. My apologies for a couple blurry pix.

Parts & Tools Used

list of materials and tools used.

Raspberry Pi (duh)
USB Keyboard that rolls up ($5 @ Big Lots)
USB hub ($5?)
Old keyboard with space under keys. Mine is an old 5-pin Mitsumi Electric Company model # KPQ-EA4YA-15
rubber bumpers from old hard drive, hour-glassed shaped preferrably
three sets of screws, washers, and nuts
piece of cardboard
marker
rotary tool ($8 dollars @ Menards)
Tin Snips
Drill and bits
Utility knife
Sand paper
tape
RJ45 connector ($.50 on eBay)
twistie
safety glasses
___________________
About $20 is what I spent, since I didn't have the rotary tool to begin with. I did have the RPi , USB hub, and old 5-pin keyboard, so your budget could be even cheaper depending on materials you have on-hand. 

Remove Cover

121225_0004.jpg
remove the cover from the keyboard by taking out the screws on the underside.

Keyboard Teardown

121225_0005.jpg
The keyboard I used has ample space to house a RPi, as seen here with the cover removed. 

Plot and Clean Up Area

121225_0006.jpg
Lift up and remove keyboard and set aside for now. We will reuse the metal shelf from it. I used my $8 dollar rotary tool I bought from Menards to remove the unwanted plastic supports to give a flush mounting space for the RPi. Please wear safety glasses, as pieces of plastic will fly everywhere. Yes, I even seen some bouncing off my glasses.

Removed Some Material

121225_0008.jpg
Removed center support strip. Still need to remove two other supports.

Space for SD Card

121225_0011.jpg
I wanted to be able to remove and replace the SD card without taking the keyboard apart, so I removed the side of the indented area that the keyboard leg folds up into. This worked out perfectly. 

Dry Fit

121225_0013.jpg
121225_0012.jpg
Now II did a test fit to see how it would line up. 

More Cutting

121225_0014.jpg
Now I needed to figure out how to run the cables and where to notch out the cover even more for access to the audio port as well as the cables. I don't have a wireless adapter for it, so I'm using a standard Cat 5 Ethernet cable. I expanded the original keyboard cable gap for the cables. I also planned to run the power cord through the same indented area that the SD card went though, but later changed my mind and added it to the others. 

Rubber Bumpers

121226_0000.jpg
Plotted out areas the hour-glassed shaped bumpers. The rubber bumpers I salvaged from the internal parts from an old hard drive that went bad. I scrapped the housing from the hard drive as it is cast aluminum, and also retained the rare earth magnets from it. The rubber bumpers also serve as an excellent insulator for keeping the retaining screws from touching the RPi. I also cleaned up the rough edges for the cables and connector holes from the rotary tool after this this.

Bumpers in Place, Added Hub

121230_0000.jpg
Added USB hub. Red circles show where retaining screws are placed. The screws and washers holding the RPi in place now also contain the rubber bumpers. A twisty holds the cables together. I keep my twisties together by simply loosely twisting them together for easy storage and accessibility. Also shown here is the Cat 5 coupler I got on eBay for $.50 cents (two for a dollar with free shipping). I needed to use this to make my finished project portable. Yes, my next purchase will be a Wi-Fi dongle so I will be able to do away with the Ethernet cable. I thought I had a spare one, as shown here inserted into the hub, circled in blue.  The hole I drilled into the USB hub was in the indented area where the end tucks into when not in use. Nothing inside the case there. I had already drilled a hole for the power cord before changing my mind and looping all the cables together.   

Keyboard Work

121225_0016.jpg
Disassembled old keyboard to get the metal shelf. 

Hole for HDMI Cable

121230_0001.jpg
121230_0002.jpg
I needed to notch out a relief hole in the shelf for the HDMI cable, as it was pressing against it when I did a dry fit. 

Cut the Keyboard Shelf

121225_0021.jpg
Planning on how to get the keyboard to fit properly, I had to cut away part of the metal shelf and some more plastic supprt material so I could fold the end of the keyboard over on itself. It was either this or have it protrude out the end of the cover. This worked out perfectly though.

Plotting Out Keyboard Cover

121225_0020.jpg
Doing a fitting of the cover showed me where I needed to cut some more. I also noticed the keyboard wasn't flush as I wanted it to be. 

Raise the Keyboard

121230_0003.jpg
121230_0004.jpg
Adding a piece of cardboard raised up the keyboard to the height I wanted it to be. This also helped with covering the relief hole for the HDMI cable. 

Screw on the Cover

121230_0005.jpg
Screwing the cover back on after cleaning all the edges from the rotary tool gave me the finished project. 

More Assembled Shots

121230_0007.jpg
121230_0008.jpg
A couple of pix of it assembled. The USB dongle in this pic is for a wireless mouse. The SD card

Hook It Up!

121230_0009.jpg
After hooking it up, I was quite pleased to see it working flawlessly. Hooray!