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 = 6;
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;
67 translate([0,0,-0.01])
68 metric_thread(diameter=thread_act, pitch=thread_pitch,
69 leadin=3, internal=true,
70 test=$test, length=l);
73 module Stem(){ ////toplevel
74 translate([0,0, stem_l -0.1])
75 english_thread(diameter=positive_dia/inch, threads_per_inch=16,
77 length= (positive_l + 0.1) / inch);
81 cylinder(r= stem_dia/2 * 1/(0.5 * sqrt(3)),
84 cylinder(r= stem_base_dia/2,
87 OurThread(stem_inner_l);
91 module Wingnut(){ ////toplevel
94 cylinder(r= (thread_nom+wingnut_wall)/2,
97 sphere(r= wingnut_cnr);
98 translate([0,0, wingnut_cnr*0.5])
99 linear_extrude(height= wingnut_wing_xh + wingnut_th
101 square([wingnut_wing_mindia + wingnut_wing_xrad*2 - wingnut_cnr*2,
102 wingnut_wing_th - wingnut_cnr*2],
106 translate([0,0, wingnut_th])
107 linear_extrude(height= wingnut_wing_xh+1)
108 square(wingnut_wing_mindia, center=true);
109 translate([0,0, wingnut_th])
111 OurThread(wingnut_th+3);
113 linear_extrude(height=5)
114 square(center=true, wingnut_wing_mindia*2);
118 module ClampCollarPlan(){
119 circle(r= thread_nom/2 + clamp_bot_collar_th);
121 module ClampHolePlan(){
122 circle(r= clamp_hole_dia/2);
124 module ClampArmPlan(){
125 rectfromto([0, -clamp_w/2],
126 [clamp_l, +clamp_w/2]);
129 module ClampTop(){ ////toplevel
130 linear_extrude(height = clamp_top_th, convexity=4) {
139 linear_extrude(height = clamp_reg_sz1, convexity=4) {
143 translate([0, clamp_reg_sz2/2 + clamp_reg_clear_y, 0])
144 rectfromto([-clamp_reg_bot_x_min - clamp_reg_extra_x, 0 ],
145 [0, clamp_reg_sz1 ]);
152 module ClampBot(){ ////toplevel
153 linear_extrude(height = clamp_bot_th, convexity=4) {
159 translate([clamp_l, 0, clamp_bot_th-0.1])
160 linear_extrude(height = clamp_bot_tooth_h +0.1)
161 rectfromto([ -clamp_bot_tooth_d, -clamp_w/2 ],
163 translate([0,0, clamp_bot_th])
165 linear_extrude(height = clamp_bot_collar)
170 translate([0, 0, clamp_bot_th]) {
171 linextr(-clamp_reg_sz2, clamp_max_table_th+clamp_reg_sz2) {
172 translate([-clamp_reg_bot_x_min, 0]) {
173 rectfromto([ 0, -clamp_reg_sz2/2 ],
174 [ clamp_reg_sz2, +clamp_reg_sz2/2 ]);
177 linextr(-clamp_reg_sz2, 0) {
179 rectfromto([ -clamp_reg_bot_x_min, -clamp_reg_sz2/2 ],
180 [ 0, +clamp_reg_sz2/2 ]);
187 module Demo(){ ////toplevel
188 color("blue") translate([0,0, clamp_top_th+0.5]) Stem();
189 color("red") ClampTop();
190 color("grey") translate([0,0, -(clamp_bot_th + 5)]) ClampBot();
191 translate([0,0, -(clamp_bot_collar +10)])
192 rotate([180,0,0]) Wingnut();