Hi all,
Could I get some advice please before I damage any more!
I think I've bricked two mega 2560's. Well, actually the first one seems totally bricked (red led comes on and stays on when powered by usb, nothing when powered by dc, and never gets recognised on the serial port), and the second doesn't come on at all when powered by dc but works ok with usb power. Testing it with a multimeter shows the voltage regulator on both is damaged.
I don't know what caused the first one but I do know what I did to the second...
I'm using the arduino motor shield (Arduino Motor Shield Rev3 — Arduino Official Store).
It was working ok, but one of two things happened - either 1) the load was too heavy for the motor, or 2) the shaft was slipping in the coupler. Either way, as I was testing it, I could smell some burning so unplugged.
The motor is a 12v, 65pm, worm gear reduction motor.
When I realised the red light issue, I read up on it and used a multimeter to measure the voltage on the regulator and found it was outputting about 2v or less from the 12v input. The 5v output pin is also outputting about 2.Xv.
Then I went to test the regulator on another mega 2560 I have to check how it should work, and it was perfect (12.Xv in, just a bit less out) and I accidentally connected the pins and managed to damage that one too (this is the one the usb still works on though, so it's only damaged the regulator - the other one clearly has more damage).
So - to get to my question (hope you are still reading!) - what could have caused this on the first one and how can I prevent it from happening again? I'm 'ok' with blowing two arduinos, I'm fairly new to them so it's part of the learning curve, but I do need to learn rather than keep repeating mistakes.
I had one motor attached to the A terminals, and I had 12v attached to the power terminals next to that from a power supply using a dc barrel I soldered on to two wires. Polarity is correct.
The test code was the basic code for setting the direction, disengaging the break, and starting the motor spinning.
Is there anything obvious that could have caused this?
Thanks
J