Did the motor kill my arduino? Control DC motor in both directions by two relays

I am using an Arduino and two relays to control 12V DC motor in both directions.

For the first trials it worked fine. Finally, my Arduino was fried on another direction swtich.

I think there is something wrong in the schematic.
I believe that Arduino was killed by reverse voltage spike produced by motor
.

Probably I need a diode across the motor. However, I have two directions here.

So, what is the proper schematic for my task would be?
My Schematic is attached.

You are probably correct about the voltage spike, and for just that reason, we strongly recommend to use separate power supplies for motors/servos/solenoids and Arduino. Don't forget to connect the grounds.

If separate power supplies are unavoidable, you need excellent power supply decoupling for the Arduino portion of the project.

Depending on the direction of the motor rotation, you might have a 12 volt spike that adds to the 12 volt supply and likely killed just the voltage regulator on the Arduino board. When powered up, check the input and output voltage of the regulator chip.
Another option may be to use a buck converter the convert the 12 volts to 5 volts and send that to the Arduino 5 volt pin.
Paul

Paul_KD7HB:
Another option may be to use a buck converter the convert the 12 volts to 5 volts and send that to the Arduino 5 volt pin.
Paul

I think the same. Thank you very much. Also, I will add a delay between relay switching...

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