From e25a6cba091c58a0f4f727899320d7e968a585ff Mon Sep 17 00:00:00 2001 From: Thomas Haukland Date: Wed, 1 May 2024 21:37:39 +0200 Subject: [PATCH] Case, wip --- case/cheapino.scad | 37 ++++++++++++++++++++++++++++++++----- case/readme.md | 2 +- 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/case/cheapino.scad b/case/cheapino.scad index 85a32e4..40c6687 100644 --- a/case/cheapino.scad +++ b/case/cheapino.scad @@ -1,26 +1,53 @@ height = 95.1738; width = 132.6134; -$fn=60; +step = 0.05; +$fn=30; height_translation = 0; + +/* // Height of case is 5mm from pcb to switch inset, // plus 1.6mm pcb height, for a total of 6.6mm -for (i = [0:0.05:2.5]) +color("red") +for (i = [0:step:2.5]) { translate([0,0,i]) //height_translation]) - base_line_extruded(i, 0.1); + base_line_extruded(i, 1); } +color("green") translate([0,0,2.5]) //height_translation]) base_line_extruded(2.5, 1.6); -for (i = [4.1:0.05:6.6]) + +color("blue") +for (i = [4.1:step:6.6]) { - translate([0,0,i]) //height_translation]) + translate([0,0,i-1]) //height_translation]) base_line_extruded(6.6-i, 1); } +*/ +// Lip to stop pcb +color("yellow") +translate([0,0,1.6]) + difference() + { + offset( delta=1) + base(); + offset( delta=-1) + base(); + } + /* +// Top plate +color("pink") +translate([0,0,5.1]) + linear_extrude(1.5) +offset( delta=0.5) + base(); + +*/ module base_line_extruded (factor, extrusion) { diff --git a/case/readme.md b/case/readme.md index 45e30b3..da1611e 100644 --- a/case/readme.md +++ b/case/readme.md @@ -5,4 +5,4 @@ Steps 2. Open in inkscape, select all and combine 3. For every point: mark(there will be 2) and select "join points": shft+L(shft L 4. Import and extrude(1.6 for bottom, 1.5 for top) in openscad - +5. Generate border in parts, export and import into tinkercad