summaryrefslogtreecommitdiff
path: root/another.scad
authorMichael Krelin <hacker@klever.net>2018-08-03 16:58:16 (UTC)
committer Michael Krelin <hacker@klever.net>2018-08-03 16:58:16 (UTC)
commit741e17207d7e98237eee3b2f1957ab21f067f153 (patch) (side-by-side diff)
tree570fdb8f4c4c3b8f3e682704fdf7a30a3aa69b1e /another.scad
parent1d8c4abb1fb534d52aa4d221aa3052b77f473932 (diff)
downloadextrudery-741e17207d7e98237eee3b2f1957ab21f067f153.zip
extrudery-741e17207d7e98237eee3b2f1957ab21f067f153.tar.gz
extrudery-741e17207d7e98237eee3b2f1957ab21f067f153.tar.bz2
another: thicker shell to support spring nut
Diffstat (limited to 'another.scad') (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad10
1 files changed, 5 insertions, 5 deletions
diff --git a/another.scad b/another.scad
index 7d2dfb3..efc553d 100644
--- a/another.scad
+++ b/another.scad
@@ -13,49 +13,49 @@ module the_extruder(
mounthole_depth = 5,
protrusion_d = 22, protrusion_h = 2.2, // the dimensions of the protrusion on top of gearbox
bore_d = 8, bore_l = 17.6,
bore_dd = 7,
// pulley properties
pulley_d = 11.5, pulley_h=10,
pulley_elevation = 1, // pulley elevation above the protrusion
teeth_elevation = 7.5, // distance from the bottom of the pulley to its teeth
// idler properties
idler_d = 9.5, idler_h = 4, idler_id = 3, // idler dimensions: outer and inner diameters and height
// spring properties
spring_d = 10, spring_lc = 9.6, // spring diameter and compressed length
// filament path properties
filament_d = 1.75,
filament_path_d = 2,
filament_guide_d = 4, // PTFE filament guide diameter
// knob properties
knob_h = 10,
knob_bore_l = 4,
knob_indent_d = 4,
knob_indents = 12,
// spring tensioner
st_nut_d = 9, st_nut_h = 4,
st_screw_d = 5,
- st_shell = 4*extrusion_width,
+ st_thickshell = 8*extrusion_width, st_thinshell = 4*extrusion_width,
// screw it
mount_screw_d = 3.1, mount_screw_l = 20,
mount_screwhead_d=6, mount_screwhead_h=3,
pf = pushfit_embeddest,
// empty spaces
idler_travel = 3, // how far should idler travel when pressed
idler_clearance=1,
pulley_clearance=2,
lever_v_clearance=.7, // vertical clearance for the lever
spring_d_clearance=1,
protrusion_tolerance_h=.5, // horizontal tolerance for the motor protrusion
protrusion_tolerance_v=.5, // vertical tolerance for the motor protrusion
mount_screw_d_tolerance=.4,
idler_v_tolerance=.5,
knob_bore_d_tolerance=.6,
what="lever", // lever|body|knob|springpad|*
left=false,
vitamins = true,
supports = false,
tensioner = true,
@@ -188,59 +188,59 @@ module the_extruder(
module body() {
difference() {
union() {
cylinder(d=gearbox_d,h=body_h,$fn=fnd*gearbox_d);
// finger and spring support
fsw = gearbox_d-(gearbox_d-mount_d)/2-spring_lc;
translate([-gearbox_d/2,0,0]) difference() {
union() {
hull() {
translate([0,-longwing,ls_z])
rotate([0,90,0])
cylinder(d=lever_thickness,h=fsw,$fn=fnd*lever_thickness);
hh=body_h-ls_z;
translate([0,0,ls_z-lever_thickness/2])
mirror([0,1,0]) cube(size=[fsw,longwing-hh+lever_thickness/sqrt(2),hh+lever_thickness/2]);
hhh=ls_z;
translate([0,0,0])
mirror([0,1,0]) cube(size=[fsw,longwing-hhh+lever_thickness/sqrt(2),hhh+lever_thickness/2]);
}
}
translate([0,-longwing,ls_z]) rotate([0,-90,0]) {
if(!tensioner) finger_indent(d=lever_thickness-1,r=15); else {
if(debug) translate([0,-lever_thickness/2-1,-gearbox_d]) cube(size=[body_h/2+1,lever_thickness/2+1,gearbox_d+2]);
mirror([0,0,1]) {
- translate([0,0,st_shell])
+ translate([0,0,st_thickshell])
hull() for(o=[0,spring_d]) translate([0,-o,0])
rotate([0,0,30])
cylinder(d=st_nut_d,h=st_nut_h,$fn=6);
translate([0,0,-1]) cylinder(d=st_screw_d,h=fsw+2,$fn=fnd*st_screw_d);
bigd = spring_d+spring_d_clearance;
hf = (bigd-st_screw_d)/2;
- translate([0,0,st_shell+st_nut_h+st_shell-epsilon])
+ translate([0,0,st_thickshell+st_nut_h+st_thinshell-epsilon])
cylinder(d1=st_screw_d,d2=bigd,
h=hf+epsilon, $fn=fnd*bigd);
- translate([0,0,st_shell+st_nut_h+st_shell+hf-epsilon])
+ translate([0,0,st_thickshell+st_nut_h+st_thinshell+hf-epsilon])
cylinder(d=bigd,h=fsw+1,$fn=fnd*bigd);
}
}
}
} // translate
// pushfit bracket
translate([0,0,filament_elevation])
rotate([0,0,45]) translate([pulley_d/2,0,0])
rotate([-90,0,0])
translate([0,0,mount_d/sqrt(2)/2+mount_screw_d-gearbox_d/2/*TODO:*/])
cylinder(r=min(body_h-filament_elevation,filament_elevation)/sin(60)-epsilon,h=pf_h(pf)+gearbox_d/2/*TODO:*/,$fn=6);
}//union (first child of difference)
// protrusion
translate([0,0,-1])
cylinder(d=protrusion_d+protrusion_tolerance_h,h=protrusion_h+protrusion_tolerance_v+1,$fn=fnd*(protrusion_d+protrusion_tolerance_h));
// mount screw holes
for(zr=[0:90:359]) rotate([0,0,zr]) translate([mount_d/2,0,0]) {
translate([0,0,mount_screw_l-mounthole_depth/2-layer_height-1])
mirror([0,0,1])
cylinder(d=mount_screw_d+mount_screw_d_tolerance,
h=mount_screw_l-mounthole_depth/2-layer_height+1,
$fn=fnd*(mount_screw_d+mount_screw_d_tolerance));
@@ -314,49 +314,49 @@ module the_extruder(
difference() {
translate([0,0,ls_z-ls_h/2-epsilon])
cylinder(d=gearbox_d,h=ls_h+2*epsilon,$fn=fnd*gearbox_d);
cylinder(d=pulley_d+pulley_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_clearance));
}
// supports
// TODO: hardcoded stuff below…
if(false) { // parallel
for(y=[-gearbox_d:4:gearbox_d])
translate([0,y-extrusion_width/2,0])
cube(size=[gearbox_d,extrusion_width,body_h]);
}else{ // radial
for(zr=[-65:(65+50)/7:50])
rotate([0,0,zr]) translate([0,-extrusion_width/2,0])
cube(size=[gearbox_d,extrusion_width,body_h]);
}
}
}//body module
module springpad() {
smalld=st_screw_d+2*extrusion_width;
bigd = spring_d+spring_d_clearance/2;
hf = (bigd-smalld)/2;
- translate([-gearbox_d/2+st_shell+st_nut_h+st_shell+smalld,-longwing,filament_elevation])
+ translate([-gearbox_d/2+st_thickshell+st_nut_h+st_thinshell+1,-longwing,filament_elevation])
rotate([0,90,0]) difference() {
union() {
cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd);
translate([0,0,hf-epsilon])
cylinder(d=bigd,h=hf*2,$fn=fnd*bigd);
translate([0,0,3*hf])
sphere(d=spring_d*3/4,$fn=fnd*spring_d*3/4);
}
translate([0,0,-epsilon])
cylinder(d=st_screw_d,h=2*hf+epsilon,$fn=fnd*st_screw_d);
}
}
module knob() {
ch = knob_indent_d/2;
translate([0,0,body_h+epsilon]) {
mirror([0,0,1]) translate([0,0,-epsilon]) {
difference() {
cylinder(d=pulley_d,h=knob_bore_l,$fn=fnd*pulley_d);
translate([0,0,-1]) difference() {
cylinder(d=bore_d+knob_bore_d_tolerance,h=knob_bore_l+2);
translate([-bore_d/2-1,bore_dd-bore_d/2+knob_bore_d_tolerance/2,-1])
cube([bore_d+2,bore_d/2,knob_bore_l+4]);
}