Arduino troubleshooting

Relay module resets the microcontroller

Prevent relay switching from browning out or disturbing a microcontroller.

DifficultyAdvancedTypical time40-90 minutesReviewedJun 8, 2026
Relay module resets the microcontroller
Before you begin

Stop if you notice a swollen battery, burning smell, exposed mains wiring or liquid inside powered electronics. Protect important data before resets, firmware changes or recovery work.

Where this problem appears

Arduino and ESP32 projects driving relay boards.

Symptoms to confirm

  • The board restarts when a relay turns on or off.

Likely causes

  • Coil current, supply sag, inductive noise, poor grounding or load arcing couples into logic power.

Work in order

Step-by-step fix

  1. 1

    Disconnect the mains load for low-voltage testing

  2. 2

    Power the relay correctly

  3. 3

    Measure supply voltage during switching

  4. 4

    Use proper flyback protection where required

  5. 5

    Separate high-current paths

  6. 6

    Add local decoupling

  7. 7

    Use an isolated rated module for hazardous loads

If the main path does not work

  • Drive an LED test load before reconnecting the relay system.

How to reduce repeat failures

Design power and isolation before wiring mains-controlled projects.

Common questions

Is this safe for a beginner?

Some steps require careful technical judgment. Stop before powered disassembly, battery work or wiring changes if you are not experienced.

How long should the checks take?

The typical diagnostic window is 40-90 minutes, although drying time, updates and intermittent faults can take longer.

What should I record before contacting support?

Record the exact device model, software or firmware version, the full message shown, when the problem began and which steps changed the behavior.

Guide Fix HQ Editorial Team

Independent editors focused on reproducible troubleshooting, safety boundaries and clear device-specific guidance.

How this page is reviewed

Reader notes

Did this solve the problem?

Share the device model and the step that changed the result. Comments are reviewed before publication.

No published reader notes yet.