I can't upload a program that uses digitalRead, analogRead, and Serial.print on my standalone Arduino, because I get this error:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xbf

However, I have no trouble uploading the blink program to it, which only uses digitalWrite, so it has to do something with the methods mentioned at the start of this post.

You can see the diagram below.


  • 1
    I added a connection between digital pin 9 and ground with an led – Bassusour Apr 9 '18 at 8:06
  • 1
    I uploaded the blink program, changed the dgital pin to 9 in the program, uploaded it and connected an led from digital pin 9 to ground. Then I can see the led is blinking every 1 second. – Bassusour Apr 9 '18 at 8:10
  • 1
    It can do that. Now it turns on/off every 500 ms. – Bassusour Apr 9 '18 at 8:14
  • 1
    Please post (edit your question) the code that does not upload. – Nick Gammon Apr 9 '18 at 8:30
  • 2
    I do not see any decoupling capacitors between Vcc and AVcc and ground, which are absolutely required. – Nick Gammon Apr 9 '18 at 8:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.