summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2018-08-31 22:38:35 (UTC)
committer Michael Krelin <hacker@klever.net>2018-08-31 22:38:35 (UTC)
commitaae457de5558e166564bf50ed50c53acfa6b62cd (patch) (side-by-side diff)
treecd61a573f4755cf9cb35d9e81604370c829034bf
parent558d255a01ee6ced090290c5b7f2f9b75cec1360 (diff)
downloadextrudery-aae457de5558e166564bf50ed50c53acfa6b62cd.zip
extrudery-aae457de5558e166564bf50ed50c53acfa6b62cd.tar.gz
extrudery-aae457de5558e166564bf50ed50c53acfa6b62cd.tar.bz2
automatically calculate knob bore length
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--another.scad3
1 files changed, 2 insertions, 1 deletions
diff --git a/another.scad b/another.scad
index e4d79f9..915b184 100644
--- a/another.scad
+++ b/another.scad
@@ -26,15 +26,15 @@ module the_extruder(
// 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,
+ knob_v_clearance = 1,
// spring tensioner
st_nut_d = 9, st_nut_h = 4,
st_screw_d = 5,
st_thickshell = 8*extrusion_width, st_thinshell = 2*extrusion_width,
st_split_w = 4*extrusion_width,
@@ -405,12 +405,13 @@ module the_extruder(
cylinder(d=st_screw_d+st_screw_d_tolerance,h=2*hf+epsilon,$fn=fnd*(st_screw_d+st_screw_d_tolerance));
}
}
module knob() {
ch = knob_indent_d/2;
+ knob_bore_l = body_h-protrusion_h-pulley_elevation-pulley_h-knob_v_clearance;
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);