TinkerCad Code Blocks2021-08-25

TinkerCad Code Blocks

TinkerCad Code Blocks

During my time at Create Make Learn, I spent some time working with TinkerCad Code Blocks.

My first idea was to create a wheel because I was sitting and looking at a broken wheel that a student had made and 3d printed a few years ago. I remember him really struggling with designing a wheel that was interesting, and symmetrical, and centered correctly.

Like always... there is a better way. And like almost always that way involves some code.

Using Tinkercad Code blocks it is possible to create an item and then move it around programmatically. Once you can do something programmatically, you can use one of my favorite parts of programming... the Loop.

Using Code Blocks is a nice drag-and-drop interface. We can take pieces of code and plop them right down where we want them. Then we can use these pieces to piece together a design.

Using a couple of cylinders to begin, one solid, and one hole I created a center for the wheel with a hole in the center for an axle. I dilated (scaled) the smaller one so it fit inside.

Then I created 6 spokes and rotated them around the center.

The big piece of the wheel was to avoid using anything round to make the actual wheel. Because I wanted some tread on the wheels I used 18 hexagons each rotated 20 degrees around.

Have a nice look at the design running below and then try your hand at your own TinkerCad Code Blocks creation.

Rob Boskind

Post by: Rob Boskind

Software Engineer

Former Math Teacher

Code Junkey

Father of all Girls