From e015585a8b554d4945db0c1cde4bb4336d12f892 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Sat, 15 Apr 2023 19:29:46 -0300 Subject: [PATCH] Make keyboard more parametric --- notebook_nueva/components/keyboard.py | 15 ++++++++++----- notebook_nueva/dimensions.py | 5 +++++ notebook_nueva/tandy_lid.stl | Bin 268284 -> 268284 bytes notebook_nueva/tandy_lid_left.stl | Bin 144484 -> 144484 bytes 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/notebook_nueva/components/keyboard.py b/notebook_nueva/components/keyboard.py index d1caaa7..9e7dcfa 100644 --- a/notebook_nueva/components/keyboard.py +++ b/notebook_nueva/components/keyboard.py @@ -9,6 +9,11 @@ kbd_back_thickness = 0 kbd_front_thickness = 0 kbd_actual_height = 0 kbd_angle = 0 +kbd_pillar_offset_1 = 0 +kbd_pillar_radius_1 = 0 +kbd_pillar_offset_2 = 0 +kbd_pillar_radius_2 = 0 +kbd_screw_radius = 0 def init(): @@ -19,19 +24,19 @@ def init(): { "x": 0, "y": 0, - "z": 5.5, - "shape": cq.Sketch().push(kbd_pillar_positions).circle(5, mode="a"), + "z": kbd_pillar_offset_1, + "shape": cq.Sketch().push(kbd_pillar_positions).circle(kbd_pillar_radius_1, mode="a"), }, # Taller pillars with holes for self-tapping screws { "x": 0, "y": 0, - "z": 2.5, + "z": kbd_pillar_offset_2, "shape": ( cq.Sketch() .push(kbd_pillar_positions) - .circle(2.4, mode="a") - .circle(1.1, mode="s") + .circle(kbd_pillar_radius_2, mode="a") + .circle(kbd_screw_radius, mode="s") ), }, ] diff --git a/notebook_nueva/dimensions.py b/notebook_nueva/dimensions.py index 15f4003..71fb19c 100644 --- a/notebook_nueva/dimensions.py +++ b/notebook_nueva/dimensions.py @@ -41,6 +41,11 @@ keyboard.kbd_pillar_positions = [ (145.5, 82.5), (keyboard.kbd_width - 19, 79.5), ] +keyboard.kbd_pillar_offset_1 = 5.5 +keyboard.kbd_pillar_radius_1 = 5 +keyboard.kbd_pillar_offset_2 = 2.5 +keyboard.kbd_pillar_radius_2 = 2.4 +keyboard.kbd_screw_radius = 1.1 keyboard.init() ## Screen dimensions diff --git a/notebook_nueva/tandy_lid.stl b/notebook_nueva/tandy_lid.stl index 5c5bd0b00709e9f5db0da61923f4f2a482d2c6ed..aa3b9d1de7e48becca1895943a39c1c389df4acb 100644 GIT binary patch delta 884 zcmWmAK}eHf90qXq*FvJh4&p&1L}Kh9N+uqnQwP~$%dw_?e&&+c=F%LJCOXQdeaxI| zgv8#62#JsoK?&I>AtOFKj2*@p5z!(g8zG}N|Xq%XrranhoL z6DF4~d39?9$xb%OEIAs%pnMN$gEWqU2B%?A+o#P-M#+JZ1sIgka5y7d(L!@?6jQ}50g=C3)0<@A{vPhaI!7-BA zKPgF362+;dDJ;H?f-o=(Q3=>oY8qW9PGIJyxji<6?gHlaj5tI!&Y_o|p!dy*ChE^T z`Ztm$R~PUdrwd45i8ltWkUg>t%wI9FZ0hGz^v}S&{7kB%I^*c)&*i$hAD3&&Vtq|& zL|Xz5l3d~|EF<|yg=9(V3$RGsWS2A>;FxKisUMhI2LE1G&`SyMD1rCrUBR{MTq}^S zmtdWYkwfBK1%H|JRs7|%Btddq`^~gZ+SYK@SPIESTFA*7*iK<^DUEdW3T%>_ ZY208I$tTYuyb^mH#l!K&Aiy delta 883 zcmW;IPe_w-9LI6?)k31f4&p&1LSlFbr8PWs>>xXAIo7l}^FdLkP$;->@dcNkd7iTB!Fftu@#MfpA|O&W(lm~@l3L)d;ZP!9|V>N7(&FR1T9%S8KbD$C@M#6VcgXF5OtN9q#6blR))C7Kr7iH3#54*9HMm3 zxWq*{CNP&C z{FNlhwR!xR-}9(1#1jEm$Szp|`d3797WMNf=8r&MekN5>*Q0V%{e3Pslo7=yM_!W} z@h<`!i7(KH2NGDMTufPVG ZCYO?u(&eON(<;~1fDZt4t*fD_@()5^L!tlx diff --git a/notebook_nueva/tandy_lid_left.stl b/notebook_nueva/tandy_lid_left.stl index ac638fdf47c7bf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