summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad13
1 files changed, 7 insertions, 6 deletions
diff --git a/another.scad b/another.scad
index b80d0d0..a93d21a 100644
--- a/another.scad
+++ b/another.scad
@@ -15,12 +15,13 @@ module the_extruder(
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
+ filament_offset = (8.25-(3.0+3.5)/2) - 11.5/2 + 1.75/2,
// 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,
@@ -118,13 +119,13 @@ module the_extruder(
translate([0,0,teeth_elevation]) {
place_idler() {
cylinder(d=idler_d,h=idler_h,center=true,$fn=30);
cylinder(d=idler_screw_d,h=lever_thickness+2,center=true,$fn=30);
}//place idler
// filament path
- rotate([0,0,45]) translate([pulley_d/2,0,0]) {
+ rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0]) {
rotate([90,0,0]) cylinder(d=filament_d,h=gearbox_d*2,center=true,$fn=15);
rotate([-90,0,0])
translate([0,0,mount_d/sqrt(2)/2+mount_screw_d])
pushfit(pf);
}
}//translate teeth
@@ -149,18 +150,18 @@ module the_extruder(
cylinder(d=lever_thickness,h=lsd,center=true,$fn=60);
}//hull
}//union
// filament path
place_idler() {
- translate([-idler_d/2,0,0]) rotate([90,0,0]) {
+ translate([-idler_d/2+filament_offset,0,0]) rotate([90,0,0]) {
cylinder(d=filament_path_d,h=3*gearbox_d,center=true,$fn=30);
translate([0,-filament_path_d/2/sqrt(2),0]) rotate([0,0,45])
cube(size=[filament_path_d/2,filament_path_d/2,3*gearbox_d],center=true);
}//rotate translate
- translate([-idler_d/2,0,0])
+ translate([-idler_d/2+filament_offset,0,0])
rotate([90,0,0])
translate([0,0,
sqrt(2)*(mount_d-pulley_d+lsd)/2
]) {
cylinder(d1=filament_path_d,d2=2*filament_path_d,
h=filament_path_d,$fn=2*filament_path_d*fnd);
@@ -243,13 +244,13 @@ module the_extruder(
}
}
} // translate
// pushfit bracket
translate([0,0,filament_elevation])
- rotate([0,0,45]) translate([pulley_d/2,0,0])
+ rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0])
rotate([-90,0,0])
translate([0,0,mount_d/sqrt(2)/2+mount_screw_d-gearbox_d/2/*TODO:*/]) {
pfbl = pf_h(pf)+gearbox_d/2; //TODO:
if(pf_smooth) {
pfbd = pf_d(pf)+2*pf_shell;
hull() {
@@ -289,13 +290,13 @@ module the_extruder(
$fn=fnd*(mount_screw_d+mount_screw_d_tolerance));
translate([0,0,mount_screw_l-mounthole_depth/2])
cylinder(d=mount_screwhead_d,h=body_h+1,$fn=fnd*mount_screwhead_d);
}//for
// pushfit
translate([0,0,filament_elevation])
- rotate([0,0,45]) translate([pulley_d/2,0,0])
+ rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0])
rotate([-90,0,0])
translate([0,0,mount_d/sqrt(2)/2+mount_screw_d+epsilon])
rotate([0,0,180]) {
pushfit(pf);
cylinder(d=filament_guide_d,h=gearbox_d,center=true,$fn=fnd*filament_guide_d);
translate([0,-filament_guide_d/2/sqrt(2),0])
@@ -325,13 +326,13 @@ module the_extruder(
// XXX: this is somewhat ugly and potentially bugged,
// but I want to sleep.
a0_ = atan(
(mount_d/sqrt(2)/2+mount_screw_d+pf_h(pf)+gearbox_d/2)
/
(
- pulley_d/2-
+ pulley_d/2+filament_offset-
(pf_d(pf)+2*pf_shell)/2/cos(30)
)
);
a0 = -135 + ( (a0_>0) ? a0_ : 180+a0_ );
a1 = atan((longwing-lever_thickness/2)/(gearbox_d/2));
translate([0,0,ls_z]) difference() {