A case for your board: five decisions, and how to get one made
A board is not a product until it has a case. Standoffs, clearance, screws, the connector opening and the lid decide whether the two fit the first time. The film puts a board into its case; the notes cover the numbers, the ways to make it, and how to ask for a quote on EIN.
A working board on the desk is a prototype. The same board in a case is something you can hand to another person. The case is also where first projects stall, because it is the first time two separately made things have to fit each other.
Five decisions do most of the work.
1. What the board stands on
The board should not rest on the floor of the case. Solder joints and through-hole pins stick out underneath, and a flat floor will rock on them.
- Give it four standoffs, 3 mm tall or more, under the mounting holes.
- Keep parts and traces away from the holes on the board: leave room for the screw head and the top of the standoff.
- Three holes hold a board. Four keep it flat.

2. How much air to leave
Nothing is made exactly to size. A routed board edge can be off by a tenth or two of a millimetre, and a printed or moulded wall by as much again. If the drawing has the board touching the wall, some of the cases will not close.
- Leave about 0.5 mm between the board edge and the wall, all the way round.
- Leave the same above the tallest part, more if the lid flexes.
- Let the standoffs and screws set the position, not the walls.
3. What holds it together
- Self-tapping screws cut their own thread in a plain hole in the plastic. They are the cheapest option and fine for a case that is opened a few times.
- Brass inserts pressed or melted into the plastic take machine screws. Use them if the case will be opened often.
- Snap fits need no screws but are harder to get right, and a printed snap breaks sooner than a moulded one.
4. Where the connector comes out
The connector decides where the wall goes, not the other way round. Its mouth should end flush with the outside of the case, or a hair proud of it. If it sits back inside a thick wall, the plug's shroud hits the case before the contacts meet.

- Put the connector at the board edge, overhanging if its datasheet says so.
- Make the opening about 0.5 mm larger than the connector on every side.
- Buttons and LEDs need the same thought: a hole, a light pipe, or a thin window in the wall.
5. Where the case splits
Two shells that meet at the height of the board are the easiest to assemble: the board drops in from above, the screws go in, the lid closes. Put the split where the connector opening is, so neither shell has to slide over the connector.

Draw the two together
Do not finish the board and then start the case. Export the board from your design tool as a 3D model (a STEP file, with the parts on it) and bring it into the case drawing. Move a mounting hole or a connector while both are still drawings, and the change costs nothing.
Ways to make it
| Method | Good for | Know before you choose | |---|---|---| | 3D printing | One to a few dozen | Fast and cheap to change. Surfaces show layer lines; fine snap fits are fragile. | | CNC machining | A few to a few hundred, or metal cases | Accurate and solid. Deep pockets and sharp inside corners cost more. | | Injection moulding | Hundreds and up | Lowest price per piece, after paying for the mould. Design changes after that are expensive. | | A ready-made box | Any quantity | Buy a standard enclosure and have openings cut. The board must fit the box, not the other way round. |
Most products go through the list in order: printed first, moulded when the design has stopped moving.
Asking for a quote on EIN
Boards go through EIN's PCB request, with DFM and instant prices. A case goes through the second kind of request, called Other Request, which is for everything that is not a board.
- Give it a title and describe what you need: how it is made, the material and colour, and how many.
- Attach the files: the STEP model, a PDF drawing with the dimensions that matter, pictures. Each file can be up to 10 MB.
- Choose the makers to send it to. They read it and write back with a price and a lead time. The request stays open for quotes for 30 days.
There is no automatic check for cases, so the description does the work a DFM report does for a board. Not every board maker makes cases, so say in the first line whether you want it printed, machined or moulded. The ones who can do it will answer.
The board and case in this film were drawn for the article. They are a design sketch, not a product.