]> www.fi.muni.cz Git - things.git/blobdiff - led-strip-holder2.scad
LED strip holders
[things.git] / led-strip-holder2.scad
diff --git a/led-strip-holder2.scad b/led-strip-holder2.scad
new file mode 100644 (file)
index 0000000..a0e7e96
--- /dev/null
@@ -0,0 +1,42 @@
+infty = 1000;
+eps = 0.01;
+
+wall = 2;
+screw_hole = 3.5;
+screw_l = 1;
+screw_head = 9;
+holder_w = 8.5;
+strip_w = 13;
+strip_h = 0.5;
+holder_l = strip_w + wall;
+
+module body_solid() {
+       cube([wall + strip_h, holder_l, holder_w]);
+       translate([wall-eps, 0, 0])
+               cube([screw_head + screw_l + eps, wall, holder_w]);
+//     translate([holder_w/2, holder_w/2, wall-eps])
+//             cylinder(r = screw_head/2, h = wall+eps, $fn = 128);
+}
+
+module body() {
+       difference() {
+       body_solid();
+       // LED strip
+       translate([-eps, -eps, -eps])
+               cube([strip_h + eps, strip_w, holder_w + 2*eps]);
+       // screw hole
+       hull() for (x = [0, screw_l])
+               translate([wall + screw_head/2 + x, -eps, holder_w/2])
+               rotate([-90, 0, 0])
+                       cylinder(r = screw_hole/2, h = wall + 2*eps);
+/*
+       hull() for (x = [0,1])
+               translate([holder_w/2, wall + screw_hole/2 + screw_l*x, -eps])
+                       cylinder(r = screw_hole/2, h = wall + strip_h + 2*eps);
+       translate([-eps, holder_l - wall - strip_w, -eps])
+               cube([holder_w + 2*eps, strip_w, strip_h+eps]);
+*/
+       }
+}
+
+body();