chiark / gitweb /
camera-mount: break out from mic-camera-adapter: settings (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 14 Apr 2020 00:17:10 +0000 (01:17 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 14 Apr 2020 00:17:10 +0000 (01:17 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
camera-mount.scad [new file with mode: 0644]
mic-camera-adapter.scad

diff --git a/camera-mount.scad b/camera-mount.scad
new file mode 100644 (file)
index 0000000..d65b08d
--- /dev/null
@@ -0,0 +1,11 @@
+// -*- C -*-
+
+inch = 25.4;
+
+negative_dia = inch * 1/4. + 0.375;
+negative_l =   10.0;
+
+negative_tpi = 20;
+negative_pitch = inch/negative_tpi;
+negative_chamfer = negative_pitch/2;
+
index c7d64718a127f5421a408c6347ac340646a3ce0e..0fdd26ca75bda633607686b7dc6c41ef79147640 100644 (file)
@@ -4,24 +4,16 @@
 // but adjust infill to 50%
 
 include <threads.scad>
-
-inch = 25.4;
+include <camera-mount.scad>
 
 positive_dia = inch * 3/8. - 0.375;
 positive_l = inch * 1/2.;
 
-negative_dia = inch * 1/4. + 0.375;
-negative_l =   10.0;
-
 negative_wall = 4;
 midsection = 4;
 
 spanner = 12;
 
-negative_tpi = 20;
-negative_pitch = inch/negative_tpi;
-negative_chamfer = negative_pitch/2;
-
 base_dia = 35;
 base_th_min = 1;
 base_th_max = 4;
@@ -51,19 +43,20 @@ module Adapter(){
          }
        }
       }
-      translate([0,0, midsection])
+      translate([0,0, midsection]) {
        english_thread(diameter=negative_dia/inch,
                       threads_per_inch=negative_tpi,
                       leadin=0, internal=true, test=$test,
                       length= (negative_l + inch/19) / inch);
-      translate([0,0, midsection+negative_l]) {
-       hull(){
-         translate([0,0, negative_chamfer])
-           cylinder(r= negative_dia/2 + negative_chamfer*2,
-                    h=1);
-         mirror([0,0,1])
-           cylinder(r= negative_dia/2 - negative_chamfer*2,
-                    h= negative_chamfer*3);
+       translate([0,0, negative_l]) {
+         hull(){
+           translate([0,0, negative_chamfer])
+             cylinder(r= negative_dia/2 + negative_chamfer*2,
+                      h=1);
+           mirror([0,0,1])
+             cylinder(r= negative_dia/2 - negative_chamfer*2,
+                      h= negative_chamfer*3);
+         }
        }
       }
     }