← 返回日报
略读 预计 2 分钟

Show HN: I'm a 15 Year Old Wannabe Engineer, This Is a Cycloidal Gearbox I Built

摘要

一个 15 岁少年分享自己用 Python 脚本参数化生成摆线齿轮箱(cycloidal gearbox)的项目。正文包含三个设计版本迭代:V1 手摇验证、V2 微型化失败、V3 成功驱动 NEMA 17 步进电机。给出了基于 SolidWorks 文章的摆线曲线参数方程、Fusion 360 脚本安装步骤、关键参数(针数、偏心距、外针半径等)及 V3 实测性能(1:9 减速比、1.3 N\xb7m 扭矩、66% 效率),并列出后续改进方向(换轴承、金属输出销)。

荐读理由

这个Python脚本展示了如何用参数方程在Fusion 360里自动生成摆线齿轮箱,并给出了约束条件和公差补偿值(+0.15mm),这套参数化生成思路可以迁移到任何需要程序化建模的工程场景,但读者是AI工程方向,直接复用价值有限,仅作方法参考。

原文

Cycloidal Gearbox ⚙️

This is my cycloidal gearbox I built, and the python script I created to generate it!

Gearbox Demo

Design Process

Version 1

This gearbox was a handcranked gearbox specifically meant to test the validity of the python cycloidal generator. It had a gear ratio of 1:9.

Version 2

This design was a micro cycloidal gearbox with a ratio of 1:9, meant to only take up the same footprint as a NEMA 17. Due to the tight tolerances needed for a small cycloidal drive and the lack of precision offered by 3D printing, this design did not work.

Version 3

This gearbox was the first working version to run on a NEMA 17. It has a larger footprint compared to Version 2 allowing greater tolerances and a fully functional design.


🛠️ The Python Script

This python script was based on the SolidWorks article Building a Cycloidal Drive with SOLIDWORKS. The two main parametric equations I used were:

$$x = R \cos(t) - E \cos(N t) - r \cos(t + \psi), \quad y = R \sin(t) - E \sin(N t) - r \sin(t + \psi)$$ $$\psi = \text{atan2}\left(\sin((1 - N) t), \frac{R}{E \cdot N} - \cos((1 - N) t)\right)$$ Reduction ratio: $1 : (N - 1)$ (rotor rotates opposite to input shaft).

Installation & Execution

  1. Clone the repo

  2. Open Fusion 360 and launch Scripts and Add-Ins (Shift + S).

  3. Under the Scripts tab, click + (Plus) to add a script.

  4. Select the cycloidal_generator folder and click Run.

Key Parameters

  • Pins ($N$) & Pitch Radius ($R$): Sets outer stationary housing geometry (Rotor has $N-1$ lobes).

  • Eccentricity ($E$): Input shaft offset distance. (Constraint: $R > E \cdot N$).

  • Outer Pin Radius ($r$): Roller pin radius. (Constraint: validated against undercut limit $r_{\text{max}}$).

  • Precision / Profile Offset: Angular step size and tolerance offset ($+$ for 3D print clearance).

  • Output Pins & Bolt Radius: Defines concentric output pins and rotor clearance holes ($r_{\text{pin}} + E$).


🚀 Version 3 — Detailed Overview & Stats

Note

This section is dedicated to Version 3, whose CAD files can be found under cad_models/version_3.

Logo

Key Specifications & Performance Stats

Metric / Parameter Value / Detail
Gear Ratio 1:9 ($N=10$ outer pins, 9 rotor lobes)
Outer Diameter 9.0 cm (90 mm)
Drive Motor NEMA 17 Stepper Motor (42bygh40-A24dh)
3D Printing Material PLA
Primary Fasteners / Hardware M3 × 8 screws, 2× 6704 Bearings
Tolerance Offset Applied +0.15 mm (+0.015 cm) all around
Gearbox Torque 1.3 N·m ± 0.007 N·m
Base NEMA 17 Torque 0.21 N·m ± 0.007 N·m
Efficiency 66% ± 0.22%

Further room for growth

  1. The housing pins can be replaced with MR128 bearings allowing for less friction and higher efficiency in the gearbox.

  2. The output pins can be replaced with M2 screws with metal coverings to increase rigidity, maximum torque output, and the efficiency of the gearbox.

Hacker News · 项目/工具 · 136 赞 · 25 评 讨论 → 阅读原文 →

这条对你有帮助吗?