So I’ve setup my circuit according to this image:
Using a 12V lead acid battery as the external power.
Everything works fine when the motor is off, but whenever I run the motor up to about 25% power, the serial monitor freezes and I get a USB device malfunctioned error on my computer. This also kills my mouse, and if I try to do any more communication I get an error telling me COM3 port already in use. Strangely, serial communication is the only thing to malfunction, I’m testing the setup by cycling the motor through periods of 0-100% power and the motor continues to work even after communication cuts off.
I’ve tried attaching a 9V battery to the arduino power input, as well as using a different computer without any luck. Any advice?