chiark / gitweb /
led-panel-ceiling-bracket: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 29 Oct 2015 19:38:50 +0000 (19:38 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 29 Oct 2015 19:38:50 +0000 (19:38 +0000)
led-panel-ceiling-bracket.scad [new file with mode: 0644]

diff --git a/led-panel-ceiling-bracket.scad b/led-panel-ceiling-bracket.scad
new file mode 100644 (file)
index 0000000..a2e05ff
--- /dev/null
@@ -0,0 +1,28 @@
+// -*- C -*-
+
+holespc = 20;
+
+len = 50;
+width = 20;
+backspc = 10;
+light_height = 12.5;
+hole_from_back = 7.2 + 0.5;
+hole_dia = 3.5 + 0.5;
+
+height = light_height + backspc;
+
+module Bracket(){
+  difference(){
+    translate([-len/2, 0,0])
+      cube([len, width, height]);
+    for (xsgn=[-1,+1]) {
+      translate([xsgn * holespc/2, -1, light_height - hole_from_back]) {
+       rotate([-90,0,0])
+         rotate([0,0,360/8/2])
+         cylinder(r=hole_dia/2, h=50, $fn=8);
+      }
+    }
+  }
+}
+
+Bracket();