X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=mic-camera-adapter.scad;h=a6cb9f6c355cba2dac0d612525422dbb7af1e2f3;hb=3c1da07f2c510b741d2a83025220c7c1b70aab44;hp=4258416e68664b3cdc2b02a353442d907d0d52d7;hpb=2b01bb74a9cc7fdd63e8fec2dbce55d8254de852;p=reprap-play.git diff --git a/mic-camera-adapter.scad b/mic-camera-adapter.scad index 4258416..a6cb9f6 100644 --- a/mic-camera-adapter.scad +++ b/mic-camera-adapter.scad @@ -1,20 +1,29 @@ // -*- C -*- -include +// print on High Detail +// but adjust infill to 50%, shell thickness to 2mm -inch = 25.4; +include +include -positive_dia = inch * 3/8.; +positive_dia = inch * 3/8. - 0.375; positive_l = inch * 1/2.; -negative_dia = inch * 1/4.; -negative_l = 10.0; +negative_l = negative_default_l; negative_wall = 4; midsection = 4; -$test = true; -//$test = false; +spanner = 12; + +base_dia = 35; +base_th_min = 1; +base_th_max = 4; + +//$test = true; +$test = false; +$fs=0.1; +$fa=5; module Adapter(){ translate([0,0,-0.1]) @@ -23,12 +32,21 @@ module Adapter(){ length= (positive_l + 0.1) / inch); rotate([180,0,0]) { difference(){ - cylinder(r= negative_dia/2 + negative_wall, - h = negative_l + midsection); - translate([0,0, midsection]) - english_thread(diameter=negative_dia/inch, threads_per_inch=20, - leadin=0, internal=true, test=$test, - length= (negative_l + inch/19) / inch); + 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); } } }