Hey,
So I am trying to make a smart bartender. I bought a bunch of peristaltic pumps which are basically just DC motors as far as the Arduino is concerned. They are 12V. I then went out and bought a bunch of cheap little DC motor control boards.These to be precise. And I am powering everything with a generic laptop charger (Note that I am not plugging the power supply directly into the Arduino via the barrel jack, but rather the VIN pin). This is my wire diagram:
I wired a couple of them up. And things were going great! the pumps were spinning on and off as I programmed them to. So I wired up the rest. I tried turning on 10 pumps at once.
Big mistake.
I notice that when I turned the whole setup on again (by plugging in my external power supply. No USB power here). Nothing happened. I heard a faint noise at first. Like every motor tried to turn over at once, but none of them did. After a couple seconds I smell and notice smoke coming off a chip from one of my little motor control boards. I unplug the setup as fast as I could but the damage was done.
The little board I saw smoke coming off of is fried and I don't trust the rest of them. I thought maybe the Arduino was spared. I edited my code to only run 1 motor on a control board I thought was maybe spared. It seemed to be working with just USB power (the motor won't turn because the arduino wont output enough juice but I can hear it trying) but when I tried running off of the external power source again...pop fizzle + more smoke and I was definitely out at least 2 DC motor control boards.
I added some serial outputs to my code to see what was going on. Powering the Arduino with just USB I could see it outputting to the serial monitor. I then plugged the Arduino into both my PC and the external power supply at the same time. Unfortunately I am unable to see the serial output when in this configuration.
So some questions for you people that are smarter than I:
- Do you think my Mega is dead? I feel like you should be able to see the serial output when using an external power supply + USB on a working board. I am still able to upload code but I feel like the VIN pin at least is dead.
- I thought I did my math right but am I out of spec somewhere? I know the motors can handle the 12V but did I overlook something in the amp department with my DC motor control boards? Or my mega?
- How can I go about protecting my equipment from this happening again? new hardware? smarter code? I already went out and bought a whole new set of the same DC motor control boards and another mega because I frankly dont trust any of the old hardware except the motors. I feel like if I stagger the motors turning on (say a 1 second delay between turning on the A & B motors) that might work.