Hola, cuando intento subir un código a mi Arduino, la barrita verde de subiendo se queda estática y nunca llega a subirse el programa.
En el apartado de Herramientas, me he asegurado que el modelo de la placa y el puerto COM al que está conectada sean correctos, pero aún así no funciona.
El ordenador también reconoce que está conectada, pero tampoco funciona.
Adjunto el código por si es necesario, cualquier ayuda me serviría muchísimo.
#include <Servo.h>
Servo servoA;
Servo servoB;
Servo servoC;
Servo servoD;
int servoAangle = 0;
int servoBangle = 0;
int servoCangle = 0;
int servoDangle = 0;
String BluetoothValue = "";
void setup()
{
Serial.begin(9600);
servoA.attach(5);
servoB.attach(6);
servoC.attach(7);
servoD.attach(8);
servoA.write(servoAangle);
delay(1000);
servoB.write(servoBangle);
delay(1000);
servoC.write(servoCangle);
delay(1000);
servoD.write(servoDangle);
delay(1000);
}
void loop()
{
if(Serial.available() > 0)
{
BluetoothValue = Serial.readString();
if (BluetoothValue.startsWith("a"))
{
BluetoothValue.remove(0,1);
int BluetoothValue;
servoA.write(BluetoothValue);
}
}
También me dice el siguiente error:
Arduino:1.8.5 (Windows 7), Tarjeta:"Arduino/Genuino Uno"
El Sketch usa 5150 bytes (15%) del espacio de almacenamiento de programa. El máximo es 32256 bytes.
Las variables Globales usan 252 bytes (12%) de la memoria dinámica, dejando 1796 bytes para las variables locales. El máximo es 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xf9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xf9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xf9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xf9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xf9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xf9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xf9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xf9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xf9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xf9
Problema subiendo a la placa. Visita http://www.arduino.cc/en/Guide/Troubleshooting#upload para sugerencias.
Este reporte podría tener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.