← Projects
electronics intermediate 4 days ago ◑ 12 views ◯ 5 min read

Build a DIY Automated Coil Winding Machine for Transformers, Motors, and RF Chokes

Build time: 1 weekend (frame and traverse mechanics), plus an evening for firmware and calibration
Tools needed: Drill/driver, basic hand tools, soldering iron, 3D printer or laser cutter helpful for bobbin adapters and brackets (not strictly required)
coil winderESP32stepper motortransformermagnet wiretoroidmotor rewinding
Parts List

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:

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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

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.