# HG changeset patch # User Paul Boddie # Date 1439485490 -7200 # Node ID 5c038e9c2e0f78b4f55c98d0c7dcf72e72f61d36 # Parent 8169bc566fec99be278207aeefe91b2ac2202148 Repositioned the PCB in order to better test alignment. Fixed the PCB depth. diff -r 8169bc566fec -r 5c038e9c2e0f cartridge.scad --- a/cartridge.scad Thu Aug 13 18:00:04 2015 +0200 +++ b/cartridge.scad Thu Aug 13 19:04:50 2015 +0200 @@ -422,7 +422,7 @@ pcb_right_hole_offset_from_centre = -pcb_left_hole_offset_from_centre; pcb_hole_depth = pcb_depth + 2 * pcb_hole_extra_depth; - pcb_hole_start_depth = -pcb_hole_extra_depth; + pcb_hole_start_depth = edge_connector_cutout_back_depth + pcb_hole_extra_depth; wide_pcb_width = 138.0; wide_pcb_height = pcb_height; wide_pcb_depth = pcb_depth; wide_pcb_hole_depth = pcb_hole_depth; @@ -1166,43 +1166,45 @@ union() { cube_at(pcb_width, pcb_depth, pcb_height - edge_connector_height, - 0, 1, 1, - 0, 0, 0); + 0, -1, 1, + 0, edge_connector_cutout_back_depth, 0); cube_at(edge_connector_width, pcb_depth, edge_connector_height, - 0, 1, -1, - 0, 0, 0); + 0, -1, -1, + 0, edge_connector_cutout_back_depth, 0); } /* Holes for mounting. */ union() { - cube_at(pcb_hole_width, 1, pcb_left_hole_height, - -1, 1, 1, - pcb_left_hole_offset_from_centre, 0, pcb_left_hole_offset); + cube_at(pcb_hole_width, pcb_hole_depth, pcb_left_hole_height, + -1, -1, 1, + pcb_left_hole_offset_from_centre, pcb_hole_start_depth, + pcb_left_hole_offset); translate([pcb_left_hole_offset_from_centre - pcb_hole_width / 2, pcb_hole_start_depth, pcb_left_hole_offset]) - rotate([-90, 0, 0]) + rotate([90, 0, 0]) cylinder(h=pcb_hole_depth, r=pcb_hole_width / 2); translate([pcb_left_hole_offset_from_centre - pcb_hole_width / 2, pcb_hole_start_depth, pcb_left_hole_offset + pcb_left_hole_height]) - rotate([-90, 0, 0]) + rotate([90, 0, 0]) cylinder(h=pcb_hole_depth, r=pcb_hole_width / 2); } union() { - cube_at(pcb_hole_width, 1, pcb_right_hole_height, - 1, 1, 1, - pcb_right_hole_offset_from_centre, 0, pcb_right_hole_offset); + cube_at(pcb_hole_width, pcb_hole_depth, pcb_right_hole_height, + 1, -1, 1, + pcb_right_hole_offset_from_centre, pcb_hole_start_depth, + pcb_right_hole_offset); translate([pcb_right_hole_offset_from_centre + pcb_hole_width / 2, pcb_hole_start_depth, pcb_right_hole_offset]) - rotate([-90, 0, 0]) + rotate([90, 0, 0]) cylinder(h=pcb_hole_depth, r=pcb_hole_width / 2); translate([pcb_right_hole_offset_from_centre + pcb_hole_width / 2, pcb_hole_start_depth, pcb_right_hole_offset + pcb_right_hole_height]) - rotate([-90, 0, 0]) + rotate([90, 0, 0]) cylinder(h=pcb_hole_depth, r=pcb_hole_width / 2); } @@ -1211,13 +1213,13 @@ translate([ -int_connector_width / 2 + pcb_lug_offset_from_inside, pcb_hole_start_depth, pcb_lug_offset_from_bottom]) - rotate([-90, 0, 0]) + rotate([90, 0, 0]) cylinder(h=pcb_hole_depth, r=pcb_lug_hole_radius); translate([ int_connector_width / 2 - pcb_lug_offset_from_inside, pcb_hole_start_depth, pcb_lug_offset_from_bottom]) - rotate([-90, 0, 0]) + rotate([90, 0, 0]) cylinder(h=pcb_hole_depth, r=pcb_lug_hole_radius); } } @@ -1231,12 +1233,12 @@ union() { cube_at(wide_pcb_width, wide_pcb_depth, wide_pcb_height - edge_connector_height, - 0, 1, 1, - payload_centre, 0, 0); + 0, -1, 1, + payload_centre, edge_connector_cutout_back_depth, 0); cube_at(edge_connector_width, wide_pcb_depth, edge_connector_height, - 0, 1, -1, - 0, 0, 0); + 0, -1, -1, + 0, edge_connector_cutout_back_depth, 0); } /* Holes for lugs. */ @@ -1245,28 +1247,28 @@ payload_centre + int_payload_width / 2 - wide_pcb_lug_offset_from_inside , wide_pcb_hole_start_depth, wide_pcb_height - edge_connector_height - wide_pcb_lug_offset_from_bottom]) - rotate([-90, 0, 0]) + rotate([90, 0, 0]) cylinder(h=wide_pcb_hole_depth, r=wide_pcb_lug_hole_radius); translate([ payload_centre - int_payload_width / 2 + wide_pcb_lug_offset_from_inside , wide_pcb_hole_start_depth, wide_pcb_height - edge_connector_height - wide_pcb_lug_offset_from_bottom]) - rotate([-90, 0, 0]) + rotate([90, 0, 0]) cylinder(h=wide_pcb_hole_depth, r=wide_pcb_lug_hole_radius); translate([ payload_centre + int_payload_width / 2 - wide_pcb_lug_offset_from_inside , wide_pcb_hole_start_depth, wide_pcb_lug_offset_from_bottom]) - rotate([-90, 0, 0]) + rotate([90, 0, 0]) cylinder(h=wide_pcb_hole_depth, r=wide_pcb_lug_hole_radius); translate([ payload_centre - int_payload_width / 2 + wide_pcb_lug_offset_from_inside , wide_pcb_hole_start_depth, wide_pcb_lug_offset_from_bottom]) - rotate([-90, 0, 0]) + rotate([90, 0, 0]) cylinder(h=wide_pcb_hole_depth, r=wide_pcb_lug_hole_radius); } }