標題: 藍芽自走車無法燒入成功 [打印本頁] 作者: a87075172 時間: 2015-10-30 12:10 標題: 藍芽自走車無法燒入成功 我要做一個藍芽自走車,以下次我的程式:
int MotorRight1=5;
int MotorRight2=6;
int MotorLeft1=10;
int MotorLeft2=11;
void loop()
{
char val = Serial.read();
Serial.write(val);
if (-1 != val) {
if ('W' == val)
go();
else if ('A' ==val)
left();
else if ('D' == val)
right();
else if ('S' == val)
back();
else if ('Q' == val)
stop();
delay(500);
}
else
{
//stop();
delay(500);
}
}
*(範例是否要變更為ArduinoIPS?)
燒入之後出現錯誤訊息
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00作者: a87075172 時間: 2015-10-30 12:15