Professional Documents
Culture Documents
int degree=0;
String words;
void setup() {
Serial.begin(9600);
Serial.println("Servos - Arduino");
//servo1.attach(3); //Default
servo1.attach(3,600,2400);
servo1.write(0);
void loop() {
delay(5);
if (words.length()>0){
Serial.println(" Grados");
delay(2);
while(servo1.read()<degree-3)
{Serial.println("Desplazando...");}
//------------------------------------
//Función cíclica
//------------------------------------
int degree=0;
servo Int = 3;
String words;
void setup() {
Serial.begin(9600);
Serial.println("Servos - Arduino");
//servo1.attach(3); //Default
servo1.attach(3,600,2400);
servo1.write(0);
void loop() {
delay(5);
if (words.length()>0){
Serial.println(" Grados");
delay(2);
while(servo1.read()<degree-3)
{Serial.println("Desplazando...");}