OpenFlexure Microscope OpenSCAD docs

large_gears.scad



module printable_large_gears(ratio=2)
[Source]
module printable_large_gears(ratio=2){
    // check the ratio gives an integer number of teeth
    assert(floor(n_teeth_large_gear(ratio))==n_teeth_large_gear(ratio),"The number of teeth on the large gear is not integer");
    // Calculate the spacing from the gear pitch radius.
    // Add 4mm of clearance
    spacing = large_gear_pitch_radius(ratio) + large_gear_pitch_radius(ratio=2) + 4;
    // x and y gears
    repeat([0,2*spacing,0],2,center=true){
        large_gear(ratio);
    }
    // z gear
    large_gear(ratio=2);
}