Hey! This thing is still a Work in Progress. Files, instructions, and other stuff might change!


by mrob27, published

gear-v3.scad by mrob27 Jan 5, 2013
2 Share
Download All Files

Thing Apps Enabled

Order This Printed View All Apps



Use This Project

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.

Print Thing Tag


Thing Statistics

11971Views 4474Downloads Found in Construction Toys


Alorithmic LEGO(r) Technic compatible gear generator. The picture (from gear-27.stl) is an example of gears-v3.scad, a greatly improved adaptation of bjepson's gear.scad with all code included, round holes, and automatic parameter selection.


Greatly improved LEGO(r) Technic gear generator. It now makes actual round holes (not nonagons) and automatically picks the hole parameters for you. More importantly you don't have to download any missing pieces elsewhere, all the code is included. "gear-v3.scad" is the best version.

On Jan 6th, I fixed a glitch illustrated by the JPG image (see thingiverse.com/image:224135 ). This was an error in the original MCAD gear module. The problem shows up in gears with a small number of teeth; "gear-v2.scad" is the old version, if you want to see the difference for yourself.

To use: Load gears-v3.scad into OpenSCAD and change "10" in the line "myGear(10);" to whatever number of teeth you want your gear to have. "gear-27.stl" is sample output.

More from Construction Toys

view more

All Apps

3D Print your file with 3D Hubs, the world’s largest online marketplace for 3D printing services.

App Info Launch App

This App connects Thingiverse with Makeprintable, a cloud-based mesh repair service that analyzes, validates and repairs most common mesh errors that can occur when preparing a 3D design file for p...

App Info Launch App

Kiri:Moto is an integrated cloud-based slicer and tool-path generator for 3D Printing, CAM / CNC and Laser cutting. *** 3D printing mode provides model slicing and GCode output using built-in...

App Info Launch App
KiriMoto Thing App

With 3D Slash, you can edit 3d models like a stonecutter. A unique interface: as fun as a building game! The perfect tool for non-designers and children to create in 3D.

App Info Launch App

Whenever i try to render it, it says:
ERROR: Parser error in line 75: syntax error
ERROR: Compilation failed!
How can i fix this?

You have not told what software you are using (with version numbers).

I use OpenSCAD for Mac, version 2011.12 and the file works for me.

Nevermind I was changing the wrong thing. Thanks for the quick reply!

So it works now?

If not, I was just going to say you'd have to go back to an earlier version of OpenSCAD or debug it yourself.

Yes it works fine now.

Jun 26, 2016 - Modified Jun 26, 2016
mrob27 - in reply to vino88

Excellent! :D If you print it out, let us know how well it fits with other axles/gears (and what type of printer or printing service you used)

I am using OpenSCAD 2015.03-2 on Windows 10.

My son and I are playing with an old Lego Mindstorms set and I've been wanting to make custom-sized gears for a while. Thank you!

That's great! If you print it let me know what home printer (or commercial service) you used, and how it comes out. I haven't had the chance to calibrate the tolerances (fit).