Embedded & Fabrication — Embedded Systems · CAD · Motion Control · HCI
Automated cake piping machine built on a modified Ender 3 — controlled by a Teensy 4.1 running StepDance firmware, with a browser-based UI communicating over Web Serial.


What if a 3D printer could pipe frosting onto a cake with precision and repeatability — removing the years of manual skill required for decorative piping?
Edible Patterns repurposes an Ender 3 3D printer as a 4-axis frosting extrusion machine. The original hot-end was replaced with a custom syringe-and-plunger mechanism designed in Fusion 360, driven by a stepper motor with a lead screw. A Teensy 4.1 mounted on a StepDance Driver Module board with TMC2209 stepper drivers coordinates all four axes (X, Y, Z, Extrusion) in real time using the StepDance motion control library.
The operator controls the machine from a single-file HTML interface served locally in the browser. It connects directly to the Teensy via the Web Serial API — no backend server — sending JSON RPC commands over USB at 115,200 baud. The UI supports keyboard jog controls, gamepad input, spiral pattern generation with live parameter tuning, and interchangeable piping tip profiles that adjust extrusion ratios on the fly.
Collaboration with Jonathan Crescenzo, in the context of Creative Motion Control — Spring 2026, taught by Jennifer Jacobs at UCSB.
Sound & Interaction · Data & Science