Answers.Body: <p>I have 3D printed gears that mesh well with Lego Technic gears. I had the same issue as you that although the module(m) = 1, the root and tip diameters are not specified anywhere.</p>
  <p>I used digital calipers to measure the tip diameter as accurately as I could and got the following results:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>Gear teeth (z)</th>
  <th>Measured Tip Diameter</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>8</td>
  <td>9.80mm</td>
  </tr>
  <tr>
  <td>12</td>
  <td>13.30mm</td>
  </tr>
  <tr>
  <td>16</td>
  <td>17.37mm</td>
  </tr>
  <tr>
  <td>20</td>
  <td>21.36mm</td>
  </tr>
  <tr>
  <td>24</td>
  <td>25.75mm</td>
  </tr>
  <tr>
  <td>28</td>
  <td>29.50mm</td>
  </tr>
  <tr>
  <td>36</td>
  <td>37.31mm</td>
  </tr>
  <tr>
  <td>40</td>
  <td>41.63mm</td>
  </tr>
  <tr>
  <td>56</td>
  <td>57.80mm</td>
  </tr>
  <tr>
  <td>60</td>
  <td>61.35mm</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>Doing a linear regression on this table yielded: TipDiameter = mz + 1.494</p>
  <p>I used these parameters in Sketchup with the &quot;Rack &amp; Pinion&quot; plugin to draw the involute gear profile. If you are a developer you can view the code of this plugin to see exactly how it calculates point coordinates and then uses these to create a curve entity for each part of each tooth. I can't imagine you want to do that by hand though!</p>
  <p>Of course if you're printing standard technic sizes, you can always just convert the ldraw DAT file for the part you're interested in into STL and print that? It works surprisingly well (3D print on the left)
  <a href="https://i.sstatic.net/ruFZO.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ruFZO.jpg" alt="3D printed 28 tooth gear" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-31T11:44:00.400Z
Answers.LastActivityDate: 2021-03-31T11:44:00.400Z
Answers.UserDisplayName: Ralph
Body: <p>If a gear was intended to smoothly mesh with standard LEGO gears, how should it be defined?</p>
  <p>While I know that the mean diameter (average of inner and outer diameters) of a LEGO gear should be 1mm/tooth, but are there any specifications anywhere that describe the profile of a tooth so that I can get its shape correct when designing a gear intended to mesh with LEGO?</p>
  <p>I know that <a href="https://bricks.stackexchange.com/questions/6550/what-is-the-module-of-a-lego-gear">others</a> have asked about the module of a LEGO gear and I've seen the <a href="https://docs.google.com/document/d/194K2LttM1R28KkHRkAzQaF9A6WYTC7_Ws-NpJPZAmek/edit" rel="nofollow noreferrer">web page</a> that describes how to make one with Solidworks, but I am not using Solidworks to create my gears, and I do not have the benefit of a gear wizard that can compute the shape of the gear from the teeth count and module.  I therefore need to know how to actually define the profile of the gear using either primitive shapes or splines, and for that I will need to know dimensions, such as the length of the tooth from base to outer edge, the widths of a tooth at its base and its outer edge, as well as particulars for any splines or circles that may be needed to help construct the shape so that the gears will mesh smoothly.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-01-05T14:23:37.513Z
Comments.Text: Which tool you are looking to use to create your custom gear?
Comments.UserDisplayName: Alex
Tags: <technic><gears><size>
Title: How would one parametrically create a LEGO-compatible gear?
UserDisplayName: Mark
ThreadText: # How would one parametrically create a LEGO-compatible gear?
  
  (Asked by: username_0 on 2021-01-05)
  
  If a gear was intended to smoothly mesh with standard LEGO gears, how should it be defined?
  
  While I know that the mean diameter (average of inner and outer diameters) of a LEGO gear should be 1mm/tooth, but are there any specifications anywhere that describe the profile of a tooth so that I can get its shape correct when designing a gear intended to mesh with LEGO?
  
  I know that [others](https://bricks.stackexchange.com/questions/6550/what-is-the-module-of-a-lego-gear) have asked about the module of a LEGO gear and I've seen the [web page](https://docs.google.com/document/d/194K2LttM1R28KkHRkAzQaF9A6WYTC7_Ws-NpJPZAmek/edit) that describes how to make one with Solidworks, but I am not using Solidworks to create my gears, and I do not have the benefit of a gear wizard that can compute the shape of the gear from the teeth count and module. I therefore need to know how to actually define the profile of the gear using either primitive shapes or splines, and for that I will need to know dimensions, such as the length of the tooth from base to outer edge, the widths of a tooth at its base and its outer edge, as well as particulars for any splines or circles that may be needed to help construct the shape so that the gears will mesh smoothly.
  
  **Tags:** technic, gears, size
  > **Comments:**
  > **username_1**: Which tool you are looking to use to create your custom gear?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2021-03-31. Score: 2
  
  I have 3D printed gears that mesh well with Lego Technic gears. I had the same issue as you that although the module(m) = 1, the root and tip diameters are not specified anywhere.
  
  I used digital calipers to measure the tip diameter as accurately as I could and got the following results:
  
  | Gear teeth (z) | Measured Tip Diameter |
  | --- | --- |
  | 8 | 9.80mm |
  | 12 | 13.30mm |
  | 16 | 17.37mm |
  | 20 | 21.36mm |
  | 24 | 25.75mm |
  | 28 | 29.50mm |
  | 36 | 37.31mm |
  | 40 | 41.63mm |
  | 56 | 57.80mm |
  | 60 | 61.35mm |
  
  Doing a linear regression on this table yielded: TipDiameter = mz + 1.494
  
  I used these parameters in Sketchup with the "Rack & Pinion" plugin to draw the involute gear profile. If you are a developer you can view the code of this plugin to see exactly how it calculates point coordinates and then uses these to create a curve entity for each part of each tooth. I can't imagine you want to do that by hand though!
  
  Of course if you're printing standard technic sizes, you can always just convert the ldraw DAT file for the part you're interested in into STL and print that? It works surprisingly well (3D print on the left)
  [![3D printed 28 tooth gear](https://i.sstatic.net/ruFZO.jpg)](https://i.sstatic.net/ruFZO.jpg)
  
  
  ---
  
  