I have an Arbotix-M board Arbotix-M and
Arbotix-M has x6 PWM pins which are between D12-D15 and D3-D4. Other pins are mainly digital and analog pins; and Arbotix-M is compatible with Arduino too.
I have x3 pololu products:
-
Pololu Dual G2 High-Power Motor Driver 24v14 Shield for Arduino
-
Pololu Dual VNH5019 Motor Driver Shield for Arduino
-
Jrk G2 18v19 USB Motor Controller with Feedback
Which pins do I need to connect to PWM and Digital pins ? I need this information; because I will do a manual connection to Arbotix-M.
M1PWM, M2PWM needs to be connected to PWM pin and probably the M1DIR, M2DIR will be needed to connect to PWM too.
What about M1nSLEEP, M2nSLEEP and M1nFAULT, M2nFAULT ?
If I only use only speed, direction; or speed, direction and one more feature (M1nFAULT or M1nSLEEP) is it enough to control my motors with pololu on Arbotix-M board ?
DualG2HighPowerMotorShield::DualG2HighPowerMotorShield()
{
_M1nSLEEP = 2;
_M1nFAULT = 6;
_M1DIR = 7;
_M1PWM = 9;
_M1CS = A0;
_M2nSLEEP = 4;
_M2nFAULT = 12;
_M2DIR = 8;
_M2PWM = 10;
_M2CS = A1;
}
DualVNH5019MotorShield::DualVNH5019MotorShield()
{
//Pin map
_INA1 = 2;
_INB1 = 4;
_PWM1 = 9;
_EN1DIAG1 = 6;
_CS1 = A0;
_INA2 = 7;
_INB2 = 8;
_PWM2 = 10;
_EN2DIAG2 = 12;
_CS2 = A1;
}
How can I use this product (Jrk G2 18v19 USB Motor Controller with Feedback) with Arbotix-M too ? I already cannot find a solid tutorial and sample code how to use it on Arduino too. If it is possible would you give me some tutorial links and where can I find a sample code for the Jrk G2 18v19 USB Motor Controller with Feedback to use on Arduino please ? thank you very much.
This is first time I use pololu forums and pololu motor drivers in my robotic projects and I will be very happy if you guide me, thank you very much.