# How-To: Make your own gears

We asked Dustyn Roberts, who teaches a course at NYU’s Interactive Telecommunications Program (ITP), called Mechanisms and Things That Move, to contribute something on fabricating your own gears for our Physical Science and Mechanics theme. Dustyn has written a book, called Making Things Move. It’ll be out in the fall and we’ll have more about it, and likely a giveaway, then. Thanks, Dustyn! — Gareth

Gears are easy to understand, make, and use, if you know the vocabulary and can space the gears at the correct distance apart. One nice thing about gears is that if you know any two things about them – let’s say outer diameter and number of teeth — you can use some simple equations to find everything else you need to know, including the correct center distance between them. First, look over the anatomy of the spur gear pair in figure 1 and the vocab below.

• Number of Teeth (N)
• Pitch Diameter (D): The circle on which two gears effectively mesh, about halfway through the tooth. The pitch diameters of two gears will be tangent when the centers are spaced correctly.
• Diametral Pitch (P): The number of teeth per inch of the circumference of the pitch diameter. Think of it as the density of teeth — the higher the number, the smaller and more closely spaced the teeth on a gear. Common diametral pitches for hobby-size projects are 24, 32, and 48. The diametral pitch of all meshing gears must be the same.
• Circular Pitch (p) = pi / P: The length of the arc between the center of one tooth and the center of a tooth next to it. This is just pi (Ï€ = 3.14) divided by the diametral pitch (P). Although rarely used to identify off the shelf gears, you may need this parameter when modeling gears in 2D and 3D software like we’re doing here. As with diametral pitch, the circular pitch of all meshing gears must be the same.
• Outside Diameter (Do): The biggest circle that touches the edges of the gear teeth. You can measure this using a caliper like Sparkfun.com’s # TOL-00067.
Note: Gears with an even number of teeth are easiest to measure, since each tooth has another tooth directly across the gear. On a gear with an odd number of teeth, if you draw a line from the center of one tooth straight through the center across the gear, the line will fall between two teeth. So, just be careful using outside diameter in your calculations if you estimated it from a gear with an odd number of teeth.
• Center Distance (C): Half the pitch diameter of the first gear plus half the pitch diameter of the second gear will equal the correct center distance. This spacing is critical for creating smooth running gears.
• Pressure Angle: The angle between the line of action (how the contact point between gear teeth travels as they rotate) and the line tangent to the pitch circle. Standard pressure angles are, for some reason, 14.5Â° and 20Â°. A pressure angle of 20Â° is better for small gears, but it doesn’t make much difference. It’s not important to understand this parameter, just to know that the pressure angle of all meshing gears must be the same.

Figure 1

All of these gear parameters relate to each other with simple equations. The equations in the table below come from the excellent (and free) design guide published by Boston Gear [PDF].

This project is adapted from a blog post a student did in my first Mechanisms and Things That Move class at NYU’s ITP. We’ll design and fabricate spur gears using free software (Inkscape) and an online store (Ponoko.com) that does custom laser cutting at affordable prices out of a variety of materials. If you have access to a laser cutter at a local school or hackerspace, even better! You can also print out the template and fix it to cardboard or wood to cut the gears by hand.

1. Download and install Inkscape from www.inkscape.org. It’s a free, open-source vector based drawing program similar to Adobe Illustrator. It plays well with most modern Windows, Mac, and Linux operating systems (check FAQ for details).
2. Go to www.ponoko.com/make-and-sell/downloads and download their Inkscape starter kit. This will give you a making guide (a PDF file) and three templates that relate to the sizes of materials Ponoko stocks. Unzip the file and save to somewhere you’ll remember.
3. Open a new file in Inkscape. Under the file menu, go to Document Properties to get the window shown in Figure 2. Change the default units in the upper right hand corner to inches. Back in the main window, change the rulers from pixels to inches in the toolbar. Your screen should look like Figure 2. Once set, exit that window.

4. Figure 2

5. Now let’s make some gears! Go to the toolbar and choose Extensions –> Render –> Gear. A small Gear window will pop up that gives you three options: Number of Teeth, Circular pitch, px, and Pressure angle. Leave Pressure angle alone — the 20Â° default is standard for off the shelf gears so is a good place to start. In Figure 3, you can see that I chose 28 teeth with a circular pitch of 24. Click Apply, then Close.

Note on circular pitch: In Inkscape, the circular pitch is given in pixels, not inches, as we’re used to using in the equations in the above table. You can get different gear ratios by just choosing a circular pitch that looks good and varying the teeth number, but if you want to make gears that interface with off the shelf gears, you need to pay a little bit more attention. By default in Inkscape there are 90 pixels in 1 inch. So if you set circular pitch to 24px in the gear tool as done above, that rounds to 0.267 inches (24/90 = 0.2666…). Since diametral pitch (P) = Ï€ / circular pitch (p), the diametral pitch (P) in inches is = Ï€ / 0.267 = 11.781. You will not find any off the shelf gears with a diametral pitch of 11.781. As mentioned earlier, common diametral pitches are 24, 32, and 48. So if you plan to make gears to play nice with off the shelf gears, start with the diametral pitch of your off the shelf gear and use the equations in the table to work backwards to what your circular pitch should be in pixels in Inkscape.

6. Figure 3

7. Now, since gears are no fun by themselves, follow steps 4 and 5 again to make at least one more gear. The second gear shown in figure 30 has 14 teeth. Remember: The pressure angle and circular pitch must be the same for the gears to mesh – only change the number of teeth!
8. Use the circle tool and hold down the CTRL button (on a PC) to draw a circle inside the big gear. The default circle shows up filled in with black. Zoom in if you need to. Make sure the arrow selector is active and click on the circle. Make sure inches is selected in the toolbar and the lock button looks locked. Type 0.250 in the W box in the toolbar, press enter, and watch the H box change automatically. Your circle will resize to 0.250 inches in diameter and your screen should look like Figure 4.

9. Figure 4

10. Click and drag a box around the big gear, small gear, and circle shape to select them all. From the menu bar, choose Object –> Fill and Stroke. A window that looks like Figure 5 should pop up.
• In the Fill tab, click the X button for no paint.
• In the Stroke paint tab, click the button next to the X for flat color. Leave the color default (black) for now.
• In the Stroke style tab, change the width to 0.030 mm and hit enter. This is what Ponoko wants the line thickness to be for laser cuts. Adjust if necessary if you’re using a different laser cutter. Close the window.

11. Figure 5

12. Now we need to get this circle in the exact center of the gear. Make sure the arrow selector is active. Click and drag a box around the big gear and the circle to select them both. On the menu bar, go to Object –> Align and Distribute. Click on the “center object horizontally” button highlighted in figure 6, then the one right below it – “center objects vertically.” Now you have a gear with a hole perfectly centered! Copy and paste this circle and repeat this step to center a circle in the other gear.

13. Figure 6

14. Now that we have our gears, let’s create a base with holes spaced the correct distance apart so we can mount the gears with 1/4″ wooden dowels and make them spin.
1. First, we need to calculate what the center distance (CD) of our gears is using the equations from the table. Both of our gears have a circular pitch of 24 px, a pressure angle of 20Â°. The big gear has 28 teeth and the small one has 14. In the note on step 4, we converted the circular pitch in pixels to a diametral pitch in inches of 11.781. If we look at the table, all we need is that number and the numbers of teeth on the two meshing gears to find the center distance (CD). Use the equation CD = (N1 + N2)/2P and you’ll find that CD = 1.783.
2. Now, copy one of the circles inside the gears, and paste two of them about two inches apart on the lower part of the template. Select the one farthest to the left, and change the X coordinate in the toolbar to 3 inches, then hit enter. Your screen should look like Figure 7.

3. Figure 7

4. Use the same procedure to place the second circle to the right of the first with an X coordinate of 4.783. This is the center distance we calculated above (1.783) added to the X coordinate of the first circle (3.000).
5. Now draw a rectangle around the two circles to complete the base. Align the rectangle with the two circles as shown in Figure 8.

15. Figure 8

16. Now we need to prepare the file to be uploaded and ordered on Ponoko.com.
1. Ponoko uses colors to indicate how they should treat the files — for example, a blue 0.030 mm line means cut it all the way through. So select everything you’ve drawn so far, go to the color swatches at the bottom of the screen, and hold down the shift button while you click on blue.
2. Open the P1.svg template you downloaded earlier. Select everything you have drawn so far, and copy and paste it into this template as shown in Figure 9. Don’t worry about the orange border and words — Ponoko knows only to cut the blue outlines.

3. Figure 9

4. Save the file and go to Ponoko.com to set up a free account, upload it, pick a material, and get it shipped! I chose blonde bamboo as shown in Figure 10 and the total cost was just \$4.13 (plus shipping).

Note: Once you open your free account, go to My Accounts –> Preferences to set your shipping hub to Ponoko – United States (or the closest location to you). Mine was accidentally set to New Zealand so my shipping charges were curiously high until I figured this out.

17. Figure 10

18. Your Ponoko order should arrive in a couple weeks, unless you specify a rush. While you’re waiting, get a 1/4″ wooden dowel from your local hardware or craft store (or McMaster, of course). Cut off two 2″ sections with a hobby knife and file down any splintery ends.
19. The gears will come in the square template with a sticky paper protector on each side. Peel off the paper, pop out the gears, and position the two gears over the holes in the base. Insert your wooden dowels, and voila!

20. Figure 11

BIO: Dustyn Roberts is a traditionally-trained engineer with non-traditional ideas about how engineering can be taught. She started her career at Honeybee Robotics, as an engineer on the Sample Manipulation System project for NASA’s Mars Science Laboratory mission, scheduled for launch in 2011. After consulting with two artists during their residency at Eyebeam Art + Technology Center in NYC in 2006, she founded Dustyn Robots (www.dustynrobots.com) and continues to engage in consulting work ranging from gait analysis to designing guided parachute systems. In 2007, she developed a course for NYU’s Interactive Telecommunications Program (ITP) called Mechanisms and Things That Move that led to writing a book called Making Things Move: DIY Mechanisms for Inventors, Hobbyists, and Artists, due out in fall 2010. Dustyn holds a BS in Mechanical and Biomedical Engineering from Carnegie Mellon University, an MS in Biomechanics & Movement Science from the University of Delaware, and will begin a PhD program in Mechanical Engineering at NYU-Poly in August this year. Media coverage of her work has appeared in Time Out New York, IEEE Spectrum, and other local organizations. She lives in New York City with her partner, Lorena, and cat, Simba.

More:

### 16 Responses to How-To: Make your own gears

1. https://me.yahoo.com/a/mEmr6p0JuYnyARJZTV1ywd2xln66JBCX#0402b on said:

Thanks for the tutorial. I’m looking forward to seeing the SADbot for myself one of these days.

Is it still on display at Eyebeam?

2. dustynrobots on said:

Thanks! And yes, it should be up through July 24th. We had a small hiccup today when one of the motors died, but that will be fixed in a day or two.

3. TotalMonkey on said:

I was just wondering today how I was going to make some gears for a project due this Saturday (of which I hadn’t started yet, of course)!

4. Big Blue Saw on said:

Don’t forget, if you want thin metal spur gears, waterjet cutting is probably the way to go.

For thicker gears, you’ll need to have low taper waterjet cutting or arrange the gears such that the taper runs in the opposite direction on each gear.

Also, I don’t believe that Ponoko automatically compensates for the kerf of the laser, so your gears may run a little bit loose.

5. bkubicek on said:

if you need gcode with cutter compensation, you can also look into this:
http://www.thingiverse.com/thing:1963

6. Andy Seubert on said:

Math is hard so I use these:

onine wooden gear template maker
http://woodgears.ca/gear_cutting/template.html

and this super awesomoe windows program which will export gears in DXF form (and others)

http://woodgears.ca/gear/index.html

7. pyrhho on said:

Keep in mind, that the little “centering” trick may not work if you have an odd number of gears. For example, 7 teeth, circular pitch of 24px, and pressure angle of 20. In this situation 2 of the teeth are touching the left edge, making the center hole be mis-aligned (too far right).

• dustynrobots on said:

Excellent point, I didn’t test that when I wrote this tutorial. However, I just did, and it seems that it centers a circle on a gear with an odd number of teeth just fine. That was just a quick test though – if you’ve found errors let me know! Thanks.

• Aaron Spike on said:

I am happy to hear that you found this gear generating script useful. If centering odd toothed gears proves to be a problem, it would be rather simple to have the script generate the center point. And there are plenty of other useful modifications that could be made, for example adding undercutting and addendum modification or outsetting the outlines slightly to account for the laser kerf. Check it out.

Happy hacking!

• dustynrobots on said:

That’s great! Thanks Aaron for the link. Unfortunately my coding skillz are not quite ready for that challenge, but I would love to guide someone a little more experienced. It doesn’t look like centering with odd toothed gears is a problem, but having the option to generate a user-defined centered circle would probably be great. Also, the option to choose diametral pitch in inches or mm instead of circular pitch in pixels would be cool.

8. Big Blue Saw on said:

Another useful source for gear (and other mechanical component) CAD files is industrial suppliers, like SDP/SI and McMaster-Carr. They have CAD files in DXF and other formats.

Also, it occurs to me that if you’re not committed to the clockpunk look of the wooden gears and you don’t want the expense of metal gears, it’s probably best to stick to engineering plastics like acetal or PETG.

• dustynrobots on said:

I don’t think enough people know about that option, so I did a quick tutorial on downloading a part from McMaster into Alibre Design in chapter 9 of my book. Maybe that’s another good excerpt to post here!

9. hey, thanks for this. How could I design a gear rack to use with these gears?

10. Thanks for the help. Our FIRST robotics team is gearing up for off-season work, and this looks like very useful items for teaching our next generation of roboticists in grade schools in the area.
We are always looking for people who are interested in mentoring students about robotics and business, particularly in the northern Minnesota area for us, but generally anywhere there is a FIRST robotics team.

11. I think you are wrong about diametral pitch. It’s not the number of teeth/the circumference of the pitch diameter but number of teeth/pitch diameter itself. Otherwise the pie in the equation P= pie / p doesn’t make any sence