Skip to content

marmakoide/gear-profile-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gear-profile-generator

This script generates spur gear profiles (or outlines). It gives a correct output even for low numbers of teeth.

thumbnail

The gears generated with this script have been 3d printed and worked fine. However, I am no mechanical engineer, I'm a guy who code late in the evening while having a beer. If you use this script to design a suborbital passenger rocket, and that rocket blows up due to a faulty gear design, I take no responsability.

The implementation is based on a method explained on the excellent Michal Zalewski's Guerrila Guide of CNC Machining, chapter 6.

Getting Started

Prerequisites

You will need

Usage

The script generates a file from the gear parameters specified from the command-line

python gear.py --teeth-count=17 --tooth-width=0.25 --pressure-angle=20 --backlash=0.1 -tdxf -oout.dxf

This command will generate a spur gear with

  • 17 teeth
  • a pressure angle of 20 degrees
  • a backlash of 0.1

and it will be saved as a DXF file named out.dxf.

If you generate an inner gear, to design a planetary gearbox for instance, use a negative backlash. The text output is just the raw coordinates of the multiline defining the gear's shape.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A Python script to generate gear profiles

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages