Servo Motor Wiring Diagram: Power Cable, Encoder Feedback, and Drive Wiring
This is a free printable servo motor wiring diagram: download the diagram as SVG or open it and print to paper or PDF.
A servo motor wiring diagram covers the motor power cable, encoder or resolver feedback cable, brake wiring, and servo drive connections for precise motion control.
A servo motor system consists of four distinct electrical circuits, each with its own wiring requirements: the motor power circuit, the encoder or resolver feedback circuit, the motor brake circuit, and the drive control and I/O circuit.
The motor power cable carries three-phase AC or DC bus power from the servo drive output (U, V, W terminals on the drive) to the motor power terminals (U, V, W on the motor terminal box). Unlike standard induction motors, servo drives output a PWM (pulse-width modulated) waveform at the carrier frequency (typically 4 kHz to 16 kHz), not clean sinusoidal AC. This high-frequency switching causes capacitive coupling along the cable, generating high-frequency common-mode currents that flow back to the drive through the cable screen and the drive's EMC filter. The motor power cable must be screened (braided or foil + drain), and the screen must be properly bonded to earth at both the drive and motor ends — a 360-degree termination (using an EMC cable gland or metallic conduit coupling) is far more effective than a pigtail earth connection.
The feedback cable carries signals from the rotary encoder or resolver mounted on the motor shaft back to the drive. Incremental encoders output quadrature A/B/Z pulses; absolute encoders output serial data (SSI, BiSS, or EnDat protocols). Resolvers output analogue sine/cosine signals. These signals are low-level (typically 5 V differential) and susceptible to noise. The feedback cable must be separately screened, routed away from the power cable (minimum 100 mm separation, or in a separate trunking), and must not share conduit with motor power cables.
Servo motors with a holding brake have an additional DC brake circuit — typically 24 V DC (some 90 V DC or 120 V DC designs). The brake is fail-safe (spring-applied): it engages when power is removed and releases when power is applied. The brake circuit must be powered by a separate, fused DC supply — never derived from the servo drive's regenerative DC bus.
Drive control wiring connects the servo drive to a PLC or motion controller via analogue reference (±10 V), pulse/direction (5 V differential), or fieldbus (EtherCAT, PROFINET, CANopen). Always use the drive's dedicated 0 V reference for analogue signals — using chassis ground creates a ground offset that causes velocity drift.
Connecting a hobby or industrial servo motor to an Arduino is one of the most common embedded electronics tasks, and the wiring diagram is straightforward: three wires per servo — power (typically red, 4.8–6 V), ground (brown or black), and signal (yellow or orange). The signal wire connects to a PWM-capable digital output pin on the Arduino, and the Arduino Servo library sends 50 Hz pulses between roughly 1 ms (0°) and 2 ms (180°) to position the shaft. For multiple servos or high-torque models, power the servo rail from an external supply rather than the Arduino 5 V pin to avoid brownouts. Sketch and annotate your servo motor wiring diagram free online at Circuit Diagram Maker.
How to wire servo motor wiring diagram
- Read the drive and motor documentation Before connecting any wire, obtain the servo drive wiring manual and the motor datasheet. Note the motor power terminal labelling (U, V, W), the encoder connector pinout (varies by encoder type and manufacturer), brake voltage and current rating, and drive input control wiring options. Do not rely on colour conventions alone — verify against the specific documents for your components.
- Prepare and route the motor power cable Select a screened, flexible motor cable rated for the drive's PWM output voltage (minimum 600 V, preferably 1000 V), with conductors sized for the motor's rated current with appropriate derating for the installation method. Route the cable in its own metallic conduit or trunking, separate from encoder and control cables. Maintain at least 100 mm separation where power and signal cables must run parallel.
- Terminate the motor power cable screen At the motor end, terminate the cable screen to the motor housing using a 360-degree EMC cable gland — this is far superior to a pigtail and maintains EMC performance. At the drive end, terminate the screen to the drive's PE (protective earth) terminal using the shortest possible connection, or use a metallic conduit coupling. Pigtail earth connections longer than 50 mm significantly degrade high-frequency EMC performance.
- Connect motor power conductors U, V, W Connect drive output terminal U to motor terminal U, V to V, W to W. Do not transpose phases — the commutation of a servo drive is phase-order dependent. Tighten terminals to the manufacturer's specified torque. Include PE (earth) connection between the drive PE terminal and the motor housing terminal.
- Route and connect the encoder feedback cable Use the manufacturer-specified encoder cable or an approved equivalent — screened, twisted-pair cable (one pair per differential signal), overall screen, rated for the installation environment. Connect the cable screen at the drive end only (as specified by the drive manufacturer — some drives specify screen connection at both ends with an isolated connector shell at the motor end). Connect each signal pair to the exact terminals specified in the drive wiring diagram.
- Wire the motor brake circuit Connect the 24 V DC (or specified voltage) brake supply to the motor brake connector, observing polarity. Fit a flyback suppression diode across the brake coil in the reverse-bias direction to absorb the inductive kick when the brake is released. Fuse the brake circuit at 2× brake rated current using a fast-blow fuse. Verify that with 24 V DC applied, the brake releases (shaft rotates freely) and with power removed, the brake engages (shaft is held).
- Connect drive control wiring and commission Connect the drive enable input, reference input (analogue ±10 V, pulse-direction, or fieldbus), and fault output to the PLC or motion controller using screened cable. Use the drive's dedicated signal ground (0 V) for analogue references. Before enabling the drive for the first time, verify all connections with the drive in a de-energised state. Enable the drive with zero speed reference and verify the motor holds position without oscillation. Gradually increase speed reference and verify encoder feedback counts correctly using the drive's diagnostic display.
Specifications
| Typical motor power cable voltage rating | 600 V or 1000 V AC (for PWM output compatibility) |
|---|---|
| PWM carrier frequency (servo drive output) | 4 kHz – 16 kHz (drive-dependent) |
| Minimum separation: power cable to encoder cable | 100 mm (parallel runs); cross at 90° where unavoidable |
| Maximum motor cable length (without output filter) | 25 m typical (consult drive manufacturer specification) |
| Typical holding brake voltage | 24 V DC (some designs: 90 V DC or 120 V DC) |
| DC bus voltage — wait time before touching terminals | Minimum 5 minutes after mains disconnect (verify < 30 V with meter) |
| Encoder signal levels (incremental, RS-422 differential) | 5 V differential; A/B/Z channel pairs |
| Analogue speed reference input (typical) | ±10 V DC, input impedance ≥ 10 kΩ |
Safety warnings
- Servo drives contain a DC bus capacitor bank that stores lethal charge at several hundred volts DC. After disconnecting mains power, wait a minimum of 5 minutes (or as specified in the drive manual — some drives require 10 minutes) before touching any drive terminal or internal component. Verify the DC bus voltage is below 30 V using a multimeter before proceeding.
- All wiring, installation, and commissioning work must be performed by qualified personnel in accordance with applicable electrical codes (IEC 60364, NEC/NFPA 70, BS 7671, AS/NZS 3000) and the drive and motor manufacturer's installation manual.
- Servo motors can deliver extremely high torque at high acceleration rates. During commissioning, ensure all personnel are clear of the motor, coupling, and driven load. A runaway servo can cause mechanical injury in milliseconds. Always test initial commissioning at reduced speed and torque limits.
- Motor holding brakes are fail-safe devices — they engage when power is removed. Never assume the brake holds the load indefinitely as a primary safety measure for suspended loads. Install appropriate mechanical safety interlocks or load lowering devices in hoist applications.
- High-frequency leakage current from the servo drive PWM output flows through the cable screen and PE conductor. This current can trip residual-current devices (RCDs). Use RCDs rated for high-frequency leakage (Type B RCD per IEC 60755) if RCD protection is required on servo drive circuits.
Tools needed
- Digital multimeter with DC voltage measurement to 1000 V (for DC bus verification)
- Insulated screwdrivers and hex keys (1000 V rated) sized to drive and motor terminal screws
- Torque screwdriver (to apply manufacturer-specified terminal torque)
- EMC cable gland wrench (for correct torque on cable gland body)
- Oscilloscope (to verify encoder signal integrity and drive output waveform if needed)
- Cable stripper and crimping tool for screened cable terminations
- Phase rotation meter (to verify supply phase sequence)
- Continuity tester (to verify PE and screen connections before energising)
Common mistakes
- Running encoder and power cables in the same conduit or trunking: high-frequency PWM interference from the motor power cable couples into the encoder cable and corrupts position data. Always use separate conduit.
- Using a pigtail (wire tail) for cable screen earthing instead of a 360-degree EMC gland: a pigtail longer than 50 mm acts as an inductor at high frequencies, allowing EMI to pass into the enclosure. At 10 kHz switching frequency, a 50 mm pigtail has significant impedance.
- Not fitting a flyback diode on the brake circuit: the brake coil generates a voltage spike many times the supply voltage when switched off. Without suppression, this spike damages the relay or PLC output that switched the brake power.
- Connecting the encoder cable screen at both ends without following the drive manufacturer's specification: some drives specify screen connected at the drive end only; others specify both ends. Connecting at both ends when the manufacturer specifies one end only creates a ground loop that injects noise into encoder signals.
- Swapping motor phases during installation: unlike induction motors, servo drives perform closed-loop commutation that depends on the correct U-V-W phase sequence relative to encoder position. Phase swapping causes the drive to trip within milliseconds of enabling on a commutation or runaway fault.
Troubleshooting
- Drive faults on encoder error or position deviation immediately after enabling
- Cause: Encoder cable wiring error (swapped differential pair, wrong signal to wrong terminal), encoder cable screen fault, or encoder damaged Fix: De-energise the drive. Verify each encoder signal pair against the drive's terminal diagram — use the drive's diagnostic display in encoder feedback mode to monitor signal counts while rotating the shaft by hand. Counts should increment smoothly with shaft rotation. If counts jump erratically, the encoder cable has noise ingress — verify screen termination and separation from power cables.
- Motor oscillates or hunts at standstill even with zero speed command
- Cause: Drive position/velocity loop gains too high, or encoder resolution mismatch in drive configuration Fix: Reduce the drive's velocity loop gain (Kv) incrementally until oscillation stops. Verify the drive's configured encoder resolution (pulses per revolution) matches the actual encoder specification in the motor datasheet — a mismatch causes the loop to respond to phantom position errors. Re-tune the velocity and position loops after correcting encoder configuration.
- Motor brake does not release when drive is enabled
- Cause: Brake supply voltage not present, brake circuit fuse blown, or brake drive output on servo drive not enabled in configuration Fix: Measure 24 V DC at the brake connector pins with the brake circuit powered. If voltage is absent, check the fuse and DC supply. If voltage is present but brake does not release, measure brake coil resistance — an open-circuit or very low resistance indicates a failed brake coil. Check the drive configuration parameter for automatic brake release on servo enable.
Frequently asked questions
Why must the servo motor power cable be separately screened from the encoder cable?
The motor power cable carries high-frequency PWM switching currents from the drive. These create electromagnetic interference that couples capacitively into adjacent cables. An encoder cable in the same conduit or trunking will pick up this interference and corrupt the position data, causing the drive to fault on encoder noise or position following error. Always route power and encoder cables in separate conduit or trunking.
What does A1, A2, B1, B2, Z1, Z2 mean on an incremental encoder connector?
These are the differential signal pairs of an RS-422 incremental encoder. A1 and A2 are the non-inverted and inverted versions of the A-channel quadrature signal; B1 and B2 are the B-channel differential pair (90 degrees phase-shifted from A, used to determine rotation direction); Z1 and Z2 are the index pulse pair that occurs once per revolution (used for homing). Connecting these correctly as differential pairs is essential — reversing a pair will invert the signal and cause drive faults.
Can the motor brake circuit share the 24 V DC supply with the PLC and I/O?
It is not recommended. Brake coils are inductive loads that generate large voltage spikes when switched off. These transients can corrupt PLC I/O and communication. Use a separate 24 V DC supply for brake circuits, or at minimum install a suppression diode (flyback diode) across the brake coil terminals, and fuse the brake circuit independently.
What is the maximum recommended cable length between a servo drive and motor?
Manufacturer specifications vary, but a general guideline is: motor power cable up to 25 metres without additional EMC filtering, up to 50 metres with a du/dt filter or output reactor on the drive output, and up to 100 metres with a sinusoidal filter. Longer cables increase capacitive load on the drive output stage, increase leakage current through the cable screen, and may trip the drive's earth-fault detection.
What happens if I swap two motor power phases (U, V, W) when wiring a servo motor?
Unlike an induction motor where swapping phases simply reverses direction, a servo motor with encoder feedback will fault the drive. The drive expects a specific phase relationship between the motor electrical position (as reported by the encoder) and the commutation sequence. Swapping phases breaks this relationship — the drive will detect a commutation error or runaway condition and trip on fault within milliseconds of enabling.
How do you wire a servo motor to an Arduino?
A standard hobby servo has three wires: power (red), ground (black or brown), and signal (yellow or orange). Connect ground to Arduino GND, power to a 5 V supply (external for high-torque servos), and the signal wire to any PWM pin on the Arduino (e.g., pin 9). In your sketch, include the Servo library, call servo.attach(9), and use servo.write(angle) to set the shaft position between 0° and 180°. Never power multiple large servos from the Arduino's onboard 5 V regulator; use a separate regulated 5 V or 6 V supply with a shared ground reference.
Related diagrams
- servo motor circuit diagram
- servo motor pin diagram
- 1 phase motor connection
- 115 230 volt motor wiring diagram
- 12 lead motor wiring
- 12 wire motor wiring diagram