Hi, I am part of this project. Here is the code we are using:
int in1 = 6;
int in2 = 5;
int ena = 7;
void setup(){
pinMode(in1, OUTPUT);
pinMode(in2, OUTPUT);
pinMode(ena, OUTPUT);
}
void loop(){
digitalWrite(ena, HIGH);
digitalWrite(in2, LOW);
digitalWrite(in1, HIGH);
delay(3000);
digitalWrite(in2, LOW);
digitalWrite(in1, LOW);
delay(3000);
}
We checked another of our hbridges (we have four) and that one didn't work either. We didn't want to put any permanent connection on so we're using alligator clips...we' ve double checked that we didn't mix up pins, so we're pretty certain that isn't it.
Our power source is a 12V battery...it's certainly sufficient to drive the motors (we've done it before) and we're just using the 5V pin for the logic power.