Lego gearmotor casing--revised

If you still have old Mindstorms RCX blocks, but the motors have seized up, or if you're just mashing up bricks and microcontrollers, this could come in handy.


Creative Commons Attribution Share Alike

Commercial use is allowed, you must attribute the creator, you may remix this work and the remixed work should be made available under this license.

Learn more or download attribution tags


This is a case for a gearmotor, in two pieces, using the code from Klikini's

Comment out the top or bottom piece in the Openscad file, depending on which one you want to generate. The measurements fit my generic straight-line gearmotors; you may need to adjust for yours. The rectangular open-top holes in the bottom section are for the axles, the round ones are to give the electric motor a little air and let the wires out easily.

I've also included a connector that goes from the standard two-flat gearmotor axle to a cross-profile lego axle. Revised version has slightly more generous dimensions for the motor, smaller axle connectors.

Materials and methods

pla or abs



Issues are used to track todos, bugs or requests. To get started, you could create an issue.


3526ed445612ea0cd5793bf440215baa?default=blank&size=40jorgesgsg added this to the legoos collection ago
1f250722c722cd2be77d2f2ef3336c75?default=blank&size=40Ovidio Garza MartΓ­nez added this to the Lego collection ago
2a0c67c410e787ef70bd05db2d55ee88?default=blank&size=40Robot Shed added this to the robots collection ago
586ab38dccf92976a5c85c0a1b3dfff2?default=blank&size=40Joshua Benuck added this to the Robot collection ago
62803656a86a524a86a1fe9ea2111f3e?default=blank&size=40maffucci added this to the Lego collection ago
585ff5f36b0587ae06fd8ba02fb6b0f7?default=blank&size=40cnageorge added this to the Lego collection ago
De6a05f64c7a153e7cda9e2f744dfcd2?default=blank&size=40flamingdrongo added this to the Lego collection ago
Mini lunamoth4rp10007 published this design ago