|
3
|
1 # Hinged box
|
|
0
|
2
|
|
3
|
3 A parametric OpenSCAD box with a filament hinge at the back and a hinged
|
|
|
4 latch at the front. The box is sized by its inner dimensions. The default
|
|
|
5 of 92 x 92 x 92 mm holds a stack of 90 mm notepad paper standing on edge.
|
|
0
|
6
|
|
|
7 See also https://www.wobblyhead.net/projects/hinged_box.html
|
|
|
8
|
|
3
|
9 ## Design
|
|
|
10
|
|
|
11 The box has three printed parts: body, lid and latch. Three pieces of
|
|
|
12 filament serve as pins.
|
|
|
13
|
|
|
14 The body is the lower part. The inner part of its wall rises above the
|
|
|
15 seam as a lip, which fits into a recess in the lid and keeps the lid in
|
|
|
16 place when closed.
|
|
|
17
|
|
|
18 Body and lid share a row of hinge knuckles at the back, with the outer
|
|
|
19 ones on the body. One filament pin runs through all of them.
|
|
|
20
|
|
|
21 The latch hangs from two lid knuckles on a second pin. Two body knuckles
|
|
|
22 below it hold the third piece of filament as a bar. The hook at the
|
|
|
23 bottom of the latch wraps around this bar, and its tip reaches slightly
|
|
4
|
24 past it, so the latch snaps over the bar when closed. The back of the
|
|
|
25 hook is filled with a sloped web down to the latch plate, shaped like the
|
|
|
26 webs under the knuckles. A grip tab below the hook gives a finger hold.
|
|
|
27 If the grip tab is too short for the full web, the web ends two
|
|
|
28 extrusions before the edge of the tab.
|
|
3
|
29
|
|
|
30 Wall, floor and knuckle sizes are set in extrusions and layers. The model
|
|
|
31 converts them with the line width and layer height from the print
|
|
|
32 settings.
|
|
|
33
|
|
|
34 ## Use
|
|
|
35
|
|
|
36 Open `main.scad` in OpenSCAD and set the parameters in the Customizer. Two
|
|
|
37 presets are stored in `main.json`: "cardbox 45" and "calling cards box".
|
|
|
38
|
|
|
39 Select the part to export with the `part` setting. For export, the lid is
|
|
|
40 turned upside down and the latch is laid flat, both ready to print. The
|
|
|
41 body prints as it stands. All parts use the same parameters, so export
|
|
|
42 all three without changing anything else.
|
|
|
43
|
|
|
44 The console lists the derived sizes: wall thickness, outer size, body and
|
|
|
45 lid height, pin hole diameter, knuckle length, latch detent and the
|
|
|
46 clearance of the lid over the paper stack when it opens. The last echo
|
|
|
47 line is a file name that encodes the main parameters, for example
|
|
|
48 `hinged_box_w92d92h92b85_lw40lh20`. With a single part selected, the name
|
|
|
49 includes the part, as in `hinged_box_lid_w92d92h92b85_lw40lh20`.
|
|
|
50
|
|
|
51 After printing, push filament through the hinge knuckles, the latch
|
|
|
52 knuckles and the bar knuckles. The pin holes are the filament diameter
|
|
|
53 plus clearance on each side.
|
|
|
54
|
|
|
55 ## Main parameters
|
|
|
56
|
|
|
57 The Customizer comments describe every parameter, including edge radius,
|
|
|
58 lip size, chamfer and the preview options. The ones below set the box.
|
|
|
59
|
|
|
60 `inner_depth`, `inner_width` and `inner_height` give the inner size in mm,
|
|
|
61 front to back, left to right and floor to lid ceiling. For a paper stack,
|
|
|
62 `inner_width` is the thickness of the stack.
|
|
|
63
|
|
|
64 `body_ratio` is the share of the inner height taken by the body. The lid
|
|
|
65 needs enough height for the latch knuckles and the lip recess. If the
|
|
|
66 ratio leaves less, the body is made lower and the console prints a
|
|
|
67 warning with the ratio actually used.
|
|
|
68
|
|
|
69 The preview mockup and the lid sweep check take the paper size from
|
|
|
70 `paper_depth` and `paper_height`. Nothing else uses them.
|
|
|
71
|
|
|
72 Walls are `wall_lines` extrusions thick. Floor and lid top are
|
|
|
73 `floor_layers` layers.
|
|
|
74
|
|
|
75 For the hinge, set `filament_diameter` to the filament used for pins and
|
|
|
76 bar. `hinge_knuckles` is the number of hinge knuckles, an odd number.
|
|
|
77
|
|
4
|
78 `latch_width` is the width of the latch in mm. It is limited to the
|
|
|
79 straight part of the box front, between the rounded edges. A wider value
|
|
|
80 is narrowed to fit, and the console prints a warning with the width
|
|
|
81 actually used. The hook tip has to pass `latch_detent` mm of overlap at
|
|
|
82 the bar. With 0 the latch swings freely.
|
|
3
|
83
|
|
|
84 `line_width` and `layer_height` are the extrusion width and layer height
|
|
|
85 the walls are built from. `clearance` is the gap between moving parts and
|
|
|
86 around the pins.
|
|
|
87
|
|
|
88 ## Checks
|
|
|
89
|
|
|
90 The model stops with an error if the hinge knuckles get too short, the
|
|
4
|
91 detent is too large for the bar, the chamfer is higher than the floor,
|
|
|
92 or the inner height leaves no room for the body.
|