Hey! This thing is still a Work in Progress.
Files, instructions, and other stuff might change!
Openscad Lego-Like brick
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.
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)
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)
You must be logged in to post a comment.
dmatsumoto
on
January 22, 2011
said:
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. :)
coasterman
on
January 22, 2011
said:
The knobs on the top don't change height with the change of the height parameter...
But otherwise a nice script.


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