chiark / gitweb /
camera-mount: break out from mic-camera-adapter: module (nfc)
[reprap-play.git] / mic-camera-adapter.scad
1 // -*- C -*-
2
3 // print on High Detail
4 // but adjust infill to 50%
5
6 include <threads.scad>
7 include <camera-mount.scad>
8
9 positive_dia = inch * 3/8. - 0.375;
10 positive_l = inch * 1/2.;
11
12 negative_wall = 4;
13 midsection = 4;
14
15 spanner = 12;
16
17 base_dia = 35;
18 base_th_min = 1;
19 base_th_max = 4;
20
21 //$test = true;
22 $test = false;
23 $fs=0.1;
24 $fa=5;
25
26 module Adapter(){
27   translate([0,0,-0.1])
28     english_thread(diameter=positive_dia/inch, threads_per_inch=16,
29                    leadin=1, test=$test,
30                    length= (positive_l + 0.1) / inch);
31   rotate([180,0,0]) {
32     difference(){
33       union(){
34         cylinder(r= spanner/2 * 1/(0.5 * sqrt(3)),
35                  h = negative_l + midsection,
36                  $fn=6);
37         translate([0,0, midsection+negative_l]) {
38           mirror([0,0,1]) {
39             hull(){
40               cylinder(r= base_dia/2, h = base_th_min);
41               cylinder(r= 0.1,        h = base_th_max);
42             }
43           }
44         }
45       }
46       CameraMountThread();
47     }
48   }
49 }
50
51 Adapter();