Hi everybody,
I'm writing because I'm having some problem flashing the USBasp I bought.
First of all, I have Ubuntu, so from my terminal I installed avrdude as such:
sudo apt-get install avrdude avrdude-doc binutils-avr avr-libc gcc-avr gdb-avr
Then I took my USBasp and try the JP2 pinouts to shortcircuit them and set it to self-programming mode.
Here it is my USBasp, I shortcircuited the two pins over "JP2":
USBasp front: http://i.imgur.com/ns7oEva.png
USBasp back: http://i.imgur.com/MC4AHtu.png
USBasp Atmega8A AU 1502: http://i.imgur.com/yr7Dc2k.png
Then I plugged my Arduino to my PC, uploaded the ArduinoISP sketch (File->Examples->ArduinoISP->ArduinoISP sketch), then I set my Arduino as AVRISP mkII (Tools->Programmer->AVRISP mkII) and plugged my USBasp to the Arduino board as such:
Arduino USBasp
5v VTG (pin 2)
GND GND (pins 8-10)
13 SCK (pin 7)
12 MISO (pin 9)
11 MOSI (pin 1)
10 RESET (pin 5)
Here's the pic, showing the pins: http://goo.gl/VXExvO
Once I did that, I wanted to flash the ".hex" file I downloaded from here USBasp - USB programmer for Atmel AVR controllers - fischl.de into the USBasp Atmega8.
So I opened up my terminal, I changed directory to /firmware inside the /bin directory, and wrote the following line:
sudo avrdude -c arduino -p m8 -P /dev/ttyACM0 -U flash:w:usbasp.atmega8.2011-05-28.hex
And here's the error the terminal said I came out with: http://i.imgur.com/vs9rSmN.png
After that it was suggested me to put a 10uF capacitor between GND and RESET pins in order to disable auto-reset on the UNO, like this:
Circuit: http://i.imgur.com/P50Od9b.png
Schematic: http://i.imgur.com/WXDTRSt.png
But, since I plugged the 10uF capacitor, I got this error:http://i.imgur.com/fDQXUFy.png
Here's the sketch I uploaded on the Arduino UNO: // ArduinoISP// Copyright (c) 2008-2011 Randall Bohn// If you require a lice - Pastebin.com
The folder tree of the file I'm using: http://i.imgur.com/xfb1C86.png
The path I use: http://i.imgur.com/iG130Cm.png
The folder is this one if you want to download it: https://www.sendspace.com/file/pnsdvj
File path: /bin/firmware/usbasp.atmega8.2011-05-28.hex
Thanks very much for the help!