Can't upload code to arduino nano

I'm trying to upload code to my arduino nano to make a servo rotate, but I'm getting this error : This only happens when using the old bootloader, but when I use another one, I dont get the error but the servo doesn't move. avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xa5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xa5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xa5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xa5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xa5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xa5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xa5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xa5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xa5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xa5 Failed uploading: uploading error: exit status 1 My code : #include<Servo.h> Servo servo; void setup() { servo.attach(9); } void loop() { servo.write(90); }
13 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Uppercut
UppercutOP2y ago
Yes, it took a while to upload, just to give me the same error.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Uppercut
UppercutOP2y ago
My bad, I meant that it said "Uploading..." for a long time and gave me the error.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Uppercut
UppercutOP2y ago
Yes, and at step 4, only the "power" led lit up, but I didnt know where to ask further assistance at
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Uppercut
UppercutOP2y ago
Ok, Thanks ! I will go through all of the steps one more time just to be sure and see if it indeed is that. Also, how do I know if I have chosen the right COM port ? In the Tools > port tab I have 3 options : COM 1, COM 3 and COM 4.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Uppercut
UppercutOP2y ago
But where does it tell me ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Uppercut
UppercutOP2y ago
Welp, alright then. It's probably dead. Thanks for the help !
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?