Build a DIY Automated Coil Winding Machine for Transformers, Motors, and RF Chokes
NEMA 17 stepper motor (spindle drive)
Small geared NEMA 17 or NEMA 14 stepper motor (traverse axis)
TMC2209 stepper driver modules, 2x
ESP32 development board
8mm lead screw and anti-backlash nut
Linear rod and bearing set
0.96" I2C OLED display
Rotary encoder with push-button
Momentary foot pedal switch
PTFE tubing for wire-guide tip
12V power supply
MDF or acrylic sheet for frame
Magnet wire spool, for testing
Prices and availability as of Nov 30, 12:14 AM ET and subject to change. The price shown on Amazon at the time of purchase applies.
Winding a coil by hand — counting turns out loud while a bobbin spins on a drill chuck — works for a handful of turns on a quick RF project, but it falls apart fast once you need an exact, repeatable turn count across dozens or hundreds of windings: a small transformer secondary, a BLDC motor stator rewind, or a multi-tap RF choke. This build is a motorized, turn-counted coil winder that handles the tedious and error-prone part of the job — keeping an exact count while the wire feeds evenly across the bobbin — so you can focus on wire tension and layer placement instead of losing count at turn 340.
Difficulty, Time, and What You'll Need
A solid weekend build for anyone comfortable with basic stepper wiring and a little ESP32 code — most of the complexity is mechanical (a rigid spindle and a wire-guide carriage that moves true), not electronic.
How It Works
The machine has two coordinated axes:
- Spindle axis: A stepper-driven chuck holds the bobbin or core and rotates it, with the controller counting exact steps (and therefore exact revolutions) rather than relying on an operator's eyeball count.
- Traverse axis: A second, much slower stepper drives a lead screw that moves the wire-guide tip back and forth along the bobbin's width, synchronized to the spindle's rotation so each turn lays down next to the previous one instead of piling up in one spot.
The ESP32 ties the two together: for a given wire gauge and bobbin width, it calculates how many spindle revolutions correspond to one full traverse pass, and keeps the traverse stepper's position locked to the spindle's rotation count in software rather than needing a mechanical gear train (the traditional approach on old commercial coil winders) to link the two axes.
Build Steps
- Build the frame. Two uprights hold the spindle motor and a tailstock-style bearing support on one end; a rail between them carries the traverse carriage. Rigidity matters more than precision here — any flex in the frame shows up as inconsistent wire tension and uneven layers.
- Mount the spindle motor with a simple chuck or a printed/machined bobbin adapter on its shaft. A thrust bearing or a supported tailstock on the free end of the bobbin shaft keeps things running true, especially for heavier cores like toroids or motor stators.
- Build the traverse carriage on the lead screw and linear rod, with the PTFE wire guide tip mounted on the carriage at the exact height of the bobbin's winding surface.
- Wire the two TMC2209 drivers to the ESP32, using UART mode if you want to adjust current limits in software rather than via trimpot, and wire the OLED, rotary encoder, and foot pedal to the remaining GPIO pins.
- Write the firmware around a simple state machine: idle → set target turn count and wire gauge via the encoder/OLED menu → wind (spindle and traverse move together, turn counter increments and displays live) → auto-stop at the target count, with the foot pedal as a manual override to pause or resume mid-wind.
- Calibrate the traverse pitch for your actual wire gauge before a real wind — run a short test wind on scrap wire and bobbin stock, and check that each pass lays wire tightly against the previous turn without gapping or overlapping, adjusting the calculated steps-per-turn in firmware until it's dialed in for that gauge.
Wire Tension: The Part No Motor Fixes For You
Automating the turn count and the traverse motion solves the two hardest parts of hand-winding, but consistent wire tension is still on you. A simple felt-pad or foam-pinch tensioner between the spool and the wire guide, adjusted by hand pressure, is usually enough for small-gauge magnet wire; heavier gauge or higher-turn-count jobs benefit from a dedicated spring-loaded tensioning arm. Inconsistent tension is the single most common cause of a coil that looks fine but measures wrong (unexpected inductance or DCR), so don't skip tensioning setup just because the counting and traverse are automated.
Safety Notes
- Keep fingers clear of the spindle and traverse carriage once a wind is running — the foot pedal exists specifically so you can stop the machine instantly without needing a free hand near moving parts.
- Magnet wire insulation is thin enamel, not thick jacket insulation — handle spools and finished coils carefully to avoid nicking the enamel, which causes shorted turns that are maddening to diagnose after the fact.
- If winding anything destined for mains-adjacent voltage (a mains transformer primary, for instance), verify your finished coil's insulation and creepage distances against the relevant safety margins before putting it into a powered circuit — a hobby-built coil winder doesn't make the resulting part automatically safe at line voltage.
Once built, this machine turns "I need a 400-turn secondary with a center tap" from a half-hour exercise in careful counting into a five-minute job of setting a number and pressing the pedal — genuinely useful for anyone who winds more than the occasional single RF choke.