Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rack has incorrect pitch due to use of 'clearance' #9

Open
mark1010 opened this issue Dec 9, 2020 · 3 comments
Open

rack has incorrect pitch due to use of 'clearance' #9

mark1010 opened this issue Dec 9, 2020 · 3 comments

Comments

@mark1010
Copy link

mark1010 commented Dec 9, 2020

The 'clearance', which didn't appear in the original library, causes the rack to mismatch a spur gear with the same module / modul. Removing the 'clearance' fixes this issues. Animating the example rack and pinion will show this.

module rack(modul, length, height, width, pressure_angle = 20, helix_angle = 0) {

    // Dimension Calculations
    modul=modul*(1-clearance);

...

fix: //modul=modul*(1-clearance);

...

Image showing rack with modul=modul*(1-clearance) and black marks at correct pitch, rack mismatching pitch. Rack exactly matches spur gear pitch radius and should have the same number of teeth, it doesn't.
with-clearance

Image showing rack without clearance, black marks at correct pitch, in line with rack.

without-clearance

@AcstomScientific
Copy link

Good

@wosym
Copy link

wosym commented Mar 15, 2022

Can confirm that this issue exists. However, I can not confirm that removing clearance solves it. At least not for herringbone racks.
Also: the clearance parameter did exist in the original lib. It is not newly introduced.

@alastaira
Copy link

Just came across this same problem myself (though it took an embrassingly long time to discover: when my rack became unaligned I first began to doubt whether my maths was correct that it should move π * gear reference diameter with each revolultion - it should!).
I can't see any reason why that line exists to adjust the value of "module" in the rack() module - it's inevitably not going to pair correctly with the spur gear if you do (unless the spur gear is also meant to have modul=modul*(1-clearance); ? But then neither one is the size specified!)

alastaira added a commit to playfultechnology/openscad-gears that referenced this issue May 12, 2023
Removed the "clearance" adjustment to the rack module as described at chrisspen#9 which causes it to not mate properly with the spur gear.

Also changed hard-coded values for pi, and radians to degrees to use built-in PI magic number instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants