Buenas noches ojala y alguien pueda ayudarme
lo que pasa es que estoy haciendo una aplicación desde el celular para encender y apagar leds con arduino desde bluetooth, al compilar el código no me lanza ningún error pero al tratar de subirlo a la placa me lanza lo siguiente:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x4d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x4d
espero y puedan atudarme. Muchas gracias.
Codigo:
void setup()
{
pinMode(8,OUTPUT);
Serial.begin(9600);
}
void loop()
{
while (Serial.available())//Declaramos un sentencia, Mientras el puerto Serial este disponible se empieza el ciclo
{
char dato= Serial.read(); //Declaramos una variable de tipo carácter y Se lee la variale enviada desde el Bluetooth.
digitalWrite(8,LOW);
switch(dato)
{
case '1': //Si en el caso de ser A la varible enviada, entonces:
{
digitalWrite(8,HIGH);//La señal será alta, encenderá el LED.
Serial.println("Led encendido");//Se mostrará un mensaje.
break;//El caso se detiene.
}
case '2': //Si en el caso de ser A la variable enviada, entonceS:
{
digitalWrite(8,LOW);//la señal será baja por lo que el LED estará apagado.
Serial.println("Led apagado");//Se mostrará un mensaje.
break;
}
}
}
}