diff --git a/3dprint/panel.scad b/3dprint/panel.scad index 71daa10..8169af7 100644 --- a/3dprint/panel.scad +++ b/3dprint/panel.scad @@ -4,7 +4,7 @@ $fs = 0.4; panel_border = 5; panel_width = 160 + 2*panel_border; panel_height = 100 + 2*panel_border; -panel_thick = 2; +panel_thick = 1; led_diam = 3; button_width = 15; @@ -38,10 +38,10 @@ module cutout_cyl(c_x, c_y, diam) { cylinder(r=diam/2 + wiggle_room, h=cutout_depth+2*epsilon); } -module screw_point(c_x, c_y) { - translate([c_x + 5, panel_height - 5 - c_y, -5]) +module screw_point(c_x, c_y, length = 5) { + translate([c_x + 5, panel_height - 5 - c_y, -length]) difference() { - cylinder(r=5.2/2+1, h=5); + cylinder(r=5.2/2+1, h=length); translate([0, 0, -epsilon]) cylinder(r=5.2/2, $fn=6, h=2+epsilon); } @@ -55,8 +55,8 @@ difference() { cube([panel_width, panel_height, panel_thick]); screw_point(2*2.54, 1.5*2.54); screw_point(61*2.54, 2.5*2.54); - screw_point(2*2.54, 37.5*2.54); - screw_point(61*2.54, 37.5*2.54); + screw_point(2*2.54, 37.5*2.54, length=12); + screw_point(61*2.54, 37.5*2.54, length=12); } translate([0, 0, -cutout_depth+panel_thick-epsilon]) union() { // HDG led