steve/plate
Rectangular plate blank, any width, length and thickness, in common plate and sheet materials.
Adafruit MacroPad RP2040 key plate (product 5128): 3 x 4 switch cut-outs, measured from Adafruit's published model.
| 1 | """Key plate of the Adafruit MacroPad RP2040 kit (Adafruit product 5128): a 59.69 x 78.74 mm plate with rounded |
| 2 | corners and a 3 x 4 grid of 14.224 mm square key switch cut-outs at 19.05 mm (0.75 in) pitch. |
| 3 | |
| 4 | The plate lies on the XY plane from z = 0, centred on the origin, the long side along Y. Measured from Adafruit's |
| 5 | published model (MIT); see the README. |
| 6 | """ |
| 7 | from steve import Model |
| 8 | |
| 9 | thickness = 1.57 # mm Plate thickness |
| 10 | |
| 11 | # mm, measured on Adafruit's model "5128 MacroPad RP2040-Keyplate.step" (its mid-thickness section, every edge read): |
| 12 | PLATE = { |
| 13 | "width": 59.69, # X (2.35 in) |
| 14 | "length": 78.74, # Y (3.1 in) |
| 15 | "corner_r": 2.54, # outside corner radius (0.1 in) |
| 16 | "cutout": 14.224, # square switch cut-out (0.56 in) |
| 17 | "pitch": 19.05, # cut-out centre pitch, both ways (0.75 in) |
| 18 | "columns": 3, # across X |
| 19 | "rows": 4, # along Y |
| 20 | } |
| 21 | |
| 22 | p = PLATE |
| 23 | w, l, r = p["width"], p["length"], p["corner_r"] |
| 24 | x, y = w / 2, l / 2 |
| 25 | model = Model() |
| 26 | with model.sketch("plate_sketch", on="XY", name="Plate") as sk: |
| 27 | sk.line("bottom", (-x + r, -y), (x - r, -y)) |
| 28 | sk.arc("corner_1", (x - r, -y + r), r, 270, 360) |
| 29 | sk.line("right", (x, -y + r), (x, y - r)) |
| 30 | sk.arc("corner_2", (x - r, y - r), r, 0, 90) |
| 31 | sk.line("top", (x - r, y), (-x + r, y)) |
| 32 | sk.arc("corner_3", (-x + r, y - r), r, 90, 180) |
| 33 | sk.line("left", (-x, y - r), (-x, -y + r)) |
| 34 | sk.arc("corner_4", (-x + r, -y + r), r, 180, 270) |
| 35 | model.extrude("plate", "plate_sketch", distance=thickness, name="Plate") |
| 36 | with model.sketch("cutout_sketch", on="XY", name="Switch cut-outs") as sk: |
| 37 | for i in range(p["columns"]): |
| 38 | for j in range(p["rows"]): |
| 39 | cx = (i - (p["columns"] - 1) / 2) * p["pitch"] |
| 40 | cy = (j - (p["rows"] - 1) / 2) * p["pitch"] |
| 41 | sk.center_rect(f"cutout_{i}_{j}", (cx, cy), p["cutout"], p["cutout"]) |
| 42 | model.extrude("cutouts", "cutout_sketch", distance=thickness, op="cut", name="Switch cut-outs") |
| 43 | result = model.result() |
| 44 |
| 1 | name = "steve/macropad-keyplate" |
| 2 | version = "1.0.0" |
| 3 | runtime = "steve" |
| 4 | license = "MIT" |
| 5 | summary = "Adafruit MacroPad RP2040 key plate (product 5128): 3 x 4 switch cut-outs, measured from Adafruit's published model." |
| 6 | description = """The key plate of the Adafruit MacroPad RP2040 kit (Adafruit product 5128): a 59.69 x 78.74 mm plate \ |
| 7 | with 2.54 mm corner radii and a 3 x 4 grid of 14.224 mm square key switch cut-outs at 19.05 mm pitch. Measured from \ |
| 8 | Adafruit's published 3D model (Adafruit_CAD_Parts, MIT, (c) Adafruit Industries); Adafruit publishes no dimensioned \ |
| 9 | drawing of it. |
| 10 | |
| 11 | On the XY plane from z = 0, centred on the origin, the long side along Y. Not affiliated with or endorsed by Adafruit.""" |
| 12 | tags = ["keyboard", "key-plate", "macropad", "adafruit", "mx-switch", "electronics", "plate"] |
| 13 | |
| 14 | [parameters.thickness] |
| 15 | type = "number" |
| 16 | default = 1.57 |
| 17 | min = 0.5 |
| 18 | max = 5 |
| 19 | unit = "mm" |
| 20 | label = "Plate thickness" |
| 21 | description = "1.57 mm (a 1.6 mm board) in Adafruit's model." |
| 22 | |
| 23 | [[presets]] |
| 24 | id = "5128-keyplate" |
| 25 | title = "Adafruit MacroPad RP2040 key plate (5128)" |
| 26 | params = { thickness = 1.57 } |
| 27 | aliases = ["MacroPad key plate", "MacroPad RP2040 keyplate", "Adafruit 5128 key plate", "3x4 MX switch plate", "Adafruit 5128"] |
| 28 | standard = "Adafruit 5128 model" |
| 29 |
The key plate of the Adafruit MacroPad RP2040 kit (Adafruit product 5128, https://www.adafruit.com/product/5128): a plate with rounded corners and a 3 × 4 grid of square key switch cut-outs. Not affiliated with or endorsed by Adafruit.
On the XY plane from z = 0, centred on the origin, the long side along Y.
| Feature | mm |
|---|---|
| Plate | 59.69 × 78.74 (2.35 × 3.1 in) |
| Thickness | 1.57 (the model's; parameter) |
| Corner radius | 2.54 |
| Switch cut-outs | 3 × 4, 14.224 square (0.56 in) |
| Cut-out pitch | 19.05 (0.75 in) both ways, grid centred |
| Parameter | Meaning |
|---|---|
thickness |
plate thickness, mm |
No material is assigned (the model names none).
Adafruit publishes a 3D model of the plate but no dimensioned drawing. The geometry was measured from the published reference model below (its largest face gives the plate's plane, its extent across it the thickness; the outline of its mid-thickness section was read edge by edge), and the preset is checked against it: bounding box within 0.05 mm and volume within 2 %.
5128 MacroPad RP2040 Kit/5128 MacroPad RP2040-Keyplate.step (commit 5ead410a, added by
Noe Ruiz), https://github.com/adafruit/Adafruit_CAD_Parts, © 2016 Adafruit Industries, MIT licence
(the repository's LICENSE). Distributed by step.parts as adafruit_5128_macropad_rp2040_keyplate.Simplifications: three of the model's cut-outs have one corner rounded to 0.254 mm (a modelling artefact; 0.07 mm³ in all): all cut-outs are drawn square.
Preset list: from the step.parts catalogue (MIT), see library/NOTICE.md.
| 1 | # Adafruit MacroPad RP2040 key plate |
| 2 | |
| 3 | The key plate of the Adafruit MacroPad RP2040 kit (Adafruit product 5128, |
| 4 | https://www.adafruit.com/product/5128): a plate with rounded corners and a 3 × 4 grid of square key switch cut-outs. |
| 5 | Not affiliated with or endorsed by Adafruit. |
| 6 | |
| 7 | ## Geometry |
| 8 | |
| 9 | On the XY plane from z = 0, centred on the origin, the long side along Y. |
| 10 | |
| 11 | | Feature | mm | |
| 12 | |---|---| |
| 13 | | Plate | 59.69 × 78.74 (2.35 × 3.1 in) | |
| 14 | | Thickness | 1.57 (the model's; parameter) | |
| 15 | | Corner radius | 2.54 | |
| 16 | | Switch cut-outs | 3 × 4, 14.224 square (0.56 in) | |
| 17 | | Cut-out pitch | 19.05 (0.75 in) both ways, grid centred | |
| 18 | |
| 19 | ## Parameters |
| 20 | |
| 21 | | Parameter | Meaning | |
| 22 | |---|---| |
| 23 | | `thickness` | plate thickness, mm | |
| 24 | |
| 25 | No material is assigned (the model names none). |
| 26 | |
| 27 | ## Sources |
| 28 | |
| 29 | Adafruit publishes a 3D model of the plate but no dimensioned drawing. **The geometry was measured from the published |
| 30 | reference model** below (its largest face gives the plate's plane, its extent across it the thickness; the outline |
| 31 | of its mid-thickness section was read edge by edge), and the preset is checked against it: bounding box within |
| 32 | 0.05 mm and volume within 2 %. |
| 33 | |
| 34 | - **Adafruit_CAD_Parts**, `5128 MacroPad RP2040 Kit/5128 MacroPad RP2040-Keyplate.step` (commit 5ead410a, added by |
| 35 | Noe Ruiz), https://github.com/adafruit/Adafruit_CAD_Parts, © 2016 Adafruit Industries, **MIT** licence |
| 36 | (the repository's LICENSE). Distributed by step.parts as `adafruit_5128_macropad_rp2040_keyplate`. |
| 37 | |
| 38 | Simplifications: three of the model's cut-outs have one corner rounded to 0.254 mm (a modelling artefact; 0.07 mm³ in |
| 39 | all): all cut-outs are drawn square. |
| 40 | |
| 41 | Preset list: from the step.parts catalogue (MIT), see `library/NOTICE.md`. |
| 42 |
The key plate of the Adafruit MacroPad RP2040 kit (Adafruit product 5128): a 59.69 x 78.74 mm plate with 2.54 mm corner radii and a 3 x 4 grid of 14.224 mm square key switch cut-outs at 19.05 mm pitch. Measured from Adafruit's published 3D model (Adafruit_CAD_Parts, MIT, (c) Adafruit Industries); Adafruit publishes no dimensioned drawing of it. On the XY plane from z = 0, centred on the origin, the long side along Y. Not affiliated with or endorsed by Adafruit.
The key plate of the Adafruit MacroPad RP2040 kit (Adafruit product 5128, https://www.adafruit.com/product/5128): a plate with rounded corners and a 3 × 4 grid of square key switch cut-outs. Not affiliated with or endorsed by Adafruit.
On the XY plane from z = 0, centred on the origin, the long side along Y.
| Feature | mm |
|---|---|
| Plate | 59.69 × 78.74 (2.35 × 3.1 in) |
| Thickness | 1.57 (the model's; parameter) |
| Corner radius | 2.54 |
| Switch cut-outs | 3 × 4, 14.224 square (0.56 in) |
| Cut-out pitch | 19.05 (0.75 in) both ways, grid centred |
| Parameter | Meaning |
|---|---|
thickness |
plate thickness, mm |
No material is assigned (the model names none).
Adafruit publishes a 3D model of the plate but no dimensioned drawing. The geometry was measured from the published reference model below (its largest face gives the plate's plane, its extent across it the thickness; the outline of its mid-thickness section was read edge by edge), and the preset is checked against it: bounding box within 0.05 mm and volume within 2 %.
5128 MacroPad RP2040 Kit/5128 MacroPad RP2040-Keyplate.step (commit 5ead410a, added by
Noe Ruiz), https://github.com/adafruit/Adafruit_CAD_Parts, © 2016 Adafruit Industries, MIT licence
(the repository's LICENSE). Distributed by step.parts as adafruit_5128_macropad_rp2040_keyplate.Simplifications: three of the model's cut-outs have one corner rounded to 0.254 mm (a modelling artefact; 0.07 mm³ in all): all cut-outs are drawn square.
Preset list: from the step.parts catalogue (MIT), see library/NOTICE.md.
Rectangular plate blank, any width, length and thickness, in common plate and sheet materials.
Round unthreaded clearance spacer for M3 screws (Harwin R30-601): Ø4.76 × Ø3.30, any length.
PCB card guide and board retaining clip, boards 1 to 2.4 mm, any length: simplified, measured from step.parts' models.
PCB support post (snap-in, adhesive-backed, swage, press-fit), M2 to M4, any height: simplified, measured from step.parts' models.