CodeThread: Making Gcode for Makerbot with Processing

We love MakerBot and have a cupcake cnc, and it’s been great to see how much the machines have developed towards making really nice 3d prints, which are looking especially great with the new mk6 stepstruders. However, one of the things we love about makerbots in contrast to commercial printers is that you have complete control over every aspect of the print technique. We think there is a lot of opportunity to develop new printing styles with makerbots, beyond traditional solid prints.

We are doing some experimentation with the materiality of makerbot prints by working directly in gcode with processing. We have made a small library of functions for printing a gcode file, which provides some simple functions for generating gcode commands.

download (v1.1.2), javadoc

For example, here is some code for a 30mm thin-walled cube:

CodeThread codeThread= new CodeThread();

int feed = 1200;

codeThread.setDefaults();
codeThread.extruderOnFwd();

codeThread.generateRaft(40, 40, 560, 1500, 2.5, 1.5);

for(float i=0; i<30; i+=0.35) {
codeThread.moveTo(15, 15, 1.27+i, feed);
codeThread.moveTo(-15, 15, 1.27+i, feed);
codeThread.moveTo(-15, -15, 1.27+i, feed);
codeThread.moveTo(15, -15, 1.27+i, feed);
}

codeThread.extruderOff();
codeThread.writeToFile(sketchPath + "30mmbox.gcode");

1 Comment »

  1. Sketch Chair says:

    [...] 외에도 유용한 자료가 가득 http://blog.diatom.cc/codethread/codethread-making-gcode-for-makerbot-with-processing If you enjoyed this article, please consider sharing it! [...]

RSS feed for comments on this post. / TrackBack URI

Leave a Reply

Piccolo wins the TEI Design Challenge!

Fellow Piccolo team member – Huaishu Peng, did a great job presenting and demoing Piccolo at TEI 2012 in Kingston, Canada. So much so, that thanks to the TEI participants who voted with their wallets, Piccolo came away as the winner of the TEI Design Challenge!

We’d like to say a big thanks to those who voted for us in the competition, and we’re working hard on developing the prototype into a DIY kit for public release!

Encoded Matter by Corneel Cannaerts

Created at Generator.x 3: from code to atoms, Corneel sent us these wonderful images of his generative fdm prints created with some help from CodeThread.

We love the Makerbot induced artifacts seen in these abs creations, and can’t wait to print some of our own!

project page
more images
other work from Generator.x 3

Piccolo prototype, “Plotsi” at Tangíveis Residência

The third piccolo “Plotsi” prototype travelled to the Tangíveis (Tangibles), Residência AZ 2012 at the Espaço do Tempo. The prototype was assembled and tested at the residency, and in collaboration with Teresa Cardoso and João Nogueira created the 29+1 Project.

291project.tumblr.com

Each of the participants were interviewed about the project/s they were working on within the residency, producing a collection of short video introductions. Each participant was also photographed in portrait, and the resulting images proccessed into line drawing that Plotsi then illustrated onto the convent itself, leaving a “graffiti” record of the week-long residency.

SketchChair Successfully Funded!

Thanks to all great the support from our backers SketchChair has been successfully funded through Kickstarter! We’d like to say a huge thank you to all our supporters and are excited to be able to take SketchChair to the next stage of development. We are now working hard to refine a system that will allow anyone to easily design, share and fabricate their own furniture.

For those of you who have signed up to be receive the pre-release, we will be emailing out your login details next few days. You will be able to access the software in the SketchChair Collaborator Space.

We’re working hard to send out everybody’s pledge rewards, and we’re also very excited to start dedicating our time to working on SketchChair!

SketchChair on Kickstarter!

We have just launched SketchChair.cc and our Kickstarter Campaign!

This is to raise funds to complete the software and release the source code, and to start building an online community of people creating, sharing and editing designs. We decided to crowd-fund the development of SketchChair, so that we can release it as a completely free and open-source tool!

If the campaign is a success, we will use this time to build the foundation of a SketchChair community, with which we hope to create a resource of open-source furniture design.

Residência AZ no Espaço do Tempo

We were lucky enough to visit Montemor Novo here in Portugal this week to check out the residência at Espaço do Tempo, organised by Audência Zero. An amazing combination of creative minds and beautiful surroundings, we can’t wait to return for the next gathering!





We took the opportunity to work on the CodeThread library, which we had been talking about for a long time but never had time set aside to put it together.

We want to say a big thankyou to Ricardo and Pedro for hosting us and organising the event! Audência Zero and it’s local city laboratories, LCD, xDA and AltLab, seem to be doing a great job of collecting creative minds and serving as catalysts for great work, and we can’t wait to see what will become of them in the future.

Audência Zero

Alt Lab: DIY Creativity / Lisboa

xDA: Experimental Digital Atelier / Coimbra

Laboratório de Criação Digital / Porto (Matosinhos)

Generative CodeThread Experiments

These structures are generated in processing, with the gcode written using the CodeThread library.

The left print has solid extruded walls, whilst the centre print uses small circle profiles at each vertex to create support, then a very thin extrusion to shape the walls.  The one on the right has the extruder turned off between the corners, but the resulting strings create some interesting patterns.

Close-ups showing the translucency of the thin walls (extrusion speed of 180 and feed rate of 1200), and the stacking-patterns created by the remnant strings.

The forms are generated pretty much just using perlin noise.

CodeThread: Making Gcode for Makerbot with Processing

We love MakerBot and have a cupcake cnc, and it’s been great to see how much the machines have developed towards making really nice 3d prints, which are looking especially great with the new mk6 stepstruders. However, one of the things we love about makerbots in contrast to commercial printers is that you have complete control over every aspect of the print technique. We think there is a lot of opportunity to develop new printing styles with makerbots, beyond traditional solid prints.

We are doing some experimentation with the materiality of makerbot prints by working directly in gcode with processing. We have made a small library of functions for printing a gcode file, which provides some simple functions for generating gcode commands.

download (v1.1.2), javadoc

For example, here is some code for a 30mm thin-walled cube:

CodeThread codeThread= new CodeThread();

int feed = 1200;

codeThread.setDefaults();
codeThread.extruderOnFwd();

codeThread.generateRaft(40, 40, 560, 1500, 2.5, 1.5);

for(float i=0; i<30; i+=0.35) {
codeThread.moveTo(15, 15, 1.27+i, feed);
codeThread.moveTo(-15, 15, 1.27+i, feed);
codeThread.moveTo(-15, -15, 1.27+i, feed);
codeThread.moveTo(15, -15, 1.27+i, feed);
}

codeThread.extruderOff();
codeThread.writeToFile(sketchPath + "30mmbox.gcode");

Flowpaper app in the app store.

Flowpaper is a generative drawing app that lets you paint with physics!  The patterns are created using verlet chains, a line of particles that follow the paintbrush.

Initially created as a simple experiment, we have developed Flowpaper  into an app for iOS, which is now available on the itunes app store.