author | Michael Krelin <hacker@klever.net> | 2018-09-06 21:52:50 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2018-09-06 21:52:50 (UTC) |
commit | 76dd6dc594580d573a8d2ec566944c20cd7019af (patch) (unidiff) | |
tree | ee9ce3964f4103eb14fc07c51189241ba8afe391 | |
parent | 1409beae6cdd6520ef037b0d2a083844ce0e0c47 (diff) | |
download | extrudery-76dd6dc594580d573a8d2ec566944c20cd7019af.zip extrudery-76dd6dc594580d573a8d2ec566944c20cd7019af.tar.gz extrudery-76dd6dc594580d573a8d2ec566944c20cd7019af.tar.bz2 |
adjust spring tensioner hand cutout
-rw-r--r-- | another.scad | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/another.scad b/another.scad index 83a4e43..4842e1b 100644 --- a/another.scad +++ b/another.scad | |||
@@ -316,98 +316,98 @@ module the_extruder( | |||
316 | rotate_extrude(angle=90,$fn=fnr*(shortwing+(idler_d+idler_clearance)/2)) | 316 | rotate_extrude(angle=90,$fn=fnr*(shortwing+(idler_d+idler_clearance)/2)) |
317 | square([shortwing+(idler_d+idler_clearance)/2,ls_h]); | 317 | square([shortwing+(idler_d+idler_clearance)/2,ls_h]); |
318 | // idler itself | 318 | // idler itself |
319 | place_idler() | 319 | place_idler() |
320 | cylinder(d=idler_d+idler_clearance,h=ls_h,$fn=fnd*(idler_d+idler_clearance)); | 320 | cylinder(d=idler_d+idler_clearance,h=ls_h,$fn=fnd*(idler_d+idler_clearance)); |
321 | // lever space | 321 | // lever space |
322 | rotate([0,0,45]) | 322 | rotate([0,0,45]) |
323 | rotate_extrude(angle=-135+max(atan(2*fsw/gearbox_d-1),atan(gearbox_d/mount_d-1))) | 323 | rotate_extrude(angle=-135+max(atan(2*fsw/gearbox_d-1),atan(gearbox_d/mount_d-1))) |
324 | square([gearbox_d/2+1,ls_h]); | 324 | square([gearbox_d/2+1,ls_h]); |
325 | } | 325 | } |
326 | 326 | ||
327 | // back side cutout | 327 | // back side cutout |
328 | // XXX: this is somewhat ugly and potentially bugged, | 328 | // XXX: this is somewhat ugly and potentially bugged, |
329 | // but I want to sleep. | 329 | // but I want to sleep. |
330 | a0_ = atan( | 330 | a0_ = atan( |
331 | (pf_offset+pf_h(pf)+gearbox_d/2) | 331 | (pf_offset+pf_h(pf)+gearbox_d/2) |
332 | / | 332 | / |
333 | ( | 333 | ( |
334 | pulley_d/2+filament_offset- | 334 | pulley_d/2+filament_offset- |
335 | (pf_d(pf)+2*pf_shell)/2/cos(30) | 335 | (pf_d(pf)+2*pf_shell)/2/cos(30) |
336 | ) | 336 | ) |
337 | ); | 337 | ); |
338 | a0 = -135 + ( (a0_>0) ? a0_ : 180+a0_ ); | 338 | a0 = -135 + ( (a0_>0) ? a0_ : 180+a0_ ); |
339 | a1 = atan((longwing-lever_thickness/2)/(gearbox_d/2)); | 339 | a1 = atan((longwing-lever_thickness/2)/(gearbox_d/2)); |
340 | translate([0,0,ls_z]) difference() { | 340 | translate([0,0,ls_z]) difference() { |
341 | rotate([0,0,-180+a0]) | 341 | rotate([0,0,-180+a0]) |
342 | rotate_extrude(angle=a1-a0) | 342 | rotate_extrude(angle=a1-a0) |
343 | translate([0,-ls_h/2]) | 343 | translate([0,-ls_h/2]) |
344 | square([sqrt(pow(gearbox_d/2,2)+pow(longwing-lever_thickness/2,2))+1, | 344 | square([sqrt(pow(gearbox_d/2,2)+pow(longwing-lever_thickness/2,2))+1, |
345 | ls_h]); | 345 | ls_h]); |
346 | translate([-mount_d/2,0,0]) | 346 | translate([-mount_d/2,0,0]) |
347 | cylinder(d=gearbox_d-mount_d,h=ls_h+2,center=true,$fn=fnd*(gearbox_d-mount_d)); | 347 | cylinder(d=gearbox_d-mount_d,h=ls_h+2,center=true,$fn=fnd*(gearbox_d-mount_d)); |
348 | }//difference translate | 348 | }//difference translate |
349 | 349 | ||
350 | // spring tensioner | 350 | // spring tensioner |
351 | translate([-gearbox_d/2,-longwing,ls_z]) rotate([0,-90,0]) { | 351 | translate([-gearbox_d/2,-longwing,ls_z]) rotate([0,-90,0]) { |
352 | mirror([0,0,1]) { | 352 | mirror([0,0,1]) { |
353 | translate([0,0,st_thickshell]) | 353 | translate([0,0,st_thickshell]) |
354 | hull() for(o=[0,spring_d]) translate([0,-o,0]) | 354 | hull() for(o=[0,spring_d]) translate([0,-o,0]) |
355 | rotate([0,0,30]) | 355 | rotate([0,0,30]) |
356 | cylinder(d=st_nut_d+st_nut_d_tolerance,h=st_nut_h+st_nut_h_tolerance,$fn=6); | 356 | cylinder(d=st_nut_d+st_nut_d_tolerance,h=st_nut_h+st_nut_h_tolerance,$fn=6); |
357 | translate([0,0,-1]) cylinder(d=st_screw_d+st_screw_d_tolerance,h=fsw+2,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); | 357 | translate([0,0,-1]) cylinder(d=st_screw_d+st_screw_d_tolerance,h=fsw+2,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); |
358 | bigd = spring_d+spring_d_clearance; | 358 | bigd = spring_d+spring_d_clearance; |
359 | hf = (bigd-st_screw_d-st_screw_d_tolerance)/2; | 359 | hf = (bigd-st_screw_d-st_screw_d_tolerance)/2; |
360 | translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell-epsilon]) { | 360 | translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell-epsilon]) { |
361 | cylinder(d1=st_screw_d+st_screw_d_tolerance,d2=bigd, | 361 | cylinder(d1=st_screw_d+st_screw_d_tolerance,d2=bigd, |
362 | h=hf+epsilon, $fn=fnd*bigd); | 362 | h=hf+epsilon, $fn=fnd*bigd); |
363 | translate([0,-(st_split_w+st_split_w_tolerance)/2,0]) hull() { | 363 | translate([0,-(st_split_w+st_split_w_tolerance)/2,0]) hull() { |
364 | cube(size=[body_h-ls_z-sp_ch-st_split_w_tolerance,st_split_w+st_split_w_tolerance,fsw+1]); | 364 | cube(size=[body_h-ls_z-st_w+st_split_w_tolerance,st_split_w+st_split_w_tolerance,fsw+1]); |
365 | translate([0,0,sp_ch+st_split_w_tolerance+1]) | 365 | translate([0,0,st_w+1]) |
366 | cube(size=[body_h-ls_z+1,st_split_w+st_split_w_tolerance,fsw+1]); | 366 | cube(size=[body_h-ls_z+1,st_split_w+st_split_w_tolerance,fsw+1]); |
367 | } | 367 | } |
368 | }//translate | 368 | }//translate |
369 | translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+hf-epsilon]) | 369 | translate([0,0,st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+hf-epsilon]) |
370 | cylinder(d=bigd,h=fsw+1,$fn=fnd*bigd); | 370 | cylinder(d=bigd,h=fsw+1,$fn=fnd*bigd); |
371 | }//mirror | 371 | }//mirror |
372 | }//translate | 372 | }//translate |
373 | 373 | ||
374 | // label | 374 | // label |
375 | body_label(); | 375 | body_label(); |
376 | // scale | 376 | // scale |
377 | body_scale(); | 377 | body_scale(); |
378 | 378 | ||
379 | }//difference | 379 | }//difference |
380 | 380 | ||
381 | }//body module | 381 | }//body module |
382 | module body_scale() { | 382 | module body_scale() { |
383 | scale_thickness = 2*layer_height; | 383 | scale_thickness = 2*layer_height; |
384 | nscales = 5; | 384 | nscales = 5; |
385 | x1 = -gearbox_d/2+fsw-st_h+st_w+st_bump*2-st_bump_tip/2; | 385 | x1 = -gearbox_d/2+fsw-st_h+st_w+st_bump*2-st_bump_tip/2; |
386 | x0 = -gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+st_split_w+st_split_w_tolerance+st_bump_tip/2; | 386 | x0 = -gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+st_split_w+st_split_w_tolerance+st_bump_tip/2; |
387 | w0 = st_split_w+st_split_w_tolerance+2*(extrusion_width+2*extrusion_width); | 387 | w0 = st_split_w+st_split_w_tolerance+2*(extrusion_width+2*extrusion_width); |
388 | w1 = 2*(longwing-gearbox_d/2-extrusion_width); | 388 | w1 = 2*(longwing-gearbox_d/2-extrusion_width); |
389 | translate([0,-longwing,body_h-scale_thickness]) | 389 | translate([0,-longwing,body_h-scale_thickness]) |
390 | difference() { | 390 | difference() { |
391 | for(x=[x0:(x1-x0)/(nscales-1):x1]) let(w=w0+(w1-w0)*(x-x0)/(x1-x0)) | 391 | for(x=[x0:(x1-x0)/(nscales-1):x1]) let(w=w0+(w1-w0)*(x-x0)/(x1-x0)) |
392 | translate([x-st_bump_tip/2,-w/2,0]) | 392 | translate([x-st_bump_tip/2,-w/2,0]) |
393 | cube(size=[st_bump_tip,w,scale_thickness+epsilon]); | 393 | cube(size=[st_bump_tip,w,scale_thickness+epsilon]); |
394 | let(w=st_split_w+st_split_w_tolerance+extrusion_width) | 394 | let(w=st_split_w+st_split_w_tolerance+extrusion_width) |
395 | translate([-gearbox_d/2,-w/2,-1]) | 395 | translate([-gearbox_d/2,-w/2,-1]) |
396 | cube(size=[fsw,w,scale_thickness+2]); | 396 | cube(size=[fsw,w,scale_thickness+2]); |
397 | } | 397 | } |
398 | } | 398 | } |
399 | module body_label() { | 399 | module body_label() { |
400 | if(body_label) { | 400 | if(body_label) { |
401 | label=body_label; | 401 | label=body_label; |
402 | label_thickness=body_label_thickness; | 402 | label_thickness=body_label_thickness; |
403 | label_len = len(label); | 403 | label_len = len(label); |
404 | labelspace = [gearbox_d/2-mount_screwhead_d/2-min_xy_shell,longwing-(mount_screwhead_d-st_split_w-st_split_w_tolerance)/2-2*min_xy_shell]; | 404 | labelspace = [gearbox_d/2-mount_screwhead_d/2-min_xy_shell,longwing-(mount_screwhead_d-st_split_w-st_split_w_tolerance)/2-2*min_xy_shell]; |
405 | translate([0,0,body_h-label_thickness]) | 405 | translate([0,0,body_h-label_thickness]) |
406 | linear_extrude(height=label_thickness+epsilon,convexity=64) | 406 | linear_extrude(height=label_thickness+epsilon,convexity=64) |
407 | translate([-mount_screwhead_d/2-min_xy_shell-labelspace.x/2,-longwing+(st_split_w+st_split_w_tolerance)/2+min_xy_shell+labelspace.y/2]) | 407 | translate([-mount_screwhead_d/2-min_xy_shell-labelspace.x/2,-longwing+(st_split_w+st_split_w_tolerance)/2+min_xy_shell+labelspace.y/2]) |
408 | mirror([left?0:1,0]) | 408 | mirror([left?0:1,0]) |
409 | text(text=label,size=labelspace.x/label_len,halign="center",valign="center",font="Arial Black"); | 409 | text(text=label,size=labelspace.x/label_len,halign="center",valign="center",font="Arial Black"); |
410 | }else sphere(d=epsilon); // to avoid makefile breakage | 410 | }else sphere(d=epsilon); // to avoid makefile breakage |
411 | } | 411 | } |
412 | 412 | ||
413 | st_bump = 4*extrusion_width; | 413 | st_bump = 4*extrusion_width; |