3 // print Stem and Wingnut on High Detail
4 // but adjust shell thickness to 2mm
10 include <camera-mount.scad>
12 positive_dia = inch * 3/8. - 0.375;
13 positive_l = inch * 1/2.;
25 thread_act = thread_nom + 0.600;
30 clamp_bot_tooth_h = 2.5;
31 clamp_bot_tooth_d = 10;
32 clamp_bot_collar = 20;
33 clamp_bot_collar_th = 3.0;
37 clamp_max_table_th = 35;
39 clamp_hole_dia = thread_nom + 0.30;
41 clamp_reg_clear_x = 2.5;
42 clamp_reg_clear_y = 0.75; // each side
43 clamp_reg_extra_x = 4;
49 wingnut_wing_mindia = 17.0;
50 wingnut_wing_xrad = 8;
62 wingnut_cnr = wingnut_wing_th/2 -0.1;
64 clamp_reg_bot_x_min = -stem_base_dia/2 -clamp_reg_clear_x -clamp_reg_sz2;
65 clamp_collar_r = thread_nom/2 + clamp_bot_collar_th;
68 translate([0,0,-0.01])
69 metric_thread(diameter=thread_act, pitch=thread_pitch,
70 leadin=3, internal=true,
71 test=$test, length=l);
74 module Stem(){ ////toplevel
75 translate([0,0, stem_l -0.1])
76 english_thread(diameter=positive_dia/inch, threads_per_inch=16,
78 length= (positive_l + 0.1) / inch);
82 cylinder(r= stem_dia/2 * 1/(0.5 * sqrt(3)),
85 cylinder(r= stem_base_dia/2,
88 OurThread(stem_inner_l);
92 module Wingnut(){ ////toplevel
95 cylinder(r= (thread_nom+wingnut_wall)/2,
98 sphere(r= wingnut_cnr);
99 translate([0,0, wingnut_cnr*0.5])
100 linear_extrude(height= wingnut_wing_xh + wingnut_th
102 square([wingnut_wing_mindia + wingnut_wing_xrad*2 - wingnut_cnr*2,
103 wingnut_wing_th - wingnut_cnr*2],
107 translate([0,0, wingnut_th])
108 linear_extrude(height= wingnut_wing_xh+1)
109 square(wingnut_wing_mindia, center=true);
110 translate([0,0, wingnut_th])
112 OurThread(wingnut_th+3);
114 linear_extrude(height=5)
115 square(center=true, wingnut_wing_mindia*2);
119 module ClampCollarPlan(){
120 circle(r= clamp_collar_r);
122 module ClampHolePlan(){
123 circle(r= clamp_hole_dia/2);
125 module ClampArmPlan(){
128 rectfromto([r, -clamp_w/2],
129 [clamp_l, +clamp_w/2]);
134 module ClampTop(){ ////toplevel
135 linear_extrude(height = clamp_top_th, convexity=4) {
144 linear_extrude(height = clamp_reg_sz1, convexity=4) {
148 translate([0, clamp_reg_sz2/2 + clamp_reg_clear_y, 0])
149 rectfromto([clamp_reg_bot_x_min - clamp_reg_extra_x, 0 ],
150 [0, clamp_reg_sz1 ]);
157 module ClampBot(){ ////toplevel
158 linear_extrude(height = clamp_bot_th, convexity=4) {
164 translate([clamp_l, 0, clamp_bot_th-0.1])
165 linear_extrude(height = clamp_bot_tooth_h +0.1)
166 rectfromto([ -clamp_bot_tooth_d, -clamp_w/2 ],
168 translate([0,0, clamp_bot_th])
170 linear_extrude(height = clamp_bot_collar)
175 translate([0, 0, clamp_bot_th]) {
176 linextr(-clamp_reg_sz2, clamp_max_table_th+clamp_reg_sz2) {
177 translate([clamp_reg_bot_x_min, 0]) {
178 rectfromto([ 0, -clamp_reg_sz2/2 ],
179 [ clamp_reg_sz2, +clamp_reg_sz2/2 ]);
182 linextr(-clamp_reg_sz2, 0) {
184 rectfromto([ clamp_reg_bot_x_min, -clamp_reg_sz2/2 ],
185 [ 0, +clamp_reg_sz2/2 ]);
192 module Demo(){ ////toplevel
193 color("blue") translate([0,0, clamp_top_th+0.5]) Stem();
194 color("red") ClampTop();
195 color("grey") translate([0,0, -(clamp_bot_th + 5)]) ClampBot();
196 translate([0,0, -(clamp_bot_collar +10)])
197 rotate([180,0,0]) Wingnut();