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



Liked By

View All

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

13677Views 5191Downloads 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

Auto-magically prepare your 3D models for 3D printing. A cloud based 3D models Preparing and Healing solution for 3D Printing, MakePrintable provides features for model repairing, wall thickness...

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

Print through a distributed network of 3D printing enthusiasts from across the US, at a fraction of the cost of the competitors. We want to change the world for the better through technology, an...

App Info Launch App

Quickly Scale, Mirror or Cut your 3D Models

App Info Launch App

3D Print a wide range of designs with Treatstock. Easy to use tools to get the perfect result. The global 3D printing network that connects you with high-quality and fast working print services nea...

App Info Launch App

one thing I noticed is that it does not automatically create beveled tooth gears, would it be possible to add that ability? with the stock gears I have found that the flat gears are when divided by four are even and the beveled when divided by 4 are odd... I don't know enough OpenSCAD to add this ability myself.

I created gear-v3.scad by modifying someone else's file. I don't know enough to be able to make beveled gears (which require a completely different shape for the gear teeth)

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.

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).