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);
75 translate([0,0, stem_l -0.1])
80 cylinder(r= stem_dia/2 * 1/(0.5 * sqrt(3)),
83 cylinder(r= stem_base_dia/2,
86 OurThread(stem_inner_l);
90 module Stem(){ ////toplevel
92 english_thread(diameter=positive_dia/inch, threads_per_inch=16,
94 length= (positive_l + 0.1) / inch);
97 module Wingnut(){ ////toplevel
100 cylinder(r= (thread_nom+wingnut_wall)/2,
103 sphere(r= wingnut_cnr);
104 translate([0,0, wingnut_cnr*0.5])
105 linear_extrude(height= wingnut_wing_xh + wingnut_th
107 square([wingnut_wing_mindia + wingnut_wing_xrad*2 - wingnut_cnr*2,
108 wingnut_wing_th - wingnut_cnr*2],
112 translate([0,0, wingnut_th])
113 linear_extrude(height= wingnut_wing_xh+1)
114 square(wingnut_wing_mindia, center=true);
115 translate([0,0, wingnut_th])
117 OurThread(wingnut_th+3);
119 linear_extrude(height=5)
120 square(center=true, wingnut_wing_mindia*2);
124 module ClampCollarPlan(){
125 circle(r= clamp_collar_r);
127 module ClampHolePlan(){
128 circle(r= clamp_hole_dia/2);
130 module ClampArmPlan(){
133 rectfromto([r, -clamp_w/2],
134 [clamp_l, +clamp_w/2]);
139 module ClampTop(){ ////toplevel
140 linear_extrude(height = clamp_top_th, convexity=4) {
149 linear_extrude(height = clamp_reg_sz1, convexity=4) {
153 translate([0, clamp_reg_sz2/2 + clamp_reg_clear_y, 0])
154 rectfromto([clamp_reg_bot_x_min - clamp_reg_extra_x, 0 ],
155 [0, clamp_reg_sz1 ]);
162 module ClampBot(){ ////toplevel
163 linear_extrude(height = clamp_bot_th, convexity=4) {
169 translate([clamp_l, 0, clamp_bot_th-0.1])
170 linear_extrude(height = clamp_bot_tooth_h +0.1)
171 rectfromto([ -clamp_bot_tooth_d, -clamp_w/2 ],
173 translate([0,0, clamp_bot_th])
175 linear_extrude(height = clamp_bot_collar)
180 translate([0, 0, clamp_bot_th]) {
181 linextr(-clamp_reg_sz2, clamp_max_table_th+clamp_reg_sz2) {
182 translate([clamp_reg_bot_x_min, 0]) {
183 rectfromto([ 0, -clamp_reg_sz2/2 ],
184 [ clamp_reg_sz2, +clamp_reg_sz2/2 ]);
187 linextr(-clamp_reg_sz2, 0) {
189 rectfromto([ clamp_reg_bot_x_min, -clamp_reg_sz2/2 ],
190 [ 0, +clamp_reg_sz2/2 ]);
197 module Demo(){ ////toplevel
198 color("blue") translate([0,0, clamp_top_th+0.5]) Stem();
199 color("red") ClampTop();
200 color("grey") translate([0,0, -(clamp_bot_th + 5)]) ClampBot();
201 translate([0,0, -(clamp_bot_collar +10)])
202 rotate([180,0,0]) Wingnut();