Abstract
Machine week!
This week was machine week, so we had a team project to develop! You can find complete details on our machine week page here. We developed a 3D printer for pancake batter!
I was in charge of developing and maintaining the firmware, which is available here. An at-large technical description of my work is available in the firmware README file. As an overview of my work:
- I first developed an understanding of driving a single stepper motor using the UFP protocol, and summarized the main commands needed for interacting with it.
- Then, I developed a wrapper class for the motor, that expresses dimensions in metric units rather than in number of steps, and that contains various safeguards (avoiding crashes into the frame, most notably) and some convenient automation functions (auto-homing on startup, if desired, for example) - see code here. A syringe (and syringe set) wrapper, which are slightly tweaked versions of the single motor wrapper (integrating a priming step before extrusion and a retraction following every extrusion), are also available here.
- Using the single motor wrapper, I implemented the XYStage wrapper, combining the two motors of the XY gantry and that operates in terms of XY coordinates rather than the single-motor coordinates AB. It preserves the safeguards and allows prints along arbitrary geometries (though only lines are implemented for now). See code here.
- Finally, I took care of integrating the software communication with the firmware. For that, a Machine wrapper, integrating the syringes and the gantry, is defined in the UFP driver script. The Machine is driven according to the Events defined by the software from the input svg file.
The various other files in the firmware folder implement simulated motors and sanity checks, and are for debugging purposes only.
As of writing this (Tuesday Nov 17, morning) the firmware controls individual motors correctly, and the software-firmware pipeline also works without errors. The exact parameters of the wrappers (steps to mm conversion, speeds, allowed areas, offsets, etc) are still to be figured out later today on the assembled hardware.
AI acknowledgement: Claude Opus 5.5 was used inside Claude Code via the Parley API for wrapper completion and safeguard implementation, according to a handwritten skeleton involving the desired functions of the wrappers.