I am using a MX1508 DC motor driver module to power a couple of motors with an arduino pro mini as the controller. when i connect the circuit as per the schematic, the arduino resets every so often when changing the motor direction.i can rectify this problem by giving the arduino its own separate battery. my question is; is there any other way of 'isolating' the arduino from whatever problem is being caused by the motors or is a completely separate power source the only answer? i have created similar circuits with servos in the past and not had any problems... Thanks.
update:
I have just found a solution to my problem; i briefly stop the motors (bring all pins low) before changing their directions. this seems to have worked. Any ideas what is going on 'under the hood' ? Thanks