0
\$\begingroup\$

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.

enter image description here

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

\$\endgroup\$
  • \$\begingroup\$ Use separate power supply \$\endgroup\$ – Gregory Kornblum Jan 21 '18 at 15:50
  • \$\begingroup\$ What motors are you using? \$\endgroup\$ – Charles Cowie Jan 21 '18 at 15:52
  • \$\begingroup\$ "when changing the motor direction" Is that with the motor still spinning? \$\endgroup\$ – Trevor_G Jan 21 '18 at 15:56
  • 1
    \$\begingroup\$ Thanks very much for the other answers. I am confused why my answer was deleted as it solved the problem... \$\endgroup\$ – user2105725 Jan 22 '18 at 17:59
1
\$\begingroup\$

You have two issues here.

As Charles mentions, there are no free-wheeling diodes present.

In addition to that, when you reverse the polarity on the motor while spinning you effectively try to stack the back EMF on top of the supply rail. This also back-feeds the battery with a higher voltage.

You need to add some circuitry to isolate the supply during those transitions..

schematic

simulate this circuit – Schematic created using CircuitLab

Note the free-wheeling diode need to be duplicated for each motor.

See this cross-post.

\$\endgroup\$
0
\$\begingroup\$

It does not appear that the driver board provides the freewheeling diode configuration recommended by the driver chip manufacturer. There is probably a problem with back EMF voltage spikes generated by the motor. There may also be a "plug reversal" current problem.

enter image description here

\$\endgroup\$
0
\$\begingroup\$

If you reverse the direction of your motors from full forward to full reverse you will have a huge current spike. That will cause major problems with your supply.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.