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

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.

Step 1: 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. 

Step 2: Remove Cover

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

Step 3: Keyboard Teardown

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

Step 4: Plot and Clean Up Area

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.

Step 5: Removed Some Material

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

Step 6: Space for SD Card

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. 

Step 7: Dry Fit

Now II did a test fit to see how it would line up. 

Step 8: More Cutting

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. 

Step 9: Rubber Bumpers

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.

Step 10: Bumpers in Place, Added Hub

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.   

Step 11: Keyboard Work

Disassembled old keyboard to get the metal shelf. 

Step 12: Hole for HDMI Cable

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. 

Step 13: Cut the Keyboard Shelf

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.

Step 14: Plotting Out Keyboard Cover

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. 

Step 15: Raise the Keyboard

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. 

Step 16: Screw on the Cover

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

Step 17: More Assembled Shots

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

Step 18: Hook It Up!

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