
Doombot
USA
Asked
— Edited

Hello all
Can I properly hook up an Arduino Motor Sheild to EZ-B, to run 2 DC motors.
If so, can I get some sort of diagram/schematic? I need to be able to control the speed and direction if both motors individually. Sorry, noob question.
I've seen applications where people use the digital out directly to run motors, just using a transistor and a diode. Can a motor controller be bypassed then using this method?
If you are dead set on using the shield you will need to find the schematic. Looking at the image you posted for it, there are connections that probably aren't required.
The connections are described here. Basically put, the EZ-B makes things easy so you just need to connect up the digital pins (3, 8, 9, 11, 12 & 13) to any of the EZ-B's D0-D19 ports, analogue (if you want current monitor) to the analogue ports, your Vin to Vin, Ground to ground and set it all up in ARC according to the digital ports used for the specific function.
Bear in mind that the shield is 2A per channel or 4A max. Make sure your motors don't need to draw more than that.
@jstarne - I thought I did? I credited Rich
PWM D14 Orange ( arduino pin 11 & 3)
D12 ( arduino pin 12) black
D13 ( arduino pin 9) red
D11 ( arduino pin 11) green
D10 (arduino pin 13) blue
However if I separated PWM 3 and 11 on respective digital pins I should be able to control the speed of the motors right? I see you tied them together...
The brake may not be required too. It would stop the motor but just shutting off the PWM (setting to 0) would allow it to freewheel which in my opinion would be better if being used for movement.
P.S. It's still showing unresolved this end too, not that it's a problem
PWM control for whichever digital port you connect to PWMa
PWM control for whichever digital port you connect to PWMb
Set Digital for whichever digital port you connect to DIRa
Set Digital for whichever digital port you connect to DIRb
So, if you chose D8 to D11
PWMA to D8
PWMB to D9
DIRA to D10
DIRB to D11
In your custom movement panel, to move both forwards use the code;
Code:
For reverse
Code:
For stop
Code:
For left
Code:
For right
Code: