Gears:Simultaneous Meshing with Rack

From RepRapWiki
Jump to: navigation, search

Crystal Clear action run.png
Simultaneous Meshing Gears

Release status: Working

Motor.jpg
Description A method for calculating gear center distances
License GPL 2.0
Author MattMoses
Contributors
Based-on Sui Generis
Categories Gears
CAD Models
External Link


Contents

Introduction

Recently, Peter posted this great prototype of a linear motion mechanism using lasercut gears.

He stated: "there's probably an ideal solution when solving simultaneously for (a) a rack, with (b) two gears of radius R1, being driven by (c) another larger gear of radius R2; all for a given tooth size."

Matt Moses solved this problem while working on a linear motion mechanism of his own, which uses a similar arrangement of gears. This page has a brief description of how he solved the problem, as well as MATLAB code you can download to generate your own gearing arrangements if you are using this particular mechanism. If you don't have access to MATLAB, the code should probably work with GNU Octave with minor modification.

FDavies posted an Octave-ready version of the script here. You will need the zipped code from this page and FDavies's file to run under Octave.

Problem Description

There are two constraints on the system, which can be found by starting with two gears in an initial configuration and then making a sequence of three "virtual rolling motions". This is shown in the figure below.

We are given the pitch radii of each gear, $ r_1 $ and $ r_2 $, and the diametral pitch $ DP $ (which must be the same for both gears). Then we search for values of $ \theta_1 $ that satisfy both constraints.

We start with the gears arranged as shown at the top of the figure. A radial line marks each gear so we can track their angular position. For the first rolling motion, both gears are rotated together through an angle of $ \theta_1 $.

Angle definitions

We remember this position (indicated by the dotted outline), and then for the second motion both gears continue to rotate for a total angle of $ \theta_2 $. This gives us the first constraint, which provides $ \theta_2 $ as a function of $ r_1 $, $ r_2 $ and $ \theta_1 $

In the "x" direction, the top gear is centered between the bottom gears.

$ r_1 \theta_2 - r_1 \theta_1 = 2 \left(r_1 + r_2\right) \sin(\theta_1) $.

Now for the third "virtual rolling motion" we leave the large gear fixed and roll the small gear back towards the top, rolling along the large gear. The solid line on the small gear indicates the angular position of the gear when it comes to rest at the top. $ \alpha $ is the angle between the solid line and the vertical.

In order for all gears to mesh, the angle between the solid and dotted lines on the small gear must be an integer multiple of the angle between teeth. This gives the second constraint and shows us also that the solution space is a set of discrete values, rather than a continuum of possible positions. The second constraint is

$ \theta_1 - \alpha = k \frac{2 \pi}{n_2} $

where $ k = 0, 1, 2, 3, ... $, and $ n_2 $ is the number of teeth on gear 2.

The final position of the mark on the small gear in Fig. 4 (α) = the starting position of the mark in Fig. 3 (θ2), minus the amount it turned from the distance traveled around the lower gear, minus the amount it turned from the angle traveled around the lower gear.

$ \alpha = \theta_2 - \frac{r_1}{r_2} \left( \theta_1 + \theta_2 \right) - (\theta_1 + \theta_2) = -\theta_1 - \frac{r_1}{r_2} \left( \theta_1 + \theta_2 \right) $,

The number of teeth is related to the radius $ r_2 $ and diametral pitch $ DP $ by

$ n_2 = 2 \left(DP\right) r_2 $.
$ n_1 = 2 \left(DP\right) r_1 $.

Code Overview

The code simply checks for values of $ k $ and $ \theta_1 $ that satisfy the constraints and then draws the gears and rack for a particular arrangement. There is not always a unique solution, and sometimes no solution for a given set of values. An example of the graphical output is shown below, along with a motor assembly that was designed using the code.

example output

motor assembly using simultaneous meshing

See Also

Here are some other generators for involute gears:

Parametric Involute Bevel and Spur Gears

Gear template generator by Matthias Wandel

Designing Involute Profile Gear Pairs in Art of Illusion by Forrest Higgs

Other Gear Stuff on the wiki:

RBS/Gears: The RepRap Building System (RBS) Gears

Gear design has a little more information on rack-and-pinion and alternatives.

Here are some pages with helpful information on terminology and formulas:

The Involute Curve, Drafting a Gear in CAD and Applications by Nick Carter

Introduction to Mechanisms, Chapter 7 Gears by Yi Zhang, with Susan Finger and Stephannie Behrens

Dynamic Mechanisms Tutorial