From 85894347e087d586a3874251e29138f55d73aded Mon Sep 17 00:00:00 2001 From: Deon Spengler Date: Sat, 24 Jun 2023 19:45:33 +0200 Subject: [PATCH] Battery cover rail --- cad/display.scad | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/cad/display.scad b/cad/display.scad index 87ad665..f9e0b03 100644 --- a/cad/display.scad +++ b/cad/display.scad @@ -92,6 +92,14 @@ module battery_compartment(){ translate([hole_x, depth+(thickness*2)-hole_y, height+battery_height]) cylinder(h=thickness, d=hole); } + + // rails + translate([19, thickness+0.1, height+battery_height+thickness]) + female_rail(battery_width-19); + + translate([19, depth+thickness-0.1, height+battery_height+thickness]) + mirror([0, 1, 0]) + female_rail(battery_width-19); } module rpi4_cover(){ @@ -176,4 +184,25 @@ module male_hinge(){ tab(l, th); translate([0, sp, 0]) tab(l, th); +} + +module female_rail(length){ + difference(){ + cube([length, 2.4, 3]); + + translate([0, -0.12, 0.09]) + rotate([45, 0, 0]) + cube([length, 2, 2]); + } +} + +module male_rail(length){ + difference(){ + translate([0, -0.12, 0.09]) + rotate([45, 0, 0]) + cube([length, 2, 2]); + + translate([0, -1, 0]) + cube([length, 1, 3]); + } } \ No newline at end of file