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

Openscad Lego-Like brick

1627
Downloads
8241
Views
Published on January 21, 2011
This thing was Featured on January 21, 2011

Description

I don't know if this should be considered a derivative of thingiverse.com/thing:591 or not. It was inspired by it but I started from scratch because I wanted to do it in openscad.
You can adjust the size and tweak the dimensions of the various parts of the lego in the openscad file.
There are probably bugs, it's a work in progress.
A real lego snaps into the bottom pretty well, not as well on top.

Instructions

The script defines a module called block(width,length,height,axle_hole,reinforcement)

The width and length defines how long and wide the block is (surprise!). They are defined as the number of knobs in that direction, not the actual length in mm.

The height is a multiple of the standard height of a brick.

The axle_hole variable adds holes to the top of the brick to fit standard lego axles through. They may only fit partway through unless your printer can handle really thin walls.

The reinforcement variable adds ribs across the brick to reinforce it (which also makes it print nicer because it gives the bot somewhere to traverse between the posts on the underside of the brick without leaving strings everywhere)

Tags
This Thing has no tags.
Report as inappropriate

You must be logged in to post a comment.

Axel holes are only top surface thick. Won't keep the axle in alignment. If they were extruded through to the bottom or as deep as you can make them they would be stronger and give more stability.

I uploaded a new scad script.

I fixed a few bugs. This was one of my first openscad programs and it shows...

I didn't have a problem with the knob height, but I would recommend using $fs=0.1 to get nicer knobs (i.e. not hexagons). Maybe this will help with fitment. I can't wait to print all kinds of sizes. I played with the block sizes and the script seems very robust. Excellent job! Flattrd. :)

Thanks! I made the knobs more circular. I'm not sure if it will make much of a difference. It actually might make more of a difference on the bottom (that's where the hexagons seem to be more noticeable).

The knobs on the top don't change height with the change of the height parameter...

But otherwise a nice script.

fixed. I hadn't tested that yet. The script doesn't seem to work right now if you want to make a plate (height of .33). I'll have to look into that when I get a chance.