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