From: Ian Jackson Date: Wed, 8 Apr 2020 16:59:09 +0000 (+0100) Subject: mic-camera-adapter: wip X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=2b01bb74a9cc7fdd63e8fec2dbce55d8254de852;p=reprap-play.git mic-camera-adapter: wip Signed-off-by: Ian Jackson --- diff --git a/mic-camera-adapter.scad b/mic-camera-adapter.scad index 1ffc71e..4258416 100644 --- a/mic-camera-adapter.scad +++ b/mic-camera-adapter.scad @@ -4,22 +4,31 @@ include inch = 25.4; -positive = inch/2; -negative = inch/2; -midsection = 5; +positive_dia = inch * 3/8.; +positive_l = inch * 1/2.; + +negative_dia = inch * 1/4.; +negative_l = 10.0; + +negative_wall = 4; +midsection = 4; + +$test = true; +//$test = false; 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); + cylinder(r= negative_dia/2 + negative_wall, + h = negative_l + midsection); translate([0,0, midsection]) - english_thread(diameter = 1/2., threads_per_inch=20, - leadin=1, internal=true, - length=midsection+0.1); + english_thread(diameter=negative_dia/inch, threads_per_inch=20, + leadin=0, internal=true, test=$test, + length= (negative_l + inch/19) / inch); } } }