Hooking up USBasp programmer to the ATTiny85

After putting off the ESPClock project for quite a looooong while, I finally decided to pick up the project again.

But the Arduino Uno board had been siphoned off by my eldest son for one of his science projects, so I decided to pick up a cheap USPasp clone off eBay to help with programming the ATTiny85.

First off is to connect the 2x5 ISP header to the ATTiny85. It was a bit confusing at first, but after some research, here are the connections required.
I plugged the wires into the 10-pin ISP header, and soldered the other ends to two 1x4 male headers in the correct order. That way, I can just plug the male headers into the breadboard alongside the ATTiny85 quite easily to start programming it without too much fiddling.

I had to strengthen the soldering with some hot glue to prevent the wires from breaking off the headers when plugging them in and out repeatedly. Works a treat so far.

Then choose "USBasp" as the programmer under the Arduino IDE:

I was getting this error when trying to upload a test "Blink" sketch:
avrdude: error: could not find USB device with vid=0x16c0 pid=0x5dc vendor='www.fischl.de' product='USBasp'
This was resolved by the solution given here:

  1. Downloading Zadiag from http://zadig.akeo.ie/
  2. Start zadig
  3. Options > List all devices
  4. Select USBasp from the drop down menu
  5. Select libusbK(v3.0.7.0) driver
  6. Click Install

I was then able to upload the "Blink" sketch and confirms that the USBasp programmer works as advertised.


Popular posts from this blog

Adding "Stereo Mixer" to Windows 7 with Conexant sound card

Hacking a USB-C to slim tip adapter cable to charge the Thinkpad T450s

Attiny85 timer programming using Timer1