Skip to content
sabinoj edited this page Oct 29, 2014 · 1 revision

What is USB ISP:

Where can I purchase one?

The preferred USB ISP programmer is the SainSmart USB ISP Programmer for ATMEL AVR ATMega ATTiny 51 Board the unit costs only around $9.00 (as of October 30th, 2014) and has free two day shipping with Prime. And the programmer does come with the ribbon cable.


How do I upload my code to the microcontroller through the USB ISP?

Wiring it up:

The first thing we need to do to program our microcontroller is to wire it up to our programmer. Using the datasheet of your microcontroller connect the respective pins together following the provided diagram.

Diagram to be provided.

Uploading the code:

For both Windows and Linux (we have not tested it on Apple devices as of October 30th, 2014) the hex file is uploaded using AVRDUDE in terminal.

sudo avrdude -c USBasp -p [Microcontroller] -U flash:w:[The hex file]:i

Here is an example of the command to upload the compiled code My_Code.hex to an Atmega8 microcontroller.

sudo avrdude -c USBasp -p atmega8 -U flash:w:My_Code.hex:i