1.1 --- a/cartridge.scad Sun May 18 14:33:10 2014 +0200
1.2 +++ b/cartridge.scad Sat Jun 07 01:10:50 2014 +0200
1.3 @@ -131,6 +131,11 @@
1.4 inner_side_front_cutout_depth = groove_width_extra;
1.5 inner_side_front_cutout_offset = groove_depth;
1.6
1.7 + /*
1.8 + The back cavity is the indented part at the bottom of the back of the
1.9 + cartridge.
1.10 + */
1.11 +
1.12 back_cavity_width = 68.0;
1.13 back_cavity_inner_width = 65.0;
1.14 back_cavity_offset_from_left = 10.5;
1.15 @@ -139,6 +144,8 @@
1.16 back_cavity_inner_height = 12.0;
1.17 back_cavity_depth = 1.5;
1.18
1.19 + /* The effect of the cavity on the inside of the case. */
1.20 +
1.21 inner_back_cavity_offset = 1.0;
1.22 inner_back_cavity_offset_from_left = back_left;
1.23 inner_back_slope_offset_from_left = 10.0;
1.24 @@ -155,6 +162,8 @@
1.25 inner_front_edge_height = 3.0;
1.26 inner_front_edge_depth = 1.5;
1.27
1.28 + /* The height of the floor of the compartment above the very bottom. */
1.29 +
1.30 bottom_from_base = 14.0;
1.31
1.32 edge_connector_cutout_front_offset = 1.0;
1.33 @@ -194,7 +203,7 @@
1.34 pcb_back_support_top_bump_height = 3.8;
1.35
1.36 /* Move the PCB support towards the centre. */
1.37 - pcb_support_margin = 0.55;
1.38 + pcb_support_margin = 1.75;
1.39
1.40 pcb_lug_depth = pcb_back_support_depth +
1.41 pcb_back_support_bump_depth;
1.42 @@ -218,6 +227,14 @@
1.43 /* Repeated constructs. */
1.44
1.45 module pcb_support(xdir, bump_height, bump_offset) {
1.46 +
1.47 + /*
1.48 + Translate the support in the stated direction.
1.49 + Since the support is already justified in the direction, the translation
1.50 + moves the inner edge of the support to alignment with the end of the
1.51 + edge connector cutout and then back by the PCB support margin.
1.52 + */
1.53 +
1.54 translate([xdir *
1.55 (edge_connector_cutout_back_width / 2 - pcb_support_margin),
1.56 edge_connector_cutout_back_depth,