From 064021b1d2c4663aa5c4789308b0b96e28db8c4e Mon Sep 17 00:00:00 2001 From: Maximilian Stiefel Date: Sat, 19 Jun 2021 14:42:55 +0200 Subject: [PATCH] First revision of battery clamp cover --- battery_clamp_cover/battery_clamp_cover.scad | 40 ++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 battery_clamp_cover/battery_clamp_cover.scad diff --git a/battery_clamp_cover/battery_clamp_cover.scad b/battery_clamp_cover/battery_clamp_cover.scad new file mode 100644 index 0000000..f8fe687 --- /dev/null +++ b/battery_clamp_cover/battery_clamp_cover.scad @@ -0,0 +1,40 @@ +$fn = 50; +width_clamp = 30; +length_clamp = 57; +height_clamp = 20; +thickness = 2; +radius = 4; +diameter_cable = 10; +diameter_cable_tie = 6; +thickness_cable_tie = 2; +color("steelblue") +difference() { + difference() { + // Body + hull() + for (x = [-1:2:1]) + for (y = [-1:2:1]) + { + translate([x * (width_clamp/2-radius + thickness), y * (length_clamp/2-radius + thickness), (height_clamp+thickness)/2]) + cylinder(h = height_clamp + thickness, r = radius, center = true); + } + // Cutout for the actual clamp + translate([0, 0, height_clamp/2-0.001]) + cube([width_clamp, length_clamp, height_clamp], center=true); + } + translate([0, length_clamp/2 - 2 - diameter_cable/2, 0]) + union () { + for (x = [-1:2:1]) + for (y = [-1:2:1]) + { + translate([x*(width_clamp/2 - diameter_cable_tie/2), y*(diameter_cable/2 + 1), 0]) + cube([diameter_cable_tie, thickness_cable_tie, height_clamp*3], center = true); + } + hull() { + translate([0, 0, height_clamp - diameter_cable/2]) + rotate([0, 90, 0]) + cylinder(r = diameter_cable/2, h = width_clamp*2, center = true); + cube([width_clamp*2, diameter_cable, height_clamp], center=true); + } + } +}