GCode Experiments

by kobernik in Craft > Printmaking

895 Views, 0 Favorites, 0 Comments

GCode Experiments

Screenshot (17).png

This week's assignment was to work with generating custom Gcode. I didn't have a specific project in mind, and instead experimented with some of the example projects that Jennifer Jacobs presented in lecture to demonstrate generating Gcode within Grasshopper.

Flexible Fabric

Screenshot (8).png
IMG-3962.JPG
IMG-3963.JPG
IMG-3964.JPG

For this experiment, I have modified the work of Haruki Takahashi and Jeeeun Kim.

3D Printed Fabric: Techniques for Design and 3D Weaving Programmable Textiles.

Webpage: https://haruki.xyz/printed_fabric.html

Paper: https://www.jeeeunkim.com/papers/3dprintedfabric....

I modified the parameters of the 3D printed textile Gcode generator with the goal of creating a textile that was flexible in multiple dimensions. I increased the density of the pillars (increased number, decreased spacing) and decreased the pillar width to make the pillars more flexible. I also decreased the vertical hair spacing so that the textile was more tightly woven overall.

The print took all night to print a decent surface area, but I was satisfied with the resulting flexibility.

Modifying the Simple Slicer: 1

Screenshot (9).png
Screenshot (11).png

I then moved on to experimenting with the simple slicer. I modified the function that generates the G1 commands to introduce some noise into the instructions. My first attempt to print failed because my custom layer height was too large. The extruder was extruding into thin air.

Modifying the Simple Slicer: 2

Screenshot (18).png
Screenshot (14).png
IMG-3960.JPG
Screenshot (16).png
IMG_3969.JPG
IMG_3973.JPG
IMG_3972.JPG
IMG_3971.JPG

When fixing the layer height (simply decreasing it to 0.2), I became curious about generating Gcode for a tower where the noise was a function of the current layer height.

I implemented this in the code by generating a noiseScale value and using it to scale the random uniform value. My first successful print is pictured. My max generated noise is between -0.7 and 0.7 mm.

I appreciate the application of randomness to the generation of Gcode. The resulting shape has lower layers that are "perfect" in their placement, after which the layers progressively degrade until the upper layers start to lose their sense of continuity with the layer below.

In the interest of pushing this concept to the extreme, I have tripled the max noise value to -2.0-2.0 (this is actually the value shown in the screenshot). Currently this Gcode file is printing.