How to connect two Motor Drivers Pololu 18V15A to Arduino Uno board?

Hello

I like to control two 12V DC Gear Motor with two Pololu 18V 15A motor drivers (Pololu High-Power Motor Driver 18v15) and Arduino Uno micocontroler. So my concern is do I need two AC power supply adapters and how to connect them to Arduino Uno board.
So the left side of the Driver I will connect like these. Driver1 : GND goes to GND of the power Supply 1 and to Arduino . OUTA and B to Motor 1, and V+ to 12 V of the Power Supply1.
Right Side of the Driver 1: Ground Goes to Arduino, Dir and PWM go to digital pins of Arduino

Driver 2 : GND goes to GND of the power Supply 2 and to Arduino . OUTA and B to Motor 2, and V+ to 12 V of the Power Supply2.
Right Side of the Driver 2: Ground Goes to Arduino, Dir and PWM go to digital pins of Arduino

Problem is I dont have enough GND and Vin pins in Arduino board to connect two Motor Drivers and two Power Supply. Any help?

Thanks

Problem is I dont have enough GND and Vin pins in Arduino board

How about connector block- just check the electrical specs are adequate.

Or solder.....

How about electronic brick shield( http://www.seeedstudio.com/depot/electronic-brick-shield-v4-p-458.html)

or bread board? My problem is that there are not enough GND and Vin pins in Arduino board to connect two Motor Drivers and two Power Supply. Understand?

I do understand, but I thought you meant a more permanent solution....

Breadboard's by far the easiest.

I do need permanent but I dont understand how can use connector block to solve the problem. Because I need more GND , Vin and 5V (Power) pins in Arduino board not in Motor Driver. How can connector block solve this problem in the Arduino board?

Stick all the wires you need to take to say Gnd into one hole on a strip, and then have one wire from there to the Arduino Gnd pin.

and can I stick 5V wire from one Power Supply and other 5V wire from the other power Supply into one hole on a strip, and then have one wire from there to the Arduino 5V Power pin?

That doesn't sound right.

Please do a schematic of what it is you're trying to do, I'm losing the plot here with descriptions of where wires go.

Just do a hand-drawn one and take a photo with your phone.

Firstly keep all the high current wiring entirely separate and away from the Arduino, get that
right first. All supply grounds must be commoned together, note.

Then add ground and signal connections to the Arduino, without sharing any wires (important),
you mustn't have high noisy currents in your logic ground wiring.

All you high current wiring runs should be twisted pair if possible, to each motor and to each
supply.

Never common the 12V or 5V outputs of more than one supply, that could be a disaster, just
the grounds.

Ignore the 5V (out) on the Pololu drivers, just ground and signals from Arduino to drivers should
be fine.

The 5V pin from Power Supply is connected to Vin of Arduino. But When I have two motors and two power supplyes I dont know where goes the 5V of the second power Supply,. I inculcated two diagrams. First one (One_Motor photo) is the connection for one motor which is works perfectly and than second photo (Two_Motors) is my thought of connections when two motors are uses. Thanks.

One_Motor.pdf (359 KB)

Tw_motors.pdf (560 KB)

The 5V pin from Power Supply is connected to Vin of Arduino. But When I have two motors and two power supplyes I dont know where goes the 5V of the second power Supply,. I inculcated two diagrams. First one (One_Motor photo) is the connection for one motor which is works perfectly and than second photo (Two_Motors) is my thought of connections when two motors are uses. Thanks.

Just ignore the 2nd 5V supply. That said, I'm not sure that 5V into the Vin of Arduino is enough to guarantee it runs properly.

The Uno product page says this:

The board can operate on an external supply of 6 to 20 volts. If supplied with less than 7V, however, the 5V pin may supply less than five volts and the board may be unstable. If using more than 12V, the voltage regulator may overheat and damage the board. The recommended range is 7 to 12 volts.

As far as I know, that goes for power supplied to Vin or the barrel jack since it still goes to the on-board regulator. You might not be getting a reliable 5V out of your digital pins....

so just one 5V of the first Power Supply connect to Vin pin of Arduino and the second 5V ignore?The rest is good. For example form second power supply the 12V goes to second motor driver V+ pin. All the same as in second photo with two motors, true?

Yep that looks right to me.

But it would be worthwhile to check the voltage coming out of the Arduino, seeing as you are putting 5V in on the "other side" of its regulator. If it turns out that it's not up at 5V, and if that causes a problem with the driver board at all, you could consider supplying a higher voltage to the Arduino Vin. You could for example, put the whole 12V in there, although that's a waste since the regulator will just bring it down again and waste energy. And also if you do that you would need to trust your power supply not to go over 12V.

I use a Pololu adjustable power supply, and set it to about 7.5V just to make sure the Arduino Vin is happily over 7V.

JimboZA:
You could for example, put the whole 12V in there, although that's a waste since the regulator will just bring it down again and waste energy. And also if you do that you would need to trust your power supply not to go over 12V.

which whole 12V? The power Supply has 5V which goes to Vin of Arduino, GND goes to GND of Pololu and 12V which goes to V+ of Pololu.

You could use the 12V from the power supply, if that 5V proves low. Remember that only the usb supply is good at 5V, the others (barrel jack or Vin) should be >=7V.

For interest, what voltage do you get out of the Arduino, at one of the digital pins you're using or at the 5V?

I read on some forum that Arduino Uno has a recommended input voltage of 7-12V, so I should not be trying to power it with 5V on the VIN pin. So , was suggested to leave the 5V line on each of my power supplies disconnected and power the Arduino from one of the 12V lines. To do this, I can run a wire from the V+ terminal block on one of my motor drivers to the Arduino's VIN pin. Is this correct??

Wait- 5V on Vin? Definitely will not work.

astronaut71:
I read on some forum that Arduino Uno has a recommended input voltage of 7-12V, so I should not be trying to power it with 5V on the VIN pin. So , was suggested to leave the 5V line on each of my power supplies disconnected and power the Arduino from one of the 12V lines. To do this, I can run a wire from the V+ terminal block on one of my motor drivers to the Arduino's VIN pin. Is this correct??

You read that right here on this forum: that's what I suggested a few replies ago.

I also pointed out this:

  • The onboard reg will take that 12V down to 5V but at the cost of some energy as heat
  • You need to be confident that when not under load, your power supply's 12V doesn't spike up, since 12V is the recommended max for Arduino, 20V absolute max

It was working with one motor. The only issue was I had a big delay between moving the motor right and left