Hello!
We are trying to get a motor and a H bridge working together so that the motor can turn forward and backward.
However, it doesn't work, and we don't know why.
Our program and our set-up are copied from this video :
(it's in french but nevermind)
Here is the program :
int in1 = 8;
int in2 = 7;
void setup() {
pinMode(in1, OUTPUT);
pinMode(in2, OUTPUT);
}
void loop() {
digitalWrite(in1, 0);
digitalWrite(in2, 0);
delay(3000);
digitalWrite(in1, 1);
digitalWrite(in2, 0);
delay(3000);
digitalWrite(in1, 0);
digitalWrite(in2, 0);
delay(3000);
digitalWrite(in1, 0);
digitalWrite(in2, 1);
delay(3000);
}
And here is the circuitry:
Thanks for your help! ![]()
EDIT : Thanks to everyone who helped, I don't really know what we did but it works now, so problem solved! ![]()
