Hey! This thing is still a Work in Progress. Files, instructions, and other stuff might change!

Spur Gear Fitter Script

by cbiffle, published

Spur Gear Fitter Script by cbiffle Mar 6, 2011

Featured Thing!

Thing Info

34171Views 3830Downloads
Report Thing


I've been working with Greg Frost's gear generator. Getting the gears to mesh requires some math, or trial and error. As a programmer, I don't like doing either one more than once. :-)

This script lets you specify the axle spacing and gear ratio and get the circular_pitch parameter. It simplifies fitting gears together.


This is a library. To use it, include it in your own OpenSCAD creation. There are two functions you'll need. The included example_gears module demonstrates their use.

gear_outer_radius lets you compute the meshing radius of a gear, given its parameters. You'll need this to translate the gears into position.

fit_spur_gears computes the circular pitch for Greg's script.

Thing Info

34171Views 3830Downloads
Report Thing


Liked By

View All

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag. Print Thing Tag

Receiving an error: "No parameters found."

Jun 24, 2015 - Modified Jun 24, 2015

Error : Sorry! No Parameters Found.

thas is very usefull and simple, is there any way to adjust thew axle shaft of if i don't notice it

Nice! I started to use OpenScad with this.

I don't understand what are the values for fit_spur_gears function, you have n1 n2 and a number in your example but what does they represent ?



Excellent stuff. I have used your equations in my Moray for Windows to OpenSCAD export plugin to be able to incorporate some rudimentary gear-capability :D