At some point, many of our projects should go into an enclosure so that it looks nice or is projected from damage and even weather. Many styles of enclosures are available from Radio Shack (yes, they are still in business), Digikey and Jameco but cost can be high and finding exactly what you want can be difficult. Often, with a little ingenuity, enclosures can be found at hand. I've shown some different options here in the past for enclosures but you may be neglecting a great source of stylish enclosures as close as your bathroom - stick deodorant containers!
These come in different colors in a small range of sizes and some even have transparent end caps if you want to show some LEDs. These containers are nearly air-tight too, so a water-tight enclosure can be arranged with some judicious use of silicon sealant.
The pictures here show a couple of Old Spice Deodorant containers. A TAP-28 Plus board (98mm x 60mm) slides right in the larger container with about 12mm to spare in the length.
Since the response to this topic has been overwhelming (not), here's an additional hint.
If the board is too small to fit nicely in the enclosure, spacers may be used in the corners so that the board can wedge tightly in the enclosure. What? Of course all boards should have mounting holes in the corners!
Not sure why I didn't think of that. Great idea! How do you answer the 6-pin header connector? A right-angle would be better yes?
I am racing you! I am going to put one of my little OLED displays in the cap and use a teensy with a ESP8266 to relay sensor data from outside. Just an experiment. Looks like there MIGHT be room for a cell phone lithium battery under the board for back up power. Maybe a connector for a solar panel or two.
Can you link the silicon sealant you mentioned earlier?
Found Enclosures - Using What's Available
3 years 1 week ago #17798
The board was a handy TAP-28 board that I use for everything. If I was actually building something to fit in the enclosure, yes, right angle headers would be necessary.
As far as the silicon sealant goes, there are all kinds of them at the hardware store. There's silicon caulk for around the shower and tube (usually white) or many general purpose types, often in clear. A small amount would seal the lid, yet it's flexible and would allow the lid to be removed at a later time.