I imagine the reset in the original post was caused by the type of motor (small wires, many turns== high inductance) and the PWM frequency interacting to send some nasty noise into the Arduino. In that case, a few simple capacitors on the power and/or logic lines is the obvious solution. D
The latest Arduino boards come with 22uF caps
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16