Introduction: Easy 2x4 Electronics Enclosures

Picture of Easy 2x4 Electronics Enclosures

I love electronics! It seems I'm always creating little gadgets and gizmos with leds and Arduinos. Unfortunately, most of them are very fragile and need an enclosure.

I've come up with a cool and modern-looking wooden enclosure made from a cheap 2x4!

Step 1: You Will Need...

Picture of You Will Need...

One of my goals for this project was to make it simple, easy, and cheap; so the list of materials is rather short!


  • 1x Short 2x4
  • 4x 1" Long Phillips Screws
  • 1x Circuit


  • Band Saw
  • Drill
    • 1" Forstner Drill Bit
    • 7/64" Drill bit (This size really depends on your screw)
  • Speed Square
  • Philips Screwdriver
  • Pencil
  • Glue Stick
  • Sand Paper (optional)

Step 2: Plan the Enclosure!

Picture of Plan the Enclosure!

First, try to make your circuit as small as possible; it needs to fit inside a 2x4! Your circuit must be smaller than 2 inches wide and 1 inch tall. The length is up to you!

My enclosure is designed to hold an Ultrasonic Distance Sensor.

Once you have your layout planned, I recommend you create a scale drawing in a cad program. I used Google Sketchup to draw and print the design.

After you printed your design, cut it out and use a small amount of glue to stick it to the 2x4.

Step 3: Cut to Length!

Picture of Cut to Length!

Next, use a bandsaw to cut the 2x4 to the length shown in your pattern.

While I chose to use a bandsaw, almost any type of saw will work - including hand saws. Just please, watch your fingers!

Step 4: Cut the Lid!

Picture of Cut the Lid!

Next use your square and pencil to mark a line lengthwise about 1/4 of an inch from the edge of the 2x4.

Then use your bandsaw to cut exactly on that line. You'll be cutting close to your fingers; please be careful!

Step 5: Bore It Out!

Picture of Bore It Out!

Draw a square on the bigger block, about 1/2 of an inch from the sides.

Now use the large forstner bit to bore out the middle of the box, staying in the lines. Don't drill too deep, only about 3/4 of an inch down.

Step 6: Drill Holes for the Circuit!

Picture of Drill Holes for the Circuit!

Drill the necessary holes for your circuit. In this example, they're only the two holes for the distance sensor.

Depending on your circuit, you may need holes for buttons, switches, leds, wires, etc.

Please note that your component might need ventilation.If you think it will heat up, drill a few small holes in the top to let the hot air out.

Step 7: Screw on the Lid!

Picture of Screw on the Lid!

Take your new enclosure, and place the lid you cut earlier back on top.

Then use the small drill bit to drill holes about 1/4 inch from each corner. Only drill down an inch, be careful not to drill through the front.

Finally, insert the four screws!

Step 8: Peel and Sand!

Picture of Peel and Sand!

Now cleanly peel off your paper template. This is when using little glue pays off!

This is optional, but it really makes it look great to give it a good, through sanding.

Step 9: Finish!

Picture of Finish!

Put the electronics in and you're done!


I hope you enjoyed reading this, and go on to make one yourself! I've found them to be rather addicting, and soon they'll start popping up on all your projects!

Feel free to comment if you have any questions, ideas, or to show off your own version. All feedback is welcome!


nvanbkirk (author)2017-03-17

Looks like a cool idea for a base enclosure that can be built with limited toolset and can be expanded upon as needed for different project needs. voted your project and props for the ideas. Makes an excellent skeleton/template upon which to build or add as necessary for individual projects.

I'm limited to hack saw, battery powered drills, dremmel, and all kinds of dremmel & drill bits that i could use to create breathing holes and to make a nice 'pad' in the base.

Seeing your pictures and steps gave me some ideas for reusing some wood spared from some old wooden desks just collecting dust in the garage.


I'm glad I could help! Feel free to share some pictures when you're done.

gcai_fwb (author)2017-03-14

nice job - seems some people get hung up on holes (or wholes) and/or the lack thereof - please that's what drill bits are for :)

was going to suggest if bigger enclosures are required stock lumber comes in bigger sizes too - 2x6 2x8 etc

ToolboxGuy (author)gcai_fwb2017-03-15

Agreed. Simply take a screwdriver to the back, remove the electronic bits and modify as your needs demand.

Great idea! I was thinking of gluing multiple 2x4s together, but never even thought of using wider stock! Duh! :)

just note that when using wider stock make sure it's been completely dried (old scrap that's been lying around a while)
framing used in construction tends to have moisture content which could cause cracking when it dries out particularly in the thin sections.

Thanks, I never even thought about the wood's moisture level.

DougM77 (author)2017-03-15

on step 4 could I use my chop saw instead (I don't have a band saw yet)?

Yes, you could; it's a bit dangerous. :-) A hand saw and vise is probably your better bet.

halciber (author)2017-03-15

I love the simplicity of this project! This is perfect for some of the things I want to do. Thank you!!

Killawhat (author)2017-03-14

Cool idea. I've been using some 100x50 box aluminum with the top cut off and some 50x100x5mm wood ends for stomp boxes. Depending on what you're putting in the wood box, RF signals could be a problem. If that's the case there's some conductive metal paint you can buy to paint on the inside as a shielding (you can get it from most guitar supply places - it's what they use to shield guitar cavities with). Definitely a quick and cheap way of getting a project up and going.

The Fishing Hobby (author)2017-03-14

This is a great idea! I have a suggestion. Instead of doing so much drilling and possibly chiseling to make your hole for the electronics, you could cut off another layer like you did for the top so now you have an lid, a middle section and a bottom. With the middle section , just drill a single hole all the way through and then use a scroll saw, jig saw or hand operated coping saw to cut out your opening to the size/shape you want and then glue the bottom on so that the middle section and bottom section are one solid pice again.
Great idea and instructable!

I had the exact same thought when I looked at this.

That sounds like a good way to make it easier, but I'm wondering if it'll mar the seamless appearance. I'll have to experiment with it!

Please vote for me in the top-right corner if you want to show your appreciation.

It would be most easily seen on the endgrain like your top is now. You could paint the ends and you would have to look really hard to see where it was pieced together if you could even see it at all. Use wood glue and clamp it together to dry and clean up the glue squeeze out and it will make a clean seam. You could even mix wood types for an intersting layered look. Pine 2x4's are cheap and easy to find but you can look for hardwoods to repurpose in trophy bases, cutting boards or plaques in thrift shops or garage sales. Even hardwood flooring samples would open up some more possibilities. Nothing wrong with the pine at all, but for some projects you may want a more elegant look. I voted for your 2 contest entries. Take care!

Thanks, I'm starting to see that these could have a decorative purpose instead of being purely functional!

apburner (author)2017-03-09

I am not sure what all the fussing is about. A bit large? No ventilation? No holes for the wires? EGAD this is a project box. Name a project box you purchase that is finished like you need. A project box is designed to be modified. This is a Brilliant idea. I will use the heck out of it now that it has been thought of. Thank you for sharing this addictedToArduino.

ScottP195 (author)apburner2017-03-14

Agree - jeez folks, it's an example! Meant to get the creative juices flowing. (Seems to be working)

I like the idea posted herein to cut out an additional slice and cut a clean square with a jig or band saw, and re glueing it to make the internal box. You could make the box really thin walled this way to help with heat dissipation in addition to making vent slices in the lid.

sconnors (author)ScottP1952017-03-14

If you want to take the back off, splitting it off rather than sawing it will allow you to make the glue line virtually invisible.

Finally someone that thinks like me! ;) Thanks a lot!

I would enjoy seeing some pictures of your versions!

Please vote for me in the top-right corner of this instructable if you want to show your appreciation.

Oncer (author)2017-03-14

Buy an enclosure??? Never! Here's my take on addictedToArduinos enclosure. Mines basically a wooden box with end cheeks. The face plate is 3mm acrylic back painted with gold acrylic paint and matt black - you will need to sand the paint surface of the acrylic for the paint to key. You can also add paper labels on the back as well for legends using a clear adhesive or even varnish to attach to the acrylic. All this was done with hand tools without a workshop in 2013.

addictedToArduino (author) Oncer2017-03-14

Good Job!

Bstard (author)2017-03-14

Great idea, (the simplest are often the best) A possible addition would be to countersink the screws so they dont scrape /scratch or get the rubber feet that come with screws that would give a pro look, lift the bottom so that you could add vent mesh or holes underneath, provide a means to adjust if it is not dead level (if that is required say for a laser device) and as said prevent scratches on surfaces. And I agree using a nice hardwood for a thin top and thin bottom would give it contrast depending on how you finish (stain, paint) - Thank you for sharing, I think this earns a vote.

addictedToArduino (author)Bstard2017-03-14

Great Idea!

mm.instructables (author)2017-03-14

This is also great for audio. A small Bluetooth speaker design will benefit from the sound quality a solid wood case provides. You just inspired me for my next weekend project. Thanks addictedToArduino!!!

Great! I'd like to see a picture of it when it's done!

lazydiyer (author)2017-03-10

Just a suggestion, but I wonder if you ran a 45 degree router bit around the top, you might end up with a pretty polished end-result.

Regardless, this is a great idea ! Thanks for sharing.

RichardM350 (author)lazydiyer2017-03-14

Or dress it up with an ogee for a more elegant appearance. I'm thinking a table top item like a clock, etc.

Great idea! I'll have to experiment with that sometime!

ggallen103 (author)2017-03-13

nice - what makes this flexible over buying enclosures - is you can make it any shape you want, not sure rectangular. The hardest part is gutting it - guess a drill press would work best - with a cleanup chisel.

A drill press works great, I normally use one, but didn't in this 'ible for those who don't have it.

A cleanup chisel would make it look a lot better, but since it's the inside, I don't think it's really necessary. A oscillating multitool works great for those too lazy for a chisel. (like me!)

I think the oscillating multitool is the new impact driver! Who knew how much they could do?

Exactly! Cut, Sand, Grind, Bore, and much more!

mckeephoto (author)2017-03-14

oh, I dig this one. Looks so much nicer than those generic project boxes. And, so easy to customize. Gotta try this on my next project.

Thanks! I would love to see pictures!

Please vote for me in the top-right corner of this instructable if you want to show your appreciation.

RichardM350 (author)2017-03-14

Awesome idea. I've been searching for enclosure to use for a project, actually purchased 3 only to find they just don't fit and the components are difficult to mount. I'll be in the shop later this evening making my first one of many to come. Thanks

Thanks, it would be great if you could comment with a picture of your own versions!

JimL42 (author)2017-03-14

Very creative idea, I'm constantly looking for small cigar boxes or plastic containers to hold my projects. Well Done

addictedToArduino (author)JimL422017-03-14


maxman (author)2017-03-14

Great idea. Some of the best things are the simplest. The uses for this are endless. This deserves a vote, for sure.

ThothLoki (author)2017-03-09

awesome job. What a great Hack. Voted!


rafununu (author)2017-03-09

A bit large for me, but well done.

You can cut it shorter, or even narrower if you wish. It's up to you!

Thanks for the compliment!

AshwinC6 (author)2017-03-08

You missed the ventilation too, don't you? All electronics component and even battery emits heat which heats up themselves if not ventilated! Have some holes added for air to come and go through!

rafununu (author)AshwinC62017-03-09

Holes are already there for the ultrasonic trans and receiver. This device emits a few milliwatts.

If your component needs ventilation, feel free to drill some holes in the back. I've ran these ultrasonic sensors constantly for months, and they're still cool to the touch.

Technovation (author)2017-03-09

Where are the wholes for the wires? And what about the component heating up?
Looks neat but doesn't make sense as a design...

This is a really versatile project box design that needs to be modified to fit your project. As I said in step 5, "you may need holes for buttons, switches, leds, wires, etc."

For the ventilation, it depends on the component. I've run these ultrasonic sensors constantly for months and they're still cool to the touch.

When you buy a commercial project box, it doesn't have built in ventilation or holes for wires either; you need to customize it to fit your needs. This is the same way!

DiyWaterDog (author)2017-03-08

I do not see a way to connect the component. Seems like it is locked away in that wood block.

About This Instructable




Bio: I'm officially one of those people that spend almost all their time connecting wires, typing code, and doing other stuff people call 'boring.' I ... More »
Add instructable to: