Códigos

#include <Servo.h>

Servo servo1; 
Servo servo2; 

void setup() {
servo1.attach(6);   
servo2.attach(9);   
}

void loop() {
/*servo1.write(180);  //0 para gripper cerrado
delay(5000); 
servo1.write(90);  //50 para gripper abierto
delay(5000); 
servo1.write(45);  //80
delay(5000); */
servo1.write(50);  //100
delay(5000);
}

void setup() {
  // put your setup code here, to run once:
pinMode(10,HIGH);
}

void loop() {
  // put your main code here, to run repeatedly:
digitalWrite(10,HIGH);
delay(1000);
digitalWrite(10,LOW);
delay(1000);
}

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Compartir
Carrito de compra