I'm struggling with a little project of mine. It's pretty simple, I've got a motor with it's own battery source and I'm shorting that circuit using a TIP31.
What seems to happen though is the motor is drawing power from the Arduino causing it to reset?!
After a bit of research I introduced an optocoupler I had laying around which triggers the TIP31 however the completed circuit seems to run a lot slower than if I short circuited it by hand.
How can I complete this circuit without a loss of current or screwing up my arduino?