diff options
author | Jan Huwald <jh@sotun.de> | 2014-02-11 10:50:19 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2014-02-11 10:50:19 (GMT) |
commit | 26e6cec586e9c27643a4f238523930c8b9e3cc6d (patch) | |
tree | 17181853573e6ae2ec1c0cff36d57b5b8e138f1b /backplane.scad | |
parent | 9b4a78808bd94cba3fa794c664e2690a4eb96f8b (diff) |
add toy model of the backplane
backplane_pcb - only the pcb, later with holes
backplane_populated - pcb and connectors
Diffstat (limited to 'backplane.scad')
-rw-r--r-- | backplane.scad | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/backplane.scad b/backplane.scad new file mode 100644 index 0000000..532885b --- /dev/null +++ b/backplane.scad @@ -0,0 +1,37 @@ +include <parameters.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") + cube([backplane_width, backplane_thickness, backplane_height]); +} + +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 |