avrdude: error: usbtiny_receive: (expected 4, got -5)

I am inexperienced when it comes to using Arduino IDE. As a result I am using the code provided at the below website.

I am utilizing a rotary encoder with an Adafruit Trinket to create a volume control knob for my computer.

Every time I try to upload the code to the Trinket via Arduino IDE I recieve the below error message:

avrdude: error: usbtiny_receive: (expected 4, got -5)

Relevant Information:

  • Using Windows 10, 64-Bit
  • Downloaded latest version of Arduino IDE
  • I downloaded the latest drivers for the Trinket via Adafruit's website.
  • Added latest Adafruit AVR Boards package via Boards Manager
  • Tool Settings in Arduino IDE
  • Board: "Adafruit Trinket (ATtiny85 @16MHz)"
  • Port: COM1
  • Programmer: "USBtinyISP"

Does anyone have an idea how to resolve this issue? Any help would be greatly appreciated.

robinsonn2:
I am inexperienced when it comes to using Arduino IDE. As a result I am using the code provided at the below website.

Add a Mute Button | Trinket USB Volume Knob | Adafruit Learning System

I am utilizing a rotary encoder with an Adafruit Trinket to create a volume control knob for my computer.

Every time I try to upload the code to the Trinket via Arduino IDE I recieve the below error message:

avrdude: error: usbtiny_receive: (expected 4, got -5)

Relevant Information:

  • Using Windows 10, 64-Bit
  • Downloaded latest version of Arduino IDE
  • I downloaded the latest drivers for the Trinket via Adafruit's website.
  • Added latest Adafruit AVR Boards package via Boards Manager
  • Tool Settings in Arduino IDE
  • Board: "Adafruit Trinket (ATtiny85 @16MHz)"
  • Port: COM1
  • Programmer: "USBtinyISP"

Does anyone have an idea how to resolve this issue? Any help would be greatly appreciated.

I faced the same issue, still facing that, no solution yet. Psiphon

google