The diode D3 near R5 is backwards.
It’s always best to show an image of the actual circuit you try.
For a test, please confirm your power supply will power the motor when they are directly connected to each other.
The diode D3 near R5 is backwards.
It’s always best to show an image of the actual circuit you try.
For a test, please confirm your power supply will power the motor when they are directly connected to each other.
Among the 4 diodes around the motor, 2 are in one direction and 2 are in the opposite. Why is that?
The 4 diodes are only really used when the motor(s) are turned OFF.
When the Arduino turns OFF the motor relay, that relay removes power going to the motor.
When the motor power is removed, the motor produces a voltage spike that can be hundreds of volts.
This is referred to as a kickback voltage.
This high voltage spike can interfere with or damage nearby electronics.
The 4 diodes snuff out any kickback spikes.
Therefore, the diodes prevent interference that occur if the diodes were not used.
I soldered everything on a perfboard just like in the diagram. At least I hope I did, it's my first time using a perfboard.
Just for testing, I tried connecting it to an led with 300ohm resistor, and the 12V 1A PSU. The Arduino was programmed to turn on one side for 2 secs, turn off, delay, and then turn on the other side. It worked great. The led was actually lit only at on side's turn because of it's polarity, but I was able to measure 12V across when it was the other side's turn and the led was not lit.
I then tried to connect the motor instead of the led and the resistor, and instantly there was a tiny spark and now it's not working at all. I think the Arduino is burned because there's still voltage around the circuit. Do you have any clue of why did that happen?
Thanks
We really need to see good, different angle images of your wiring.
Please confirm the power supply voltage with your DVM.
Confirm your motor works if you connect it directly to the power supply.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.