diff options
author | Jan Huwald <jh@sotun.de> | 2015-03-05 12:05:10 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2015-03-05 12:05:10 (GMT) |
commit | d0cb7d7e6f8f3a44f248c83b84984c808026d1c2 (patch) | |
tree | bb0273279f3515af4e0676824f3669e5d8aed1fb | |
parent | 4fbbd88b5043e8c1bb89ae3b52e8c30b4861825b (diff) |
remove old files, add default make target
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | connector.scad | 58 | ||||
-rw-r--r-- | connector_back.scad | 54 | ||||
-rw-r--r-- | connector_front.scad | 43 | ||||
-rw-r--r-- | connector_pole.scad | 44 | ||||
-rw-r--r-- | nipple.scad | 9 | ||||
-rw-r--r-- | screw_hole.scad | 17 |
7 files changed, 2 insertions, 225 deletions
@@ -1,5 +1,7 @@ include $(wildcard *.dep) +all: back.gcode entry.gcode front.gcode side.gcode + %.gcode: %.stl cura_fast.ini cura -i cura_fast.ini -s $< -o $@ diff --git a/connector.scad b/connector.scad deleted file mode 100644 index 7bc7493..0000000 --- a/connector.scad +++ /dev/null @@ -1,58 +0,0 @@ -// common base module for front and back connector - -include <parameters.scad> - -use <nipple.scad> -use <rail.scad> - -module connector_half( - border_side = false, - border_top = false, - border_bottom = false -) difference() { - union() { - // vertical bar - cube([bar_thickness/2, bar_thickness, tray_height]); - - if (!border_side) { - // upper horizontal bar - translate([0, 0, tray_height - bar_thickness]) - cube([tray_width / 2, bar_thickness, bar_thickness]); - - // lower horizontal bar - cube([bar_thickness/2 + rail_width + pla_epsilon, bar_thickness, bar_thickness]); - } - - // male downward positioning nippel - if (!border_bottom && !border_side) - translate([rail_width, bar_thickness / 2, 0]) nipple(); - } - - // receiver for rail - if (!border_side) - translate([bar_thickness/2 - rail_thickness, 0, bar_thickness - rail_thickness]) - rail(); - - // female downward positioning nippel - if (!border_top) - translate([rail_width, bar_thickness / 2, tray_height]) nipple(pla_epsilon); -} - -module connector( - border_left = false, - border_right = false, - border_top = false, - border_bottom = false -) { - difference() { - children(); - - // female leftward positioning nippel - if (!border_left) - translate([-tray_width/2, bar_thickness / 2, tray_height - bar_thickness / 2]) rotate([0, 270, 0]) nipple(pla_epsilon); - } - - // male rightward positioning nippel - if (!border_right) - translate([tray_width / 2, bar_thickness / 2, tray_height - bar_thickness / 2]) rotate([0, 270, 0]) nipple(); -}
\ No newline at end of file diff --git a/connector_back.scad b/connector_back.scad deleted file mode 100644 index 532b5c8..0000000 --- a/connector_back.scad +++ /dev/null @@ -1,54 +0,0 @@ -include <parameters.scad> - -use <connector.scad> -use <hook.scad> -use <nipple.scad> -use <rail.scad> -use <screw_hole.scad> - -module back_connector_half( - border_side = false, - border_top = false, - border_bottom = false -) difference() { - connector_half(border_side, border_top, border_bottom); - - if (!border_side) - translate([tray_width/2 - bar_thickness, 0, tray_height - bar_thickness/2]) - rotate([-90, 0, 0]) - screw_hole(nut_depth = 1.1 * nut_height); -} - -module back_connector( - border_left = false, - border_right = false, - border_top = false, - border_bottom = false -) { - difference() { - connector(border_left, border_right, border_top, border_bottom) { - mirror() back_connector_half(border_left, border_top, border_bottom); - back_connector_half(border_right, border_top, border_bottom); - } - - // screw holes for PCB screws - for (h = [bar_thickness/2, tray_height - bar_thickness/2]) - translate([0, 0, h]) - rotate([-90, 0, 0]) - screw_hole(nut_depth = 1.1 * nut_height); - } - - // hooks to hold PCB during assembly - if (!border_right) - for (p = [[rail_width/2 + bar_thickness/2, bar_thickness/2], - [tray_width/4, tray_height - bar_thickness/2]]) - translate([p[0], bar_thickness, p[1]]) - hook(diameter = 0.7 * rod_diameter, - length_rest = backplane_thickness, - length_slide = backplane_thickness); -} - -back_connector(); - -echo("MODEL INFO: tray height = ", tray_height); -echo("MODEL INFO: tray width = ", tray_width); diff --git a/connector_front.scad b/connector_front.scad deleted file mode 100644 index 867fb3f..0000000 --- a/connector_front.scad +++ /dev/null @@ -1,43 +0,0 @@ -include <parameters.scad> - -use <connector.scad> -use <nipple.scad> -use <rail.scad> -use <screw_hole.scad> - -module front_connector_half( - border_side = false, - border_top = false, - border_bottom = false -) difference() { - union() { - connector_half(border_side, border_top, border_bottom); - - // vertical thread bold receiver (extremal) - if (!border_side) - translate([tray_width/2 - bar_thickness, bar_thickness, tray_height-bar_thickness]) - cube([bar_thickness, bar_thickness, bar_thickness]); - } - - // Hole for horizontal thread rods. A dimple for a scew is added at the bottom. - translate([0, bar_thickness / 2, 0]) - screw_hole(nut_depth = border_bottom ? (nut_height + pla_epsilon) : 0); - - // vertical screw hole - translate([tray_width/2 - bar_thickness, bar_thickness * 1.5, tray_height - bar_thickness / 2]) rotate([0, 90, 0]) - screw_hole(nut_depth = nut_height); -} - -module front_connector( - border_left = false, - border_right = false, - border_top = false, - border_bottom = false -) { - connector(border_left, border_right, border_top, border_bottom) { - mirror() front_connector_half(border_left, border_top, border_bottom); - front_connector_half(border_right, border_top, border_bottom); - } -} - -front_connector(); diff --git a/connector_pole.scad b/connector_pole.scad deleted file mode 100644 index 7661365..0000000 --- a/connector_pole.scad +++ /dev/null @@ -1,44 +0,0 @@ -include <parameters.scad> - -use <screw_hole.scad> - -module connector_pole(units, depth, border_top=true, border_bottom=true, cable_funnel=true) { - height = tray_height * units; - overlap = bar_thickness + pole_overlap_shunt; - - difference() { - // pole - translate([0, 0, (border_bottom ? 0 : -overlap)]) - cube([bar_thickness, pole_depth, height - + (border_bottom ? 0 : overlap) - + (border_top ? 0 : overlap)]); - - // screw holes - for (i = [0:units]) - for (s = [-1, 1]) - translate([bar_thickness/2, depth, i * tray_height + s * bar_thickness/2]) - rotate([90, 0, 0]) - screw_hole(nut_depth = nut_height); - - // cable funnel - if (cable_funnel) - for (i = [0:units-1]) - translate([0, 0, i * tray_height + bar_thickness]) - cube([bar_thickness, pole_cable_funnel_width, tray_height - 2 * bar_thickness]); - - // receptors for lower/upper poles - for (i = [[border_bottom, 0, 0], - [border_top, depth/2, height]]) - if (!i[0]) - translate([0, i[1], i[2]-overlap]) - cube([bar_thickness, depth/2, 2*overlap]); - } -} - -connector_pole(2, 20); - -translate([50,0,0]) connector_pole(2, 20, border_bottom=false); - -translate([100,0,0]) connector_pole(2, 20, border_top=false, border_bottom=false); - -translate([150,0,0]) connector_pole(2, 20, border_top=false); diff --git a/nipple.scad b/nipple.scad deleted file mode 100644 index cc84bfd..0000000 --- a/nipple.scad +++ /dev/null @@ -1,9 +0,0 @@ -include <parameters.scad> - -module nipple(e = 0) { - translate([0, 0, epsilon]) - rotate([0, 180, 0]) - cylinder(h = bar_thickness / 4 + e, r1 = bar_thickness / 4 + e, r2 = 0, $fs=0.1); -} - -nipple(); diff --git a/screw_hole.scad b/screw_hole.scad deleted file mode 100644 index 5cf99a8..0000000 --- a/screw_hole.scad +++ /dev/null @@ -1,17 +0,0 @@ -include <parameters.scad> - -module screw_hole( - screw_diameter = rod_diameter, - nut_diameter = nut_diameter, - nut_depth=0 -) { - translate([0, 0, nut_depth - epsilon]) { - // thread - cylinder(h=large, r=screw_diameter / 2 + pla_epsilon, $fs=0.1); - - // nut or screw head - mirror([0, 0, 1]) cylinder(h=large, r=nut_diameter / 2 + pla_epsilon, $fs=0.1); - } -} - -screw_hole(nut_depth=1);
\ No newline at end of file |