author | Michael Krelin <hacker@klever.net> | 2018-09-06 20:58:54 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2018-09-06 20:58:54 (UTC) |
commit | 1409beae6cdd6520ef037b0d2a083844ce0e0c47 (patch) (unidiff) | |
tree | f6a4df48f0f870a3f152db11bf464052b5add237 | |
parent | 4cc8be3ab27f44d8a298b8df3df0092d1f95e067 (diff) | |
download | extrudery-1409beae6cdd6520ef037b0d2a083844ce0e0c47.zip extrudery-1409beae6cdd6520ef037b0d2a083844ce0e0c47.tar.gz extrudery-1409beae6cdd6520ef037b0d2a083844ce0e0c47.tar.bz2 |
spring compression scale
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | another.scad | 37 |
2 files changed, 35 insertions, 6 deletions
@@ -16,3 +16,3 @@ clean: | |||
16 | stl-another-%: | 16 | stl-another-%: |
17 | $(MAKE) another-$*-{body,body-label,lever,knob,knob-label,springpad}.stl | 17 | $(MAKE) another-$*-{body,body-label,body-scale,lever,knob,knob-label,springpad}.stl |
18 | 18 | ||
@@ -22,2 +22,4 @@ another-%-body-label.stl: another-%.scad another.scad | |||
22 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body.label"' -o "$@" "$<" | 22 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body.label"' -o "$@" "$<" |
23 | another-%-body-scale.stl: another-%.scad another.scad | ||
24 | $(OPENSCAD_BIN) $(OPENSCAD_FLAGS) -D 'what="body.scale"' -o "$@" "$<" | ||
23 | another-%-lever.stl: another-%.scad another.scad | 25 | another-%-lever.stl: another-%.scad another.scad |
diff --git a/another.scad b/another.scad index fd73a61..83a4e43 100644 --- a/another.scad +++ b/another.scad | |||
@@ -375,2 +375,4 @@ module the_extruder( | |||
375 | body_label(); | 375 | body_label(); |
376 | // scale | ||
377 | body_scale(); | ||
376 | 378 | ||
@@ -379,2 +381,19 @@ module the_extruder( | |||
379 | }//body module | 381 | }//body module |
382 | module body_scale() { | ||
383 | scale_thickness = 2*layer_height; | ||
384 | nscales = 5; | ||
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; | ||
387 | w0 = st_split_w+st_split_w_tolerance+2*(extrusion_width+2*extrusion_width); | ||
388 | w1 = 2*(longwing-gearbox_d/2-extrusion_width); | ||
389 | translate([0,-longwing,body_h-scale_thickness]) | ||
390 | difference() { | ||
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]) | ||
393 | cube(size=[st_bump_tip,w,scale_thickness+epsilon]); | ||
394 | let(w=st_split_w+st_split_w_tolerance+extrusion_width) | ||
395 | translate([-gearbox_d/2,-w/2,-1]) | ||
396 | cube(size=[fsw,w,scale_thickness+2]); | ||
397 | } | ||
398 | } | ||
380 | module body_label() { | 399 | module body_label() { |
@@ -395,7 +414,12 @@ module the_extruder( | |||
395 | st_bump_tip = 2*extrusion_width; | 414 | st_bump_tip = 2*extrusion_width; |
415 | st_smalld = st_screw_d+st_screw_d_tolerance+min_xy_shell; | ||
416 | st_bigd = spring_d+spring_d_clearance/2; | ||
417 | st_hf = (st_bigd-st_smalld)/2; | ||
418 | st_h = max(st_hf*3,fsw-st_screw_l+st_hf); | ||
419 | st_w = sp_ch; | ||
396 | module springpad() { | 420 | module springpad() { |
397 | smalld=st_screw_d+st_screw_d_tolerance+min_xy_shell; | 421 | smalld=st_smalld; |
398 | bigd = spring_d+spring_d_clearance/2; | 422 | bigd = st_bigd; |
399 | hf = (bigd-smalld)/2; | 423 | hf = st_hf; |
400 | h = max(hf*3,fsw-st_screw_l+hf); | 424 | h = st_h; |
401 | translate([-gearbox_d/2+fsw-h,-longwing,filament_elevation]) | 425 | translate([-gearbox_d/2+fsw-h,-longwing,filament_elevation]) |
@@ -409,3 +433,3 @@ module the_extruder( | |||
409 | l = body_h-ls_z; | 433 | l = body_h-ls_z; |
410 | w = sp_ch; | 434 | w = st_w; |
411 | translate([0,-st_split_w/2,0]) mirror([1,0,0]) { | 435 | translate([0,-st_split_w/2,0]) mirror([1,0,0]) { |
@@ -500,2 +524,3 @@ module the_extruder( | |||
500 | else if(what=="body.label") color("brown",0.7) body_label(); | 524 | else if(what=="body.label") color("brown",0.7) body_label(); |
525 | else if(what=="body.scale") color("brown",0.7) body_scale(); | ||
501 | else if(what=="knob") color("red",0.7) knob(); | 526 | else if(what=="knob") color("red",0.7) knob(); |
@@ -507,2 +532,3 @@ module the_extruder( | |||
507 | color("brown",0.7) body_label(); | 532 | color("brown",0.7) body_label(); |
533 | color("brown",0.7) body_scale(); | ||
508 | }else{ | 534 | }else{ |
@@ -511,2 +537,3 @@ module the_extruder( | |||
511 | color("brown",0.7) body_label(); | 537 | color("brown",0.7) body_label(); |
538 | color("brown",0.7) body_scale(); | ||
512 | color("red",0.7) knob(); | 539 | color("red",0.7) knob(); |