I am able to drive my motor when the Dir pin is LOW but am unable to drive it in the other direction by setting it high.
Here is the simple code i used.
#define Dir1 13 // Winch 1 Direction Pin
#define PWM1 3 // PWM motor pin PWMH
void setup() {
pinMode(Dir1, OUTPUT);
pinMode(PWM1, OUTPUT);
}
void loop() {
digitalWrite(Dir1, HIGH);
analogWrite(PWM1, 100);
}
Does the ground pin on the arduino need to be connect to ground on the logic side of the board? That is the only thing i can think of doing differently.