Hello, I created a homemade H bridge to control a motor but, when I tried to use it in app labs, the motor did not work. Previously I tried to do it in a regular arduino with the same programming( simple as turnin a pin on and turnin the other one on while you turn off the fisrt one) and it actually worked but I really wonder why when I use app labs for this one it does not work because with the normal IDE of arduino it actually worked out. Also my arduino uno Q it´s working well because I tried this same code within arduino IDE in there and the uno Q worked out that programming so I wonder what happened there?
My code is really simple and this is my code:
// puente H para rueda
int mov_1 = 2;
int mov_2 = 3;
void setup() {
// put your setup code here, to run once:
pinMode(mov_2,OUTPUT);
pinMode(mov_1,OUTPUT);
}
void loop() {
// Direccion 1
digitalWrite(mov_1,HIGH);
delay(5000);
digitalWrite(mov_1,LOW);
delay(10000);
digitalWrite(mov_2,HIGH);
delay(5000);
digitalWrite(mov_2,LOW);
delay(10000);
}
