1.1 --- a/cartridge.scad Sat Feb 22 15:36:15 2014 +0100
1.2 +++ b/cartridge.scad Sat Feb 22 16:06:57 2014 +0100
1.3 @@ -75,6 +75,17 @@
1.4 front_depth = 6.5;
1.5 back_depth = 11.0;
1.6
1.7 + /* Side thicknesses. */
1.8 +
1.9 + front = 2;
1.10 + back = 3.5;
1.11 + top = 3;
1.12 + front_left = 1;
1.13 + front_right = front_left;
1.14 + back_left = 1.5;
1.15 + back_right = back_left;
1.16 + bottom = 2;
1.17 +
1.18 /* Label details. */
1.19
1.20 front_label_width = 83.0;
1.21 @@ -112,7 +123,7 @@
1.22 back_cavity_depth = 1.5;
1.23
1.24 inner_back_cavity_offset = 1.0;
1.25 - inner_back_cavity_offset_from_left = 2.0;
1.26 + inner_back_cavity_offset_from_left = back_left;
1.27 inner_back_slope_offset_from_left = 10.0;
1.28 inner_back_slope_width = 2.5;
1.29 inner_back_slope_depth = 2.5;
1.30 @@ -141,17 +152,6 @@
1.31 (Acorn Support Application Group Note 014).
1.32 */
1.33
1.34 - /* Side thicknesses. */
1.35 -
1.36 - front = 2;
1.37 - back = 3.5;
1.38 - top = 3;
1.39 - front_left = 1;
1.40 - front_right = 1;
1.41 - back_left = 2;
1.42 - back_right = 2;
1.43 - bottom = 2;
1.44 -
1.45 /* Extra internal features. */
1.46
1.47 pcb_back_support_width = 1.2;
1.48 @@ -175,6 +175,9 @@
1.49 pcb_back_support_left_bump_offset_from_bottom = 15.1;
1.50 pcb_back_support_right_bump_offset_from_bottom = 17.6;
1.51
1.52 + /* Move the PCB support towards the centre. */
1.53 + pcb_support_margin = 0.55;
1.54 +
1.55 translate([-width * 0.6, 0, 0])
1.56 difference() {
1.57
1.58 @@ -227,7 +230,8 @@
1.59 pcb_front_support_depth,
1.60 pcb_front_support_height,
1.61 1, -1, 1,
1.62 - -edge_connector_cutout_back_width / 2,
1.63 + -edge_connector_cutout_back_width / 2 +
1.64 + pcb_support_margin,
1.65 0,
1.66 -height / 2 + bottom + bottom_from_base);
1.67
1.68 @@ -235,7 +239,8 @@
1.69 pcb_front_support_depth,
1.70 pcb_front_support_height,
1.71 -1, -1, 1,
1.72 - edge_connector_cutout_back_width / 2,
1.73 + edge_connector_cutout_back_width / 2 -
1.74 + pcb_support_margin,
1.75 0,
1.76 -height / 2 + bottom + bottom_from_base);
1.77 }
1.78 @@ -351,7 +356,8 @@
1.79
1.80 /* PCB supports. */
1.81
1.82 - translate([-edge_connector_cutout_back_width / 2,
1.83 + translate([-edge_connector_cutout_back_width / 2 +
1.84 + pcb_support_margin,
1.85 edge_connector_cutout_back_depth,
1.86 -height / 2 + bottom + bottom_from_base])
1.87 justify(pcb_back_support_width,
1.88 @@ -372,7 +378,8 @@
1.89 pcb_back_support_left_bump_offset_from_bottom);
1.90 }
1.91
1.92 - translate([edge_connector_cutout_back_width / 2,
1.93 + translate([edge_connector_cutout_back_width / 2 -
1.94 + pcb_support_margin,
1.95 edge_connector_cutout_back_depth,
1.96 -height / 2 + bottom + bottom_from_base])
1.97 justify(pcb_back_support_width,