Auto Reset Arduino Uno

I´m using an Arduino Uno in my project. It´s powered by an 12 V DC power supply. On the same power supply are 4 motors. When the code is running the Arduino sometimes resets and the whole code starts from the beginning by initialising the variables. It doesn´t always happen at the same time but mostly while the motors are running. Does anybody now what could be a possible cause for such a behaviour?
Thanks in advance!

Reset due to inadequate power supply.

1 Like

The power supply is probably inadequate, but there may also be problems with the severe electrical noise generated by the motors getting into the Arduino.

Post links to the motors and to the motor power supply. Keep in mind that motors briefly draw the start/stall current every time they start moving, and that can be 10X higher than the typical running current.

1 Like

From your description it could be many things, EMI, power dips, flyback from the motors, etc. Post an annotated schematic showing exactly how you have wired it, be sure to include all connections, power, ground, and power sources. Also post links to each of the hardware items especially the motors. This can also be layout critical so post some pictures of your setup.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.