Arduino troubleshooting
Relay module resets the microcontroller
Prevent relay switching from browning out or disturbing a microcontroller.
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
Disconnect the mains load for low-voltage testing
- 2
Power the relay correctly
- 3
Measure supply voltage during switching
- 4
Use proper flyback protection where required
- 5
Separate high-current paths
- 6
Add local decoupling
- 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.
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.