I have a 12v motor that peaks at about 500ma at start, the same occasionally when running and hovers around 100-300ma normally. The motor is supposed to run off battery but for this case I've been testing off a regulated power adapter (12v,1amp).
I'm using PWM to control motor speed switched by a heavy duty power mosfet with resistor on gate to pin, diode on +v and cap on v+->gnd. When starting the motor at full speed everything works pretty well but occasionally the Arduino would reset. To remedy this I added some big e-caps between motor +v supply and gnd and it helped to some extent except when starting the motor at a lower speed the Arduino would almost immediately reset. After I added some more logic caps it would corrupt the LCD first, stop working then reset.
Long story short I separated the power supplies so that the motor works off the main 12v supply and the Arduino off of a 9v battery and my problems were gone. What I'm curious then is how people are able to make their motor and processor/Arduino work off of the same power supply. I would think that a power adapter that can pull 1amp would not have issues.
I understand how an inrush occurs when first starting the motor which could result in what I am describing but why would the reset happen after normal operation? Shouldn't the power supply be able to keep up with the power requirements (unlike a battery which will have internal resistance and inductance). I could just keep adding bigger capacitors across the battery +v/-v but I have a feeling something else is happening here and I would really prefer not to require two different power supplies!
Thanks ahead of time for any insights!