Custom 3D Printer Motions

Introduction

I ran out of things to print so I decided to experiment with custom motion control on my 3D printer. I wrote a Python interface that enables scripting chains of custom gcode commands.

Demos

Basic Motions

Vertical Arc

This was actually more complicated to do than I expected because the Marlin firmware doesn't support changing planes for arc motions, it only works in the XY plane. To get a vertical arc, I had to define the geometry of the arc and interpolate waypoints.