Widdi97 / FreeCAD-Cycloid-Macro

Small python macro which generates a sketch for a disk of a cycloidal drive.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FreeCAD-Cycloid-Macro

Small python macro for FreeCAD which generates a sketch for a disk of a cycloidal drive. The parametrization of the curve is taken from https://blogs.solidworks.com/teacher/wp-content/uploads/sites/3/Building-a-Cycloidal-Drive-with-SOLIDWORKS.pdf .

alt text

Parameters

Five parameters can be set by the user inside of the python macro:

  • Number of Rollers N
  • Radius of the Rotor R
  • Radius of the Rollers R_r
  • Excentricity / offset from the input shaft to the center of the rotor E
  • Steps of the parametrization steps

When setting the debug flag to True, the cycloid is also plotted in matplotlib:

alt text

Usage

Just copy cycloid.py to your FreeCAD macro directory. Default on Windows: C:/Users/--user--/AppData/Roaming/FreeCAD/Macro) Set the parameters of the cycloid disk between line 8 and 12 in the python file. Open a FreeCAD project and run the macro.

About

Small python macro which generates a sketch for a disk of a cycloidal drive.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%