Identify what is resetting before changing the wiring

If an Arduino restarts when a DC motor or hobby servo begins moving, the timing is useful evidence, not proof of one cause. A supply voltage may dip below the controller’s operating range, a shared ground path may shift, electrical noise may disturb reset or data lines, or the sketch may intentionally reset after a fault. The motor itself may be mechanically stalled or drawing more current than expected. Separate these possibilities with observations before adding capacitors or changing code.

This guide focuses on low-voltage Uno R3-style projects. Confirm the exact board’s input range, logic voltage and power documentation; clones and other Arduino models can differ. Never power a motor from a GPIO pin. Do not assume the board’s 5 V rail, USB port, regulator or connector can provide a servo’s stall current. Use the motor/servo datasheet and board manual for the limits that apply to your setup.

Disconnect power before changing wires. Keep rotating shafts and blades clear, secure the board, and use a current-limited low-voltage source when appropriate. Do not probe mains-powered equipment or a high-energy battery pack with this beginner procedure. A reset is not a protective feature to rely on when a motor or wiring is overheating.

Oscilloscope measurement of an Arduino 5 V rail during motor startup
Generated low-voltage troubleshooting illustration; displayed values and traces are illustrative, not measured.

Power demand can be much higher at startup

A motor at rest has no back electromotive force, so its initial current can approach a stall condition until it begins turning. A servo can draw a high transient while accelerating, holding against a load or reaching a mechanical stop. The average current printed on a product page may not describe these short peaks. Read stall current or startup data for the exact model, and never command a servo against an obstructed mechanism.

If the motor and board share a weak supply, cable or connector, the startup current can pull the logic rail down. USB cables, breadboard contacts, thin jumpers, a power bank’s protection and the board’s linear regulator can each contribute resistance or current limiting. A multimeter may miss a brief dip because its display updates slowly. A scope or suitable min/max capture at the board’s 5 V and GND can reveal a transient, but the probing method and bandwidth matter.

For a DC motor switched through a driver, power the motor from a supply that meets its voltage and startup-current requirements, and power the controller within its own documented range. The signal driver and controller usually need a common ground so the logic level has a reference. Route high motor current through the motor supply and driver, not through the Uno ground trace, USB shield or a thin breadboard link. Do not connect two regulated positive outputs together unless their manuals explicitly allow it.

Check wiring and measure at the board

  1. Record the board model, motor/servo part number, power source, wiring path and the exact event that triggers the reset.
  2. With power removed, inspect motor-driver terminals, polarity, loose contacts and whether a motor is accidentally connected to the board’s 5 V or GPIO pin.
  3. Test the sketch with the motor/servo power disconnected while leaving the control code running. If resets stop, the event is associated with the load power or electrical coupling, but the test does not distinguish the two.
  4. Measure the board’s 5 V rail relative to its own GND first at idle, then during a short startup attempt. Use a scope or min/max recorder for brief dips; do not bridge adjacent pins with probe tips.
  5. Measure the motor supply at the driver input during the same event. If that rail collapses too, check its rating, battery condition, connector and current limit.
  6. Check common-ground continuity with power off, then observe whether motor current shares a long, resistive return segment with controller ground.

If the logic rail falls at the board, first compare the voltage dip with the board’s documented operating range and regulator path. A reading taken at the supply terminals can look normal while the board sees a lower voltage after cable and connector losses. If the board rail stays stable but it still resets, investigate the reset pin, wiring coupling, brownout settings, watchdog behavior, serial startup messages and the sketch’s reset calls.

Servo powered by an external source with Arduino signal and common ground
Generated low-voltage troubleshooting illustration; displayed values and traces are illustrative, not measured.
Observation during startNext checksInterpretation limit
Board 5 V dips and motor supply also dipsSource capacity, protection mode, battery and connectorsDoes not by itself prove the motor is faulty
5 V dips at the board, source stays stableWire resistance, ground return, regulator path and connectorMeasure at the board pins, not only at source terminals
5 V stays stable but reset repeatsReset line, EMI coupling, watchdog and code pathVoltage measurement alone cannot rule out narrow transients
Reset occurs only with mechanical loadServo stall, motor binding, startup current and driver heatingA mechanical overload can mimic a supply defect

Separate the load supply and control path carefully

For a servo, use an external supply whose voltage matches the exact servo and whose current capacity covers its documented load condition. Connect servo ground, external-supply negative and Arduino ground as required by the control signal. Keep the signal wire on the specified control input and do not connect external positive to the board’s 5 V pin unless a documented power design explicitly calls for it. For DC motors, use a suitable motor driver with its required suppression and decoupling; the related MOSFET motor guide explains a basic low-side switch and diode path.

Move the motor-current loop away from reset, analog and serial signal wiring where practical. Keep power and return pairs together and short. Place bypass or bulk capacitors only according to the driver and board requirements and close to the load/driver pins they serve. A capacitor cannot repair an undersized supply, bad connector, missing common reference or incorrect motor wiring. Too large a capacitor can create a high inrush current at plug-in.

When the source, load and board share a ground, a poor star point or thin shared wire can make controller ground jump as motor current rises. Use a deliberate return layout: motor current returns to the motor-source negative through the driver path; the logic ground joins at a controlled reference point. If the driver is galvanically isolated, follow its isolation requirements instead of adding a ground connection that defeats the isolation.

Make one change at a time

  1. Run the board without motor power and confirm that the reset does not occur from the sketch alone.
  2. Power the motor or servo from a suitable separate source while keeping the grounds and signal connections correct for the driver.
  3. Start with no mechanical load and a short motion or pulse; keep the shaft clear and use the manufacturer’s allowed range.
  4. Capture board 5 V, motor supply and, if appropriate, reset behavior during startup. Change only one wiring or load variable at a time.
  5. If supply rails remain stable, inspect reset and signal wiring, library behavior, watchdog configuration and any intentional reset calls.
  6. Stop if a supply, connector, wire, driver or motor heats, smells, sparks, stalls or exceeds its rating.
Separate motor and logic wiring during an Arduino reset diagnosis
Generated low-voltage troubleshooting illustration; displayed values and traces are illustrative, not measured.

Avoid fixes that hide the cause

Adding a large electrolytic capacitor across 5 V may briefly mask a dip while increasing plug-in inrush or stressing a regulator. A diode across a brushed motor can suppress inductive turn-off voltage in a suitable unidirectional driver, but it does not correct a weak supply or a reset caused by ground bounce. Twisting wires or moving a breadboard rail may help reduce coupling, but verify the voltage and signal before calling the fault fixed.

Do not increase the board’s input voltage to “give it more power.” A linear regulator may dissipate more heat, and input limits are board-specific. Do not remove common ground from a non-isolated signal connection: the controller may then have no defined reference and the input may be overstressed. If a robust source and driver still cannot meet the load’s current, use a driver designed for the motor or reduce the mechanical load.

For ESP32 or another board, do not transfer Uno R3 voltage, pin-current or brownout assumptions. The architecture, threshold, regulator and reset indicators differ. Consult that exact board’s documentation; Electronix’s ESP32 brownout guide covers a separate model-specific diagnosis.

Common questions

Does an external motor supply need common ground? Usually yes for a non-isolated control signal, so the driver can interpret its logic relative to Arduino ground. Follow the driver’s isolation and wiring documentation.

Can I power a small servo from the Uno 5 V pin? Only if the exact board and servo documentation, current demand and supply path support it. Startup and stall current often make a separate servo supply more reliable.

Would a capacitor always stop resets? No. It may help a measured short transient when sized and placed correctly, but cannot fix excessive sustained load, high wiring resistance, a bad ground or firmware resets.

Why does reset happen only when the motor is loaded? Added mechanical torque raises motor current; a servo can also draw more while holding. Check the mechanical load and current before changing the Arduino code.

Sources

Arduino: Servo Motor Basics and external power; Arduino: choosing a board power supply; Arduino: servo troubleshooting and shared ground; Arduino UNO R3 hardware documentation. Consulted 2 November 2026.

Related Electronix guides: drive a DC motor with a MOSFET and diagnose an ESP32 brownout.