# HG changeset patch # User Paul Boddie # Date 1412629739 -7200 # Node ID 88a49e3cbeb9d9fd9543a228d982afae34e82fe9 # Parent 206e88f570e24389759a87832d77bbed515972e8 Introduced internal front and back depth measurements. diff -r 206e88f570e2 -r 88a49e3cbeb9 cartridge.scad --- a/cartridge.scad Mon Oct 06 22:08:06 2014 +0200 +++ b/cartridge.scad Mon Oct 06 23:08:59 2014 +0200 @@ -85,16 +85,18 @@ groove_width_extra = 2.0; - /* Division of pieces into front and back. */ + /* Division of pieces into front and back, defining the extents. */ - front_depth = 6.5; + int_front_depth = 4.5; + front_depth = int_front_depth + front; + int_back_depth = int_depth - int_front_depth + groove_width_extra; + back_depth = int_back_depth + back; /* Cartridge dimensions. */ width = int_width + side + side; height = int_payload_height + int_connector_height + top; depth = int_depth + front + back; - back_depth = depth - front_depth + groove_width_extra; /* Cartridge surfaces. */ @@ -157,7 +159,9 @@ back_cavity_inner_height = 12.0; back_cavity_depth = 1.5; - /* The effect of the cavity on the inside of the case. */ + /* + The effect of the cavity on the inside of the case. + */ inner_back_cavity_offset = 1.0; inner_back_cavity_offset_from_left = back_left; @@ -175,9 +179,20 @@ inner_front_edge_height = 3.0; inner_front_edge_depth = 1.5; + /* + The cutouts in the floor of the front of the cartridge that produce a + kind of tab that guides the edge connector into place in the back cutout. + */ + edge_connector_cutout_front_offset = 1.0; edge_connector_cutout_front_depth = 1.0; edge_connector_cutout_front_width = 15.0; + + /* + The cutout in the floor of the back of the cartridge that accommodates + the edge connector. + */ + edge_connector_cutout_back_depth = 3.0; edge_connector_cutout_back_width = 57.5; @@ -312,7 +327,7 @@ module pcb_front_lug(xdir) { translate([xdir * (width/2 - pcb_lug_offset_from_outside), - -front_depth + front + pcb_front_lug_depth, + -int_front_depth + pcb_front_lug_depth, -height / 2 + bottom + int_connector_height + pcb_lug_offset_from_bottom ])