X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=mic-camera-adapter.scad;h=a6cb9f6c355cba2dac0d612525422dbb7af1e2f3;hb=eb06f06509cc2403d8592cd147d89d9a1b8bb97f;hp=1ffc71eba0841c02541efcb5a9268e62211c8849;hpb=9fab008d84419ee912afba2186bdbf98e2563411;p=reprap-play.git diff --git a/mic-camera-adapter.scad b/mic-camera-adapter.scad index 1ffc71e..a6cb9f6 100644 --- a/mic-camera-adapter.scad +++ b/mic-camera-adapter.scad @@ -1,25 +1,52 @@ // -*- C -*- +// print on High Detail +// but adjust infill to 50%, shell thickness to 2mm + include +include + +positive_dia = inch * 3/8. - 0.375; +positive_l = inch * 1/2.; + +negative_l = negative_default_l; + +negative_wall = 4; +midsection = 4; + +spanner = 12; -inch = 25.4; +base_dia = 35; +base_th_min = 1; +base_th_max = 4; -positive = inch/2; -negative = inch/2; -midsection = 5; +//$test = true; +$test = false; +$fs=0.1; +$fa=5; module Adapter(){ translate([0,0,-0.1]) - english_thread(diameter = 3/8., threads_per_inch=16, - leadin=1, - length= (positive + 0.1) / inch); + english_thread(diameter=positive_dia/inch, threads_per_inch=16, + leadin=1, test=$test, + length= (positive_l + 0.1) / inch); rotate([180,0,0]) { difference(){ - cylinder(r=10, h=negative + midsection); - translate([0,0, midsection]) - english_thread(diameter = 1/2., threads_per_inch=20, - leadin=1, internal=true, - length=midsection+0.1); + union(){ + cylinder(r= spanner/2 * 1/(0.5 * sqrt(3)), + h = negative_l + midsection, + $fn=6); + translate([0,0, midsection+negative_l]) { + mirror([0,0,1]) { + hull(){ + cylinder(r= base_dia/2, h = base_th_min); + cylinder(r= 0.1, h = base_th_max); + } + } + } + } + translate([0,0, midsection + negative_l]) + CameraMountThread(negative_l); } } }