NEMA 23 Stepper Motor Wiring | Connections That Work

Wiring a NEMA 23 stepper motor requires identifying its two coil pairs and connecting them to a compatible stepper driver, then linking the driver’s signal pins to a controller like an Arduino.

Getting the wiring right on a NEMA 23 stepper motor is the difference between a smooth-running CNC, 3D printer, or robotics project and a motor that jitters, stalls, or refuses to move. NEMA 23 stepper motor wiring follows a consistent four-wire bipolar pattern: identify the two coil pairs, connect them to a stepper driver, and link the driver’s control signals to your microcontroller. This article covers every step from specs to troubleshooting so you can get your motor spinning on the first try.

NEMA 23 Stepper Motor Specifications You Need To Know

Before you pick up a wire, it helps to know what you’re working with. NEMA 23 motors share a standard faceplate size but vary widely in torque, current, and wiring configuration. The table below shows the key specs you’ll encounter when choosing a motor and driver.

Specification Typical Value Notes
Faceplate Size 2.3″ × 2.3″ (58.4 mm × 58.5 mm)
Step Angle 1.8° (200 steps/rev) High-precision versions offer 0.9° (400 steps/rev)
Current Per Phase 2.0A – 4.2A Set your driver’s DIP switches to match this rating
Holding Torque 0.5 Nm – 3.4 Nm Roughly 70 oz-in to 480 oz-in
Wire Configuration 4 wires (bipolar) 6 or 8 wires for unipolar/tap variants
Shaft Diameter 6.35 mm (0.25″) or 8 mm Verify your specific model before mounting
Reference Model 23HS45-4204S 3 Nm holding torque at 4.2A, 4-wire bipolar

The 23HS45-4204S is a common high-torque reference model with 3 Nm holding torque and a 4.2A current rating. Its official datasheet from OMC StepperOnline provides the full electrical and mechanical specs. If you’re comparing different models for your project, our roundup of the best NEMA 23 stepper motors breaks down the top options for CNC, 3D printing, and robotics builds.

How Do You Find The Two Coil Pairs?

A 4-wire bipolar NEMA 23 has two independent coil windings, each with a pair of wires. Finding which wires belong to which coil is the first wiring step and the one most often done wrong.

Use a multimeter set to resistance mode. Touch the probes to any two wires. If you get a reading between 1 and 2 ohms, those two wires belong to the same coil. If you get no reading or infinite resistance, they belong to different coils. If no datasheet is available, twist two suspected wires together and rotate the motor shaft by hand. If the resistance reading stabilizes or increases slightly, you’ve found a pair. This multimeter check takes 30 seconds and prevents the jitter-and-stall headache that every builder eventually runs into.

Connecting The Motor To The Stepper Driver

Once you know which wires form each coil, connect Coil A (Black and Green) to the driver’s A(+) and A(–) terminals. Connect Coil B (Red and Blue) to the B(+) and B(–) terminals. Polarity within each pair sets the rotation direction. If the motor spins the wrong way, swap the two wires on one coil — A(+) and A(–) — and leave the other coil alone.

The TB6600 is the most widely used driver for NEMA 23 motors. It accepts 9V to 40V DC input and supports microstepping via DIP switches on the top row. Before powering anything on, set the current DIP switches to match your motor’s rated amperage. For a 4.2A motor like the 23HS45-4204S, run the driver at no more than 80% of that rating (roughly 3.4A) for continuous use to keep temperatures manageable.

Wiring The Driver To Your Controller (Arduino Example)

The driver needs three control signals from your controller: Pulse (PUL), Direction (DIR), and Enable (ENA). These operate at 5V logic, which an Arduino Uno provides directly.

Connect DIR(–) to Arduino pin 2 and PUL(–) to pin 3. Connect DIR(+) and PUL(+) together to the Arduino’s 5V output. Connect ENA(–) to Arduino GND — the enable input is active-low on most drivers, so grounding it keeps the driver enabled during operation. Leave ENA(+) unconnected unless you need to disable the motor from code.

In your Arduino sketch, generate a square wave on pin 3 to step the motor and set pin 2 high or low to control direction. The AccelStepper library handles both signals cleanly and includes acceleration profiles that prevent skipped steps during ramping.

Power Supply Setup For Your NEMA 23 System

Your system needs two power sources. The Arduino gets 5V from its USB connection or a separate regulated supply. The stepper driver needs a higher-voltage supply for the motor coils — typically 24V DC for the best balance of torque and speed with a NEMA 23. The TB6600 accepts 9V to 40V, so a 24V 150W switching supply covers most applications. Never exceed 40V on a TB6600, and always connect the power supply ground to the driver’s GND terminal, then tie your controller’s GND to that same ground rail. A missing common ground is the single most common cause of a silent, non-responsive motor.

Wiring Your NEMA 23 Stepper Motor: Common Mistakes To Avoid

Even experienced builders hit these issues. The table below covers the most frequent wiring problems and the fix that resolves each one fastest.

Problem Likely Cause The Fix
Motor jitters or won’t spin Incorrect coil pairing Use a multimeter to verify pairs read 1–2 ohms between them
Motor spins backward Reversed coil polarity Swap A(+) and A(–) at the driver, or invert the DIR pin in code
Motor gets too hot to touch Driver current set above motor rating Reduce current via DIP switches; stay at or below the motor’s rated amperage
No movement at all Missing common ground between controller and driver Connect Arduino GND to TB6600 GND
Driver does not respond Voltage outside driver range Confirm supply is 9V–40V for TB6600; 24V is the sweet spot

When the motor runs smoothly, stays at a reasonable temperature under your expected load, and reverses direction on command, your wiring is solid. Keep a 1.3× torque safety margin between your motor’s holding torque and your application’s peak load — that buffer prevents stalls during acceleration and hard cuts.

FAQs

Can I run a NEMA 23 with a 12V power supply?

Yes, but expect noticeably lower torque and slower acceleration compared to 24V. The TB6600 works down to 9V, so 12V is safe for light loads or low-speed positioning. For CNC routing or 3D printing, 24V delivers significantly better performance.

What happens if I mix up the coil pairs?

The motor will jitter, hum loudly, or fail to rotate entirely. A multimeter in resistance mode is the fix: the two wires connected to A+ and A– must show 1–2 ohms between them, and the same for B+ and B–. Mixed pairs produce no continuity.

Does the TB6600 need a heatsink?

Yes, for continuous operation above 2A per phase. The TB6600’s driver chip dissipates significant heat under sustained load. Mount it to a metal heatsink or position a fan over it for CNC or 3D printing jobs longer than 15 minutes.

How do I reverse the motor direction?

Two options: swap the A+ and A– wires at the driver terminals, or change the DIR pin state in your code. Code-based reversal is cleaner because it requires no hardware changes. Set the DIR pin high for one direction and low for the other.

What gauge wire should I use for NEMA 23 connections?

18 AWG to 22 AWG stranded wire works for motor-to-driver connections at currents up to 4.2A. Use 22 AWG for the signal wires between the driver and controller. Keep all wire runs under 3 feet to minimize voltage drop and electrical noise from the switching driver.

References & Sources

Please use a real email you check. If it's fake or mistyped, your message won't reach us and we can't reply — wrong addresses are rejected automatically.