chiark / gitweb /
rpi-mount: copy from other repo
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Dec 2021 12:12:59 +0000 (12:12 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Dec 2021 12:12:59 +0000 (12:12 +0000)
From 06b6654f0a8e6750aac2e34d785ff84f311e5444

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
rpi-mount.scad [new file with mode: 0644]

diff --git a/rpi-mount.scad b/rpi-mount.scad
new file mode 100644 (file)
index 0000000..8b26e87
--- /dev/null
@@ -0,0 +1,35 @@
+// -*- C -*-
+
+pi_board_gap = 0.5;
+
+pi_sz   = [ 66.0, 30.5 ] + pi_board_gap * [1,1];
+
+pi_nom_sz = [ 65, 30 ];
+pi_nom_centres_in = 3.5;
+pi_solder_side_gap = 1.5 * 2;
+pi_screw_hole_dia  = 2.3;
+pi_screw_hole_wall = 2.3;
+
+pi_adj_x_offset = 1.35 - .35;
+
+module PiMount(){ ////toplevel
+  sxy = pi_nom_sz/2 - [1,1] * pi_nom_centres_in;
+  translate([pi_adj_x_offset, 0,0])
+  for (mx=[0,1]) mirror([mx,0,0]) for (my=[0,1]) mirror([0,my,0]) {
+    difference(){
+      union(){
+       linextr(-0.1, pi_mount_z + 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);
+       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);
+      }
+      linextr(pi_mount_z, pi_mount_z + 5, convexity=1)
+       rectfromto(-[10,10], pi_sz/2);
+      translate( sxy )
+       linextr(-1, pi_mount_z + 10, convexity=1)
+       circle(r= pi_screw_hole_dia/2);
+    }
+  }
+}