gears icon indicating copy to clipboard operation
gears copied to clipboard

rack has incorrect pitch due to use of 'clearance'

Open mark1010 opened this issue 3 years ago • 3 comments

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

mark1010 avatar Dec 09 '20 19:12 mark1010

Good

AcstomScientific avatar Dec 10 '20 00:12 AcstomScientific

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.

wosym avatar Mar 15 '22 14:03 wosym

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 avatar May 12 '23 19:05 alastaira