← Design and print

Design to a dimension

A box has a wall on every side, so its inside is the outside minus two walls. To fit something inside, start from the thing: its size, plus a gap each side, plus a wall each side, gives the outside.

Your Arduino needs a case. You print a box 'about the right size', and it's 2 mm too small. Plastic is cheap; your time and the printer's aren't. How do you get it right first time?

Every measurement here is in millimetres. In Tinkercad you set a shape's size by typing in its dimension boxes, and you make a hollow box by grouping a solid box with a slightly smaller "hole" box.

WidthMore contexts, same idea.
PredictRead the problem and decide what you think before you try anything. A wrong guess is fine: it shows you what to look for.

Inside width

A box is 40 mm wide on the outside, with 2 mm walls. How wide is the inside?

TryTry it on the board and compare the result with your prediction.

Try: walls and inside

Try it yourselfYour edits are saved in this browser.

Make the walls 3 mm. How much did the inside width shrink?

Use the board. This ticks when you get there.

Now change the outside width so the inside is exactly 60 mm (walls still 3 mm).

Use the board. This ticks when you get there.

InvestigateWork out why it happens, one step at a time.

Worked example: a case for an Uno

Worked exampleBefore each step, say what you think comes next.
  1. Uno width=68.6\text{Uno width} = 68.6Start from what goes inside.

Now the depth.

The Uno is 53.4 mm deep. With a 1 mm gap and a 2 mm wall each side, how deep is the case outside (mm)?

Sam's 57 mm part won't go in. Click the line where Sam's working first goes wrong.

ModifyChange the problem on purpose and see what happens.

Vary: change one thing

Try it yourselfYour edits are saved in this browser.

Set the outside size so the Uno fits with 1 to 1.5 mm to spare on the tightest side (2 mm walls).

Use the board. This ticks when you get there.

Now make the walls 3 mm for a tougher case, keeping a 1 to 1.5 mm gap.

Use the board. This ticks when you get there.

Modify TypicalChange the problem on purpose and see what happens.

Build it in Tinkercad

PractiseA few on your own, to check you have it.

Sizes

A box is 80 mm outside with 2.5 mm walls. Inside width (mm)?

A 30 mm part, a 0.5 mm gap each side, 2 mm walls. Outside width (mm)?

MakeMake your own problem using what you have learned. Expect a few tries; that is normal.

The smallest case

Try it yourselfYour edits are saved in this browser.
Need a hint?

Walls 1.5 mm, gap at least 0.5 mm on the tightest side.

Another hint

Width: 68.6 + 2 × 0.5 + 2 × 1.5 = 72.6, so 73 on a 0.5 mm slider.

Another hint

Depth: 53.4 + 1 + 3 = 57.4, so 57.5.

Make the smallest case you can with 1.5 mm walls and at least 0.5 mm to spare: no more than 73 × 58 mm.

Use the board. This ticks when you get there.

For teachers

Students find a box's inside size from its outside and walls, design a case for an Uno from the part outwards (part, gap, wall), meet Sam's one-wall slip, change the wall thickness, build the case in Tinkercad 3D by typed dimensions, and find the smallest case that fits. About 40 minutes.

Open the teacher guide: answers, solutions, slides and a worksheet.

Students will be able to

Before class

The board is a 2D top view; heights work the same way (a floor and a lid instead of side walls). Measure the real part with calipers if you have them: published sizes don't include sockets that stick out (the Uno's USB and power sockets do). Tinkercad: the same class code as Circuits.

Running the lesson

  1. Predict: draw a box on the board and point at both walls.
  2. Worked example: write it outwards, live.
  3. Tinkercad: ask why the hole box is placed 2 mm in and up.

The hard part (on purpose)

Students drag shapes to 'about right'. Make typing dimensions the rule.

When students get stuck

Stretch and support

Stretch: Add holes in the case wall for the Uno's USB and power sockets, measured from the board's edge.

Support: A drawn cross-section with part, gap and wall labelled on both sides.

Where it leads

Next: Parts that fit (clearance and tolerance).

Sources

What each step is for

Now you can
Next lesson2. Parts that fitDrawn the same size, a printed peg won't go in its hole: printers make holes smaller and pegs bigger. Plan a clearance: about 0.2–0.4 mm for a sliding fit, less for a tight press fit. Every printer differs, so calibrate with a test card.