Compound Spur Gear
compound_spur_gear() stacks a small gear on top of a standard plain_spur_gear().
Customizing compound_spur_gear with OpenSCAD parameters
compound_spur_gear builds a plain_spur_gear for the main gear, then stacks a smaller gear on top of it. The nut pocket is always included:
compound_spur_gear(
size1 = 5,
size2 = 1,
thickness1 = 10,
thickness2 = 10,
axis_bore_diameter = global_default_hole_diameter,
chamfer_depth = 1.5,
nut_clearance = 0.1,
nut_width = global_default_nut_width,
nut_thickness = 2.25,
nut_offset = 3.5,
lock_bore_diameter = global_default_hole_diameter,
hub_diameter = 17,
rim_thickness = 8,
spoke_count = 4,
spoke_width = 7,
echo_parameters = true
);
| size1 | the main gear size in 1 cm units (default 5). |
| size2 | the small stacked gear size in 1 cm units (default 1). |
| thickness1 | main gear thickness in mm (default 10). |
| thickness2 | small gear thickness in mm (default 10). |
| axis_bore_diameter | center bore diameter in mm (default global_default_hole_diameter, 3.2 mm, sized for m3 screws). |
| chamfer_depth | how deep the rim chamfer cuts in mm (default 1.5). |
| nut_clearance | extra clearance around the nut pocket in mm (default 0.1). |
| nut_width | nut width across flats in mm (default global_default_nut_width, 5.5 mm, sized for m3 nuts). |
| nut_thickness | nut thickness in mm (default 2.25). |
| nut_offset | distance from the lock bore center to the nut pocket center in mm (default 3.5). |
| lock_bore_diameter | diameter of the lock screw bore on the rim in mm (default global_default_hole_diameter, 3.2 mm). |
| hub_diameter | central hub diameter in mm (default 17). |
| rim_thickness | radial thickness of the rim between the teeth and the spoke cutouts in mm (default 8). |
| spoke_count | number of spokes (default 4). |
| spoke_width | spoke width in mm (default 7). |
| echo_parameters | when true (default), the OpenSCAD console echoes the full parameter list when you preview or render the module. |
If you leave a parameter out of the module call, that parameter will just have the default value. For example, these are all valid module calls:
compound_spur_gear();
compound_spur_gear(size1=6, size2=2);
compound_spur_gear(size1=5, size2=2, thickness2=5);