Buying guide · Beginner · 3 min read
Project Enclosures, Standoffs and Screws
Mounting Guide
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
An enclosure protects your circuit from fingers, dust and water, and makes a project look finished. Plastic ABS boxes are easy to drill; aluminium boxes shield noise and spread heat; IP65 boxes with cable glands survive outdoors. Mount boards on nylon or brass standoffs with matching screws: M3 for Arduino Uno, M2.5 for Raspberry Pi. Plan holes for connectors, ventilation and antennas before you drill.
Key specs at a glance
- Materials
- ABS or polycarbonate plastic, die-cast aluminium, 3D printed
- Ratings
- IP54 splash resistant, IP65 dust tight and jet resistant, IP67 temporary immersion
- Standoffs
- M2, M2.5, M3; brass (conductive) or nylon (insulating)
- Board holes
- Arduino Uno M3 (3.2 mm); Raspberry Pi M2.5 (2.75 mm)
- Cable entry
- Cable glands (PG7, PG9, M16) keep the seal
- DIN rail
- 35 mm rail mounts for panels and industrial boxes
Choosing an enclosure
leave room for wires, connectors and fingers; a box that just fits the board is hard to assemble.
plastic for easy drilling and radios (Wi-Fi, LoRa); metal blocks radio signals, so use an external antenna through the wall.
choose an IP65 or better box with a gasket, cable glands and a UV-stable plastic. Add a breather vent or silica gel to reduce condensation.
regulators, chargers and motor drivers need airflow or a metal box acting as a heatsink. See heatsinks and fans.
mains projects need a closed, non-flammable or earthed enclosure with strain relief on the power cable.
Standoffs, screws and spacing
Use standoffs to lift boards off the box floor so solder joints cannot short on screws or metal. Nylon standoffs insulate; brass ones are stronger and conduct, which is fine where the hole is a grounded pad.
Common sizes: M3 for Arduino boards and many modules, M2.5 for Raspberry Pi and some ESP32 boards, M2 for small sensor modules. Stack boards with male-female standoffs. Use washers on plastic and do not overtighten into 3D printed parts; heat-set brass inserts make strong threads in plastic.
Holes, cables and labels
- Mark holes with a template or tape, drill small pilot holes first, then step up. A step drill makes clean round holes in plastic and thin metal.
- Square holes for USB or displays: drill the corners, then file.
- Use cable glands or grommets so wires do not rub on sharp edges, and add strain relief.
- Label switches and connectors; a label maker or printed sticker makes a big difference.
- Hot glue is fine for holding wires, not for mounting boards that get warm.
Common mistakes to avoid
- A box with no room for wiring.
- Metal box blocking Wi-Fi or LoRa signals.
- Mounting boards directly on metal without standoffs.
- Outdoor boxes with unsealed cable holes.
- Overtightening screws into plastic and stripping threads.
Frequently asked questions
What screw size fits Arduino Uno mounting holes?
M3 screws fit the Uno's 3.2 mm holes.
What screw size fits Raspberry Pi?
M2.5 screws and standoffs.
What does IP65 mean?
Dust tight and protected against water jets from any direction.
Will my ESP32 work inside a metal box?
Signal will be weak or blocked. Use a plastic box or an external antenna.
How do I stop condensation in an outdoor box?
Use a breather vent, silica gel and avoid sealing warm, humid air inside.
Parts for this guide
Terms in this guide
Projects that use it
Put this into practice: 2 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- IEC 60529 ingress protection ratings
- Hammond Manufacturing enclosure selection guide
- Raspberry Pi and Arduino mechanical drawings
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.




