Engineering Work
CNC Embroidery Machine Retrofit
Transforming an industrial JUKI sewing machine into a WiFi-enabled, G-code-driven CNC embroidery system — from blank hardware to sub-millimetre production accuracy.
Engineering Work
Transforming an industrial JUKI sewing machine into a WiFi-enabled, G-code-driven CNC embroidery system — from blank hardware to sub-millimetre production accuracy.
Industrial sewing machines have no computer interface by design. The challenge was to retrofit a JUKI industrial unit with full 3-axis CNC motion control — including G-code interpretation, WiFi pattern upload, and production-grade fault handling — without modifying the core sewing mechanism or introducing vibration that would affect stitch quality.
The machine had to read standard embroidery file formats, convert them to motor coordinates, and execute patterns with sub-millimetre accuracy while managing thread tension, detecting thread breaks, and surviving power interruptions.
.pes and .dst embroidery formats into G-code sequences the ESP32 firmware can execute; this was necessary because no open converter correctly handled the coordinate system and stitch density of the target machine..pes files via WiFi from any device on the local network.The retrofitted machine achieved sub-millimetre positioning accuracy across all three axes and passed production validation with commercially acceptable stitch quality. WiFi pattern upload, power-loss resume, and automatic thread-break detection all operated correctly in continuous use.
The project demonstrated that industrial electromechanical systems can be made programmable with embedded hardware design — without replacing core mechanisms or purchasing proprietary CNC controllers.
Architecture
The architecture visual is intended to show how edge capture, buffering, transport, event processing, and operator-facing systems fit together under real deployment constraints.
Systems Map
A concise overview of edge capture, reliable transport, event handling, and operator visibility.
What to look for
What I Would Do Differently
Implement proper trapezoidal motion profile interpolation from day one. The initial linear stepping approach causes micro-vibration artefacts on diagonal strokes at speed — something only visible during production that required a firmware rewrite to resolve.
Stack
The implementation choices below reflect the boundary between field reliability, event architecture, and operator-facing systems.