chiark / gitweb /
air-hockey-puck: wip
[reprap-play.git] / rpi-mount.scad
index b6638ead6ed58ce604a60e978fd6accb3aca2c13..b1b9c12102ed53e746451c7782844efbfaab25ae 100644 (file)
@@ -4,6 +4,7 @@ include <utils.scad>
 
 pi_board_gap = 0.5;
 pi_board_support_z = 2;
+pi_board_support_wall = 2;
 
 pi_sz   = [ 66.0, 30.5 ] + pi_board_gap * [1,1];
 
@@ -13,14 +14,24 @@ pi_solder_side_gap = 1.5 * 2;
 pi_screw_hole_dia  = 2.3;
 pi_screw_hole_wall = 2.3;
 
-module PiMount(pi_mount_z=5){
+pi_sz_z_incl_ribbon = 18.0;
+
+pi_mount_z_min = 1.75;
+pi_mount_z_def = 2.50;
+
+// calculated, output
+
+function pi_ribbon_top_z(pi_mount_z= pi_mount_z_def)
+  = pi_mount_z + pi_sz_z_incl_ribbon;
+
+module PiMount(pi_mount_z= pi_mount_z_def){
   sxy = pi_nom_sz/2 - [1,1] * pi_nom_centres_in;
   for (mx=[0,1]) mirror([mx,0,0]) for (my=[0,1]) mirror([0,my,0]) {
     difference(){
       union(){
        linextr(-0.1, pi_mount_z + pi_board_support_z, convexity=1)
          rectfromto( pi_nom_sz/2 - 2 * [1,1] * pi_nom_centres_in,
-                     pi_sz/2 + [1,1] * board_support_wall);
+                     pi_sz/2 + [1,1] * pi_board_support_wall);
        linextr(-0.1, pi_mount_z - pi_solder_side_gap, convexity=1)
          translate(sxy)
          square(center=true, pi_screw_hole_dia + pi_screw_hole_wall*2);