summaryrefslogtreecommitdiff
path: root/backplane.scad
diff options
context:
space:
mode:
Diffstat (limited to 'backplane.scad')
-rw-r--r--backplane.scad56
1 files changed, 0 insertions, 56 deletions
diff --git a/backplane.scad b/backplane.scad
deleted file mode 100644
index d1f3f9f..0000000
--- a/backplane.scad
+++ /dev/null
@@ -1,56 +0,0 @@
-include <parameters.scad>
-
-use <screw_hole.scad>
-
-module hdd_connector(w,h,d) {
- difference() {
- cube([w, d, h]);
- translate([1, 2, 1])
- cube([w - 2, d, h - 2]);
- }
-}
-
-
-// board
-module backplane_pcb() {
- color("sienna")
- difference() {
- cube([backplane_width, backplane_thickness, backplane_height]);
-
- // screw holes for ...
- for (p = [// ... PCB screws
- [0, bar_thickness/2],
- [0, tray_height - bar_thickness/2],
- [tray_width/2 - bar_thickness, tray_height - bar_thickness/2],
- [tray_width/2 + bar_thickness, tray_height - bar_thickness/2],
-
- // .. assembly hooks
- [rail_width/2 + bar_thickness/2, bar_thickness/2],
- [tray_width/4, tray_height - bar_thickness/2]
- ])
- translate([p[0] - backplane_hoffset, 0, p[1] - backplane_voffset])
- rotate([-90, 0, 0])
- screw_hole();
- }
-}
-
-module backplane_populated() {
- backplane_pcb();
-
- // front connector (power + data)
- color("darkgrey")
- translate([backplane_con_hoffset, 0, backplane_con_voffset])
- mirror([0, 1, 0]) {
- hdd_connector(backplane_con_width/ 3 * 2 + 1, backplane_con_height, backplane_con_depth);
- translate([backplane_con_width / 3 * 2, 0, 0])
- hdd_connector(backplane_con_width / 3 * 1, backplane_con_height, backplane_con_depth);
- }
-
- // back connector (data)
- translate([backplane_con_hoffset + backplane_con_width / 3 * 2,
- backplane_thickness, backplane_con_voffset])
- mirror([0, 1, 0]) rotate([90, 0, 0])
- hdd_connector(backplane_con_width / 3 * 1, backplane_con_height, backplane_con_depth);
-}
-
-backplane_populated(); \ No newline at end of file
contact: Jan Huwald // Impressum