1.1 --- a/cartridge.scad Thu Aug 13 18:00:04 2015 +0200
1.2 +++ b/cartridge.scad Thu Aug 13 19:04:50 2015 +0200
1.3 @@ -422,7 +422,7 @@
1.4 pcb_right_hole_offset_from_centre = -pcb_left_hole_offset_from_centre;
1.5
1.6 pcb_hole_depth = pcb_depth + 2 * pcb_hole_extra_depth;
1.7 - pcb_hole_start_depth = -pcb_hole_extra_depth;
1.8 + pcb_hole_start_depth = edge_connector_cutout_back_depth + pcb_hole_extra_depth;
1.9
1.10 wide_pcb_width = 138.0; wide_pcb_height = pcb_height; wide_pcb_depth = pcb_depth;
1.11 wide_pcb_hole_depth = pcb_hole_depth;
1.12 @@ -1166,43 +1166,45 @@
1.13 union() {
1.14 cube_at(pcb_width, pcb_depth,
1.15 pcb_height - edge_connector_height,
1.16 - 0, 1, 1,
1.17 - 0, 0, 0);
1.18 + 0, -1, 1,
1.19 + 0, edge_connector_cutout_back_depth, 0);
1.20 cube_at(edge_connector_width, pcb_depth,
1.21 edge_connector_height,
1.22 - 0, 1, -1,
1.23 - 0, 0, 0);
1.24 + 0, -1, -1,
1.25 + 0, edge_connector_cutout_back_depth, 0);
1.26 }
1.27
1.28 /* Holes for mounting. */
1.29
1.30 union() {
1.31 - cube_at(pcb_hole_width, 1, pcb_left_hole_height,
1.32 - -1, 1, 1,
1.33 - pcb_left_hole_offset_from_centre, 0, pcb_left_hole_offset);
1.34 + cube_at(pcb_hole_width, pcb_hole_depth, pcb_left_hole_height,
1.35 + -1, -1, 1,
1.36 + pcb_left_hole_offset_from_centre, pcb_hole_start_depth,
1.37 + pcb_left_hole_offset);
1.38 translate([pcb_left_hole_offset_from_centre -
1.39 pcb_hole_width / 2, pcb_hole_start_depth, pcb_left_hole_offset])
1.40 - rotate([-90, 0, 0])
1.41 + rotate([90, 0, 0])
1.42 cylinder(h=pcb_hole_depth, r=pcb_hole_width / 2);
1.43 translate([pcb_left_hole_offset_from_centre -
1.44 pcb_hole_width / 2, pcb_hole_start_depth,
1.45 pcb_left_hole_offset + pcb_left_hole_height])
1.46 - rotate([-90, 0, 0])
1.47 + rotate([90, 0, 0])
1.48 cylinder(h=pcb_hole_depth, r=pcb_hole_width / 2);
1.49 }
1.50
1.51 union() {
1.52 - cube_at(pcb_hole_width, 1, pcb_right_hole_height,
1.53 - 1, 1, 1,
1.54 - pcb_right_hole_offset_from_centre, 0, pcb_right_hole_offset);
1.55 + cube_at(pcb_hole_width, pcb_hole_depth, pcb_right_hole_height,
1.56 + 1, -1, 1,
1.57 + pcb_right_hole_offset_from_centre, pcb_hole_start_depth,
1.58 + pcb_right_hole_offset);
1.59 translate([pcb_right_hole_offset_from_centre +
1.60 pcb_hole_width / 2, pcb_hole_start_depth, pcb_right_hole_offset])
1.61 - rotate([-90, 0, 0])
1.62 + rotate([90, 0, 0])
1.63 cylinder(h=pcb_hole_depth, r=pcb_hole_width / 2);
1.64 translate([pcb_right_hole_offset_from_centre +
1.65 pcb_hole_width / 2, pcb_hole_start_depth,
1.66 pcb_right_hole_offset + pcb_right_hole_height])
1.67 - rotate([-90, 0, 0])
1.68 + rotate([90, 0, 0])
1.69 cylinder(h=pcb_hole_depth, r=pcb_hole_width / 2);
1.70 }
1.71
1.72 @@ -1211,13 +1213,13 @@
1.73 translate([
1.74 -int_connector_width / 2 + pcb_lug_offset_from_inside,
1.75 pcb_hole_start_depth, pcb_lug_offset_from_bottom])
1.76 - rotate([-90, 0, 0])
1.77 + rotate([90, 0, 0])
1.78 cylinder(h=pcb_hole_depth, r=pcb_lug_hole_radius);
1.79
1.80 translate([
1.81 int_connector_width / 2 - pcb_lug_offset_from_inside,
1.82 pcb_hole_start_depth, pcb_lug_offset_from_bottom])
1.83 - rotate([-90, 0, 0])
1.84 + rotate([90, 0, 0])
1.85 cylinder(h=pcb_hole_depth, r=pcb_lug_hole_radius);
1.86 }
1.87 }
1.88 @@ -1231,12 +1233,12 @@
1.89 union() {
1.90 cube_at(wide_pcb_width, wide_pcb_depth,
1.91 wide_pcb_height - edge_connector_height,
1.92 - 0, 1, 1,
1.93 - payload_centre, 0, 0);
1.94 + 0, -1, 1,
1.95 + payload_centre, edge_connector_cutout_back_depth, 0);
1.96 cube_at(edge_connector_width, wide_pcb_depth,
1.97 edge_connector_height,
1.98 - 0, 1, -1,
1.99 - 0, 0, 0);
1.100 + 0, -1, -1,
1.101 + 0, edge_connector_cutout_back_depth, 0);
1.102 }
1.103
1.104 /* Holes for lugs. */
1.105 @@ -1245,28 +1247,28 @@
1.106 payload_centre + int_payload_width / 2 - wide_pcb_lug_offset_from_inside ,
1.107 wide_pcb_hole_start_depth,
1.108 wide_pcb_height - edge_connector_height - wide_pcb_lug_offset_from_bottom])
1.109 - rotate([-90, 0, 0])
1.110 + rotate([90, 0, 0])
1.111 cylinder(h=wide_pcb_hole_depth, r=wide_pcb_lug_hole_radius);
1.112
1.113 translate([
1.114 payload_centre - int_payload_width / 2 + wide_pcb_lug_offset_from_inside ,
1.115 wide_pcb_hole_start_depth,
1.116 wide_pcb_height - edge_connector_height - wide_pcb_lug_offset_from_bottom])
1.117 - rotate([-90, 0, 0])
1.118 + rotate([90, 0, 0])
1.119 cylinder(h=wide_pcb_hole_depth, r=wide_pcb_lug_hole_radius);
1.120
1.121 translate([
1.122 payload_centre + int_payload_width / 2 - wide_pcb_lug_offset_from_inside ,
1.123 wide_pcb_hole_start_depth,
1.124 wide_pcb_lug_offset_from_bottom])
1.125 - rotate([-90, 0, 0])
1.126 + rotate([90, 0, 0])
1.127 cylinder(h=wide_pcb_hole_depth, r=wide_pcb_lug_hole_radius);
1.128
1.129 translate([
1.130 payload_centre - int_payload_width / 2 + wide_pcb_lug_offset_from_inside ,
1.131 wide_pcb_hole_start_depth,
1.132 wide_pcb_lug_offset_from_bottom])
1.133 - rotate([-90, 0, 0])
1.134 + rotate([90, 0, 0])
1.135 cylinder(h=wide_pcb_hole_depth, r=wide_pcb_lug_hole_radius);
1.136 }
1.137 }