Saturday, February 8, 2014

Literal USB Stick


Just a quick hack/mod this weekend.  I got a promotional USB Drive during the week and wanted to do something interesting with it.  I was looking for something to hide it in something interesting like a toy car or some Lego, but I'd seen that done many times.  Then I thought, hang on, people call these USB sticks, why don't I create a Literal USB Stick!  This has been done before (link) but I already had the drive and I have plenty of sticks in my backyard, plus buying things is no as much fun!  Here's how I did it.
  1. Select your USB Drive.
  2. Select a stick that is thick enough to fit your USB Drive in.
  3. Cut the stick to the desired length.
  4. Sit your USB Drive on the end of the stick and trace around it.
  5. Plan and mark where to drill your holes to maximise the wood removal and minimise clean up later.  I drilled three 5.5mm holes (see below).
  6. Figure out how deep you need to go and drill the holes.
  7. Cleanup the hole until your USB Drive fits in snuggly.
  8. Optionally silicon in your drive (mine seems tight enough without it for now).
  9. Action Shot!!

A link to my Google+ Gallery is below.

Saturday, January 18, 2014

Raspberry Pi CD-ROM Case

So, I like building electronics into recycled cases and the Raspberry Pi is a good platform for doing this as it is small but has high utility. I have previously built one into a old VHS case to be used as a media centre (Gallery here), but this time I wanted something different.

I have been using a Pi as a headless downloader for a while now that just stores downloads on a USB drive. In future though it'll be writing to network storage so the server will need to be on at the same time as the Pi. Given the Pi is headless I don't care where it is as long as I can access it over a network. So I got to thinking how can I ensure the server and the Pi are on at the same time? Well, if I use the power supply from the server then that would work. But how am I going to mount it inside the case and power it. Well, a CD or DVD Drive has a power connector on it and all the mounting hardware so why not use that! I quick chat with the IT at work turned up an old 52x CD-ROM drive that nobody will ever use again and the project got started!

Step 1 - Pulling it apart
I got lucky with this drive as this was really easy. 4 screws undid the base plate which revealed a PCB. I disconnected the drive mechanism from this and removed the PCB. All I was left with was the mechanism which just unclipped from it's rubber mounts. What I decided to keep was the PCB and the case and toss the mechanism. The PCB is held in by the screws and has the power connector on it so it'll work nicely as a place to mount the Pi. Unfortunately I don't have photos of the dismantling.

Step 2 - Making way for the Pi
I had to think about what connections I wanted access to on the Pi and where to place them on the drive. In the end I decided that ethernet was key and it should be out the back of the drive so the front still looks stock. This has the added advantage of letting me use the USB ports until I get the server running. It also means the front of the drive is free for extra goodies that could be accessed through the drive door.

I hacked away any chips that were in the way and removed the IDE connector from the back of the drive making sure I didn't damage the power connector.


Step 3 - Mounting and Power
I reused the base of the clear case I already had, just drilled some holes and bolted it to the PCB.  Then I carefully cut the power connector from the PCB and soldered wires to the 5V lines and spliced it into a micro usb connector so I could power the Pi.


I then hacked a 5V power adapter to power the drive.  This is only until I get the server running.


Step 4 - Putting the Pi in place and Rear Panel Clearance
Now it was just a matter of putting the Pi in and seeing how much I needed to cut out of the rear panel.


Turned out there wasn't too much to remove and the cuts don't look too bad condering I used a hacksaw, a dremel and a file.


Step 5 - It Works!
From the front it looks like a normal CD-ROM Drive.  In the future I'll see if I can't use those buttons and LED for something!


But the back reveals more.


Here it is working with a USB stick for now.


Here is a link to the Photo Gallery.