wobblyhead hg > 3dprints > hinged_box
comparison README.md @ 10:a7a1b12fd6bf
latch: latches on any side, back latch for a removable lid
Add back_side to put the hinge or a latch on the back, and latch_front,
latch_left and latch_right checkboxes. The latch hardware is modelled in
a face frame and placed on each latched side. All latches share one
width, clamped to the narrowest latched face; the console lists the
latched sides and the number of latches to print. A layout other than
front latch with back hinge adds an l token with the side letters to
the file name.
Replace preview_lid_angle with preview_lid_open in percent: with the
hinge 100 turns the lid by 180 degrees, without it lifts the lid by one
body height. Presets converted. README updated.
| author | ark |
|---|---|
| date | 2026-11-17 12:53 +0100 |
| parents | ac8f2ecb6c18 |
| children | 7bef1d0cb914 |
comparison
equal
deleted
inserted
replaced
| 9:4b89f95689a8 | 10:a7a1b12fd6bf |
|---|---|
| 1 # Hinged box | 1 # Hinged box |
| 2 | 2 |
| 3 A parametric OpenSCAD box with a filament hinge at the back and a hinged | 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 | 4 latch at the front. Further latches can go on the left and right sides, |
| 5 of 92 x 92 x 92 mm holds a stack of 90 mm notepad paper standing on edge. | 5 and a latch can replace the hinge for a removable lid. The box is sized |
| 6 by its inner dimensions. The default of 92 x 92 x 92 mm holds a stack of | |
| 7 90 mm notepad paper standing on edge. | |
| 6 | 8 |
| 7 See also https://www.wobblyhead.net/projects/hinged_box.html | 9 See also https://www.wobblyhead.net/projects/hinged_box.html |
| 8 | 10 |
| 9 ## Design | 11 ## Design |
| 10 | 12 |
| 11 The box has three printed parts: body, lid and latch. Three pieces of | 13 The box has three printed parts: body, lid and latch, plus one more |
| 12 filament serve as pins. | 14 latch for each further latched side. Pieces of filament serve as pins: |
| 15 one for the hinge and two for each latch. | |
| 13 | 16 |
| 14 The body is the lower part. The inner part of its wall rises above the | 17 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 | 18 seam as a lip, which fits into a recess in the lid and keeps the lid in |
| 16 place when closed. | 19 place when closed. |
| 17 | 20 |
| 18 Body and lid share a row of hinge knuckles at the back, with the outer | 21 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. | 22 ones on the body. One filament pin runs through all of them. With a |
| 23 latch at the back instead, the lid has no hinge and comes off once all | |
| 24 latches are open. | |
| 20 | 25 |
| 21 The latch hangs from two lid knuckles on a second pin. Two body knuckles | 26 Each latch hangs from two lid knuckles on a pin of its own. Two body knuckles |
| 22 below it hold the third piece of filament as a bar. The latch itself | 27 below it hold the third piece of filament as a bar. The latch itself |
| 23 sits in the slot between these knuckles. The hook at the bottom of the | 28 sits in the slot between these knuckles. The hook at the bottom of the |
| 24 latch wraps around this bar, and its tip reaches slightly past it, so | 29 latch wraps around this bar, and its tip reaches slightly past it, so |
| 25 the latch snaps over the bar when closed. | 30 the latch snaps over the bar when closed. |
| 26 | 31 |
| 28 with a plate in front of the outer knuckles, and a grip tab below the | 33 with a plate in front of the outer knuckles, and a grip tab below the |
| 29 hook gives a finger hold. The plate either spans the full latch width | 34 hook gives a finger hold. The plate either spans the full latch width |
| 30 and prints flat, or is only as wide as the middle slot and prints | 35 and prints flat, or is only as wide as the middle slot and prints |
| 31 standing on its side. The block style is a solid piece with the same | 36 standing on its side. The block style is a solid piece with the same |
| 32 rounded and sloped profile as the body knuckles. It reaches from the | 37 rounded and sloped profile as the body knuckles. It reaches from the |
| 33 latch knuckle down past the hook, and its back lies along the box front. | 38 latch knuckle down past the hook, and its back lies along the box face. |
| 34 Between knuckle and hook, only the knuckle ring and the front wall | 39 Between knuckle and hook, only the knuckle ring and the front wall |
| 35 remain. Below the bar, the cut-out on the wall side runs from the hook | 40 remain. Below the bar, the cut-out on the wall side runs from the hook |
| 36 tip straight down to the back face, so the bar can leave when the latch | 41 tip straight down to the back face, so the bar can leave when the latch |
| 37 opens. A notch at the bottom edge of the back face takes a fingernail. | 42 opens. A notch at the bottom edge of the back face takes a fingernail. |
| 38 The block prints standing on its side. | 43 The block prints standing on its side. |
| 61 latch name adds its style: `plate`, `plate-middle` or `block`, as in | 66 latch name adds its style: `plate`, `plate-middle` or `block`, as in |
| 62 `hinged_box_latch_block_w92d92h92b85_lw40lh20`. A box with more than one | 67 `hinged_box_latch_block_w92d92h92b85_lw40lh20`. A box with more than one |
| 63 cell adds the column and row count, as in | 68 cell adds the column and row count, as in |
| 64 `hinged_box_c3r2_w92d92h92b85_lw40lh20`. A latch middle share other than | 69 `hinged_box_c3r2_w92d92h92b85_lw40lh20`. A latch middle share other than |
| 65 .33 adds `lm` and the share in percent after the body ratio, as in | 70 .33 adds `lm` and the share in percent after the body ratio, as in |
| 66 `hinged_box_w92d92h92b85lm50_lw40lh20`. | 71 `hinged_box_w92d92h92b85lm50_lw40lh20`. A latch layout other than a |
| 72 front latch with the back hinge adds `l` and the latched sides, from | |
| 73 front, back, left and right, as in `hinged_box_lfblr_w92d92h92b85_lw40lh20` | |
| 74 for a removable lid latched on all four sides. | |
| 67 | 75 |
| 68 After printing, push filament through the hinge knuckles, the latch | 76 After printing, push filament through the hinge knuckles, and the latch |
| 69 knuckles and the bar knuckles. The pin holes are the filament diameter | 77 and bar knuckles of each latched side. The pin holes are the filament |
| 70 plus clearance on each side. | 78 diameter plus clearance on each side. |
| 71 | 79 |
| 72 ## Main parameters | 80 ## Main parameters |
| 73 | 81 |
| 74 The Customizer comments describe every parameter, including edge radius, | 82 The Customizer comments describe every parameter, including edge radius, |
| 75 lip size, chamfer and the preview options. The ones below set the box. | 83 lip size, chamfer and the preview options. The ones below set the box. |
| 102 `floor_layers` layers. | 110 `floor_layers` layers. |
| 103 | 111 |
| 104 For the hinge, set `filament_diameter` to the filament used for pins and | 112 For the hinge, set `filament_diameter` to the filament used for pins and |
| 105 bar. `hinge_knuckles` is the number of hinge knuckles, an odd number. | 113 bar. `hinge_knuckles` is the number of hinge knuckles, an odd number. |
| 106 | 114 |
| 115 `back_side` puts the hinge or a latch on the back. `latch_front`, | |
| 116 `latch_left` and `latch_right` add latches on the other sides, left and | |
| 117 right as seen from the front. Without the hinge, the lid sweep check is | |
| 118 left out. With the hinge, open the side latches before opening the lid. | |
| 119 | |
| 107 `latch_style` selects the plate or the block latch. `latch_width` is the | 120 `latch_style` selects the plate or the block latch. `latch_width` is the |
| 108 width of the latch in mm. If it is wider than the hinge span, the latch | 121 width of the latches in mm, the same for all of them. If it is wider |
| 109 is narrowed to the span and the console prints a warning with the width | 122 than the narrowest latched face, all latches are narrowed to fit and the |
| 110 actually used. `latch_middle_ratio` is the share of that width taken by | 123 console prints a warning with the width actually used. The console also |
| 111 the middle slot with the latch knuckle; the two outer slots share the | 124 gives the number of latches to print. `latch_middle_ratio` is the share |
| 112 rest. A ratio that leaves any slot narrower than two extrusions is | 125 of that width taken by the middle slot with the latch knuckle; the two |
| 113 clamped, with a warning. | 126 outer slots share the rest. A ratio that leaves any slot narrower than |
| 127 two extrusions is clamped, with a warning. | |
| 114 | 128 |
| 115 For the plate style, `latch_plate_full` makes the plate span the full | 129 For the plate style, `latch_plate_full` makes the plate span the full |
| 116 latch width, printed flat. Without it, the plate is as wide as the | 130 latch width, printed flat. Without it, the plate is as wide as the |
| 117 middle slot and the latch prints on its side. `latch_layers` sets the | 131 middle slot and the latch prints on its side. `latch_layers` sets the |
| 118 plate thickness in layers. On its side, that thickness is rounded up to | 132 plate thickness in layers. On its side, that thickness is rounded up to |
