Cigarbox Pi

Introduction

A few months ago, I saw a project where someone had put a Raspberry Pi in a cigar box. At the time, I thought it was a pretty cool idea to put that kind of high tech inside of a well crafted enclosure. A short time after that, I stopped by a garage sale and there on one of tables was a beautiful cigar box. The seller accepted my offer of $10 and I was off.

Returning home home, I located a 10.1″ LCD that I had leftover from a previous project and did a fit check inside the lid – it was just a bit small but almost spot on. After thinking about it for awhile, I decided that just having a Raspberry Pi in the box might be a bit dull and that there should be something to play with. So I added an Astro Pi to the assembly.

Components – the Box

On closer examination the box has some adhesive and water marks on the inside. While that wouldn’t be an issue for the lid, we decided to cover the bottom with a layer of green felt.

Components – Display Assembly

This is the 10.1″ LCD Assembly that was left over from another project. This was a semi custom assembly but a very similar equivalent can be picked up from Adafruit.

Components – the Innards

The components that make up the rest of our cigar box Pi are shown in the image above. I wanted to keep things tidy inside so rather than using two power supplies (12V for the display and 5V for the RPi), I picked up a small 12 to 5 regulator from Amazon. Note that this is an adjustable device so do not connect it to anything until you have set the output voltage to 5.1VDC. Components – Bezel As mentioned above, the LCD was just a bit small for the lid of the cigar box. So, to clean it up, we designed a rounded frame, or bezel using the tools at TinkerCAD. We then used a 3D printer to fabricate it. Since the bed on our printer is only 200x200mm, we had to print it in two sections. Bill of Materials 10.1″ LCD Assembly – ours was left over from another project but the 1287 from Adafruit should work well HDMI Cable – Monoprice 13575 Barrel Connector – Digikey 839-1271-ND 12V Power Cable – Digikey 10-01935 USB microB cable Raspberry Pi 3 Astro Pi 12-5V Converter – Efly LM2596 from Amazon Cigar Box – neighborhood garage sale 1/4″ Spacers – Digikey RPC1603-ND #4 x 1/2″ screws – Home Depot 102 173 Acrylic Plate – Pi-Plates CASEplate Bezel – 3D Printed Green Felt – Hobby Lobby HL202210 12VDC Power Supply – Jameco 1962345 1/4″ 3M VHB double sided tape Block Diagram The Cigarbox Pi has the following components: The Raspberry Pi 3 with the Astro Pi The 10.1″ LCD with video controller and OSD board The 12VDC power brick The 12 to 5V converter Assorted cables to attach all of the above The block diagram above shows how all of the components connect to each other. Assembly – Wiring Solder a 1′ length of 16-18 gauge two conductor wire (we used speaker cable) to the two terminals of the barrel connector. Drill a 3/8″ hole in the back of the box and then file the opening a bit until the barrel connector can slide in. Use epoxy to glue the connector into the hole with the end flush with the back of the cigar box. Leave this to cure overnight. Solder the wire from the center of the barrel connector to the + input on the 12 to 5 converter. Solder the wire on the edge of the connector to the – input of the 12 to 5 converter. Cut the 12V power cable to a length of about 6″ Solder the red wire of the 12V power cable to the + input of the 12 to 5 converter Solder the black wire of the 12V power cable to the – input of the 12 to 5 converter Cut the USB micro B cable to a length of about 8″ Strip off the outer insulating jacket cut off the white and green wires Solder the red wire from the USB cable to the + output of the 12 to 5 converter Solder the black wire of the 12V power cable to the – input of the 12 to 5 converter Fit Check and Drilling Connect the wires and do a rough fit check Apply power and verify that everything works Mark the hole locations for each board when satisfied Tap each hole with a 1/16″ drill bit Prepare and Apply the Felt

Trim the green felt to fit into the bottom of the box Place the felt into the box and the use a ball point pen to mark the hole locations Use a punch to place a hole in the felt over each of the mounting hole locations Mask off all of the inside edge of the box and cover the top with newspaper. In a well ventilated area, spray a uniform layer of contact cement on the bottom of the box Carefully align the felt and press into place.