Jul 7 2012
Building a LEGO® case for a Raspberry Pi*
There’s something about the Raspberry Pi Model B which makes me want to use the word “awesome” like a be-hoodied member of the next US boy-band sensation: the Raspberry Pi is an awesome 85.60mm x 53.98mm slice of 700Mhz ARMv6 awesomeness.
Another thing which is clearly awesome is Lego.
I think I feel a plan forming…
Please jump to the bottom of the article for downloads and the build-guide
Taking this LEGO® case as my inspiration, I started playing with the LEGO® Digital Designer to see what I could make of it. It turns out that the original design is pretty much spot-on, so all that was needed were a few cosmetic tweaks for block colour-selection and I was ready to order.
This was the hardest part of the whole process – LDD used to be able to export a design straight to the pick-a-brick ordering system, but this has been turned off (too many things in LDD not available individually, it seems). In any case, all of the pieces had to be found and entered by-hand – which is fairly time-consuming. There were several pieces not available, but a slight re-design of the top soon solved this. Due to the limited colours, I decided to have the top coloured yellow and dark-grey on a light-grey background (which looks pleasingly like a power tool colour-scheme), and – luckily it turns out – I ordered a selection a colours where I couldn’t decide what might look best.
Almost £40(!) and several days later, and I find awaiting me a box several times the volume of the Raspberry Pi itself:
It’s always much more fun unpacked, though 🙂
(Apologies for the colour-cast on these photos – I didn’t realise that the ambient light would be so difficult for the iPhone 4’s camera. I’ve had to severely de-saturate the images to remove correct the way they look overall, which has resulted in the yellow parts appearing white!)
The amazing thing is just how well the Raspberry Pi fits into this case! A millimetre shorter in any dimension and the Raspberry Pi would be rattling around, and fraction of a millimetre longer and it simply wouldn’t fit! As it is, the Pi nestles neatly inside and fits braced by the USB/Ethernet face-plate on top, and between two LEGO® studs at the bottom.
Downloads:
The LEGO® Digital Designer model for my case design can be downloaded here, and for convenience the XML version is here. Why the XML version? Since LEGO® disabled LDD‘s ability to connect to the Pick-a-Brick service, I couldn’t see any reasonable way to work out the bricks necessary to build a model… so I did this:
80 designID="3065" materials=Clear
44 designID="3024" materials=Clear
18 designID="3023" materials=Clear
14 designID="3062" materials=Transparent Red
14 designID="3062" materials=Transparent Green
8 designID="4215" materials=Clear
8 designID="3010" materials=White
6 designID="87552" materials=Clear
4 designID="3024" materials=Red
4 designID="3020" materials=White
4 designID="3020" materials=Medium Grey
4 designID="3005" materials=Medium Grey
4 designID="2420" materials=White
2 designID="60592" materials=White
2 designID="50746" materials=Medium Grey
2 designID="4865" materials=Bright Yellow
2 designID="4070" materials=Red
2 designID="3666" materials=Red
2 designID="3666" materials=Dark Green
2 designID="3659" materials=White
2 designID="3069" materials=Dark Grey
2 designID="3023" materials=White
2 designID="3023" materials=Medium Grey
2 designID="3020" materials=Bright Yellow
2 designID="3004" materials=White
1 designID="51739" materials=Dark Grey
1 designID="43723" materials=Bright Yellow
1 designID="43722" materials=Bright Yellow
1 designID="3659" materials=Medium Grey
1 designID="3069" materials=Red
1 designID="3023" materials=Red
1 designID="3023" materials=Dark Green
1 designID="2431" materials=Dark Grey
… which just goes to demonstrate that there’s no endeavour for which a working knowledge of UNIX isn’t a huge time-saver 🙂
Admittedly, entering these into Pick-a-Brick isn’t especially fast, although it is possible to search for parts by their designID – and it’s fun enough seeing all of the different parts available in passing. It’s worth noting that many of the changes I made to the design and the changes in colours are purely down to the availability (or otherwise) of parts through Pick-a-Brick. The angled parts for the top faceplate were only available in light- or dark- grey, for example. Even so, I like the way it turned out – the colour-scheme is carried through the design, and the I/O ports have their own styling. I’ve reduced the amount of room left for plugging in an HDMI cable – but I have fairly chunky cable and that (just) fits without problems. USB and Ethernet look tight, but are fine… in fact, the only real draw-back to this case is the need for tweezers or disassembly in order to get to the SD card!
Finally, LDD‘s Build Guide – wherein I’ve changed all the clear parts to silver for the sake of clarity – can be viewed here.
P.S. lego.cuusoo.com – Kickstarter for LEGO® 😀
Pete Taylor
9th July 2012 @ 10:04 am
Thank you – it’s great I’ve inspired someone else to build the lego -upright case – I have wondered about the SD card thing – it’s a little fiddly to get in and out with the existing design. I’m trying out various hinges to see if there’s a neater way to do this – perhaps with a more permanent base which would help make the whole thing be a bit more secure.
I’m also working on an internal cable with a brick mounted power switch – something the Pi lacks!
Stuart
9th July 2012 @ 9:26 pm
I was wondering whether there were any LEGO parts which hold together fairly weakly. There could then be a more heavy-weight base, a weakened line which makes the top section easy to detach just below the SD card, and then the rest of the model. Or, as you say, make a giant hinge along one side, and flip the whole thing open – like a giant Bat-phone 🙂
A power switch would be very helpful (I’m trying to get a 3.2.21 kernel working, and having to unplug the USB cable from behind the TV each time it panics is a pain)!
mike
13th September 2012 @ 3:53 am
Love the design. I’m aiming for the Lego case myself, although I may just wing the whole thing and pick up a box of basic bricks. However, the a la carte purchase is a nice way to go if you don’t want the Lego ‘extras’. Like tires and roof shingles 😉