Open BAmercury opened 5 years ago
add in new breakout board design as well to fit
Pinout from code:
// Motor H-Bridge Control Pins for the L6206 H-Bridge Motor Driver
int PIN_M1_IN1A = 5; // Timer 3 PWM Motor 1
int PIN_M1_IN2A = 4; // Motor 1 Direction
int PIN_M2_IN1B = 13; // Timer 0 PWM Motor 2
int PIN_M2_IN2B = A1; // Motor 2 Direction
// Motor Encoder Pins
// Arduino MEGA External Interruptable Pins
int PIN_M1_ENCA = 18;
int PIN_M1_ENCB = 3;
int PIN_M2_ENCA = 19;
int PIN_M2_ENCB = 6;
// Motor Controller Sense and Enable Pins
int PIN_M1_ENA = 2;
int PIN_M2_ENA = A4;
int PIN_M1_SENSEA = 12;
int PIN_M2_SENSEB = A2;
Pins changed, add comments showing what timers they are connected too add comments and throw together quick wiring diagram for the motor controller