#include Servo Esc; #define pinEsc 9 int pwm_esc = 0; void setup() { Serial.begin(9600); Esc.attach(pinEsc); Esc.writeMicroseconds(1000); Serial.println("iniciando"); delay(2000); } void loop() { while(Serial.available() > 0) { pwm_esc = Serial.parseInt(); if(Serial.read()=='\n') { Esc.writeMicroseconds(pwm_esc); Serial.print("Valor ESC: "); Serial.println(pwm_esc); } delay(20); } } //SOLO Nueva Linea /n //Caviar min=1150/max=1900 //Para disco duro test1 //min 1620 //max 1900