Reply to topic  [ 10 posts ] 
USBTinyISP in circuit AVR Atmel programmer (HCARDU0002) 
Author Message
Site Admin

Joined: Sun Aug 05, 2012 4:02 pm
Posts: 647
Post USBTinyISP in circuit AVR Atmel programmer (HCARDU0002)
Image


This USBTinyISP programmer is ideally suited for in circuit programming of AVR devices or for reflashing bootloaders onto Arduino based products. It includes a 6 and 10 pin SPI interface and cables. The 6 pin interface is designed to connect directly to the 6 pin ICSP found on Arduino boards such as the Uno, Mega, Nano, etc. This board also works great with the Arduino development environment, AVR studio and avrdude.


Programmer includes:

1x USBTinyISB compatible programmer

1x 6 way IDC cable
1x 10 way IDC cable

Order Yours Here.

FAQ:

What are the pinouts on the ICSP connectors?

6 pin header:
1......MISO
2......VCC
3......SCK
4......MOSI
5......RST
6......GND

10 pin header:
1......MOSI
2......VCC
3......N/A
4......GND
5......RESET
6......GND
7......SCK
8......GND
9......MISO
10....GND


Image


FAQ:

How do I use this programmer with AVR Studio?
You can program a device from within AVR Studio via the AVRDude command line tool. You will need to download this program separately to AVR Studio. A link to the official site can be found at the bottom of this post. Once downloaded you should have a ZIP file containing an executable called AVRDude.exe. Unzip this to somewhere convenient such as c:\AVRDude\

In AVR Studio go to Tools-> External Tools

You can then add a command line to AVRDude for whatever devices you wish to program. For example if you wish to program an ATMega328p add the following:

Title: AVRDude ATmega328p
Command: C:\avrdude\avrdude.exe
Arguments: -c usbtiny -p atmega328p -U flash:w:$(TargetDir)$(TargetName).hex:i
Initial directory:


You can also tick the optional ' Use Output window' tick box. Save this and under the tools menu you will now see an entry for the external tool you have just added. In this case 'AVRDude ATmega328p'. Selecting this entry will program your device with the compiled HEX file in your currently open project.



External Tools:
AVRDude can be downloaded from the official project site here: http://savannah.nongnu.org/projects/avrdude

Drivers:
Attachment:
HCARDU0002_ISP_V1_12_Win32_Driver.zip
Attachment:
HCARDU0002_ISP_V1_12_Win64_Driver.zip


You do not have the required permissions to view the files attached to this post.


Wed Mar 13, 2013 3:55 pm
Profile

Joined: Sat Mar 23, 2013 10:53 am
Posts: 1
Post Re: USBTinyISP in circuit AVR Atmel programmer (HCARDU0002)
I've been using this with AVRDude on Ubuntu 12.x to program both an Arduino Mega2560 board and bare ATtiny85 ic's using the command line...

Code:
    avrdude -c usbtiny -C /etc/avrdude.conf -p m2560 -U flash:w:myprogram.hex


m2560 = Arduino Mega2560 board


Hope this helps some people..


Thu Apr 25, 2013 3:45 pm
Profile

Joined: Fri Dec 12, 2014 11:40 am
Posts: 4
Post Re: USBTinyISP in circuit AVR Atmel programmer (HCARDU0002)
:?: I have just bought one of these programmers from Hobby Components. I have loaded the drivers in Win7 but AVR studio 6 does not see this programmer, how do I make it see it.


Fri Dec 12, 2014 10:38 pm
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 640
Post Re: USBTinyISP in circuit AVR Atmel programmer (HCARDU0002)
You can use the programmer by adding it as an external tool (Tools ->External tools). You can then pass a command line to AVR dude by adding an external tool. For example to program an ATMega32 with your YourProject.hex:

Title: AVRDude ATmega32

Commands: avrdude.exe

Arguments: -c usbtiny -p atmega32 -U flash:w:YourProject.hex

Initial directory: C:\Users\Andrew\Documents\Atmel Studio\6.1\YourProject\YourProject\Release

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Sun Dec 14, 2014 6:57 pm
Profile

Joined: Fri Dec 12, 2014 11:40 am
Posts: 4
Post Re: USBTinyISP in circuit AVR Atmel programmer (HCARDU0002)
:? Many thanks Andrew, some help but...
New to me, what/where is AVRdude? or do I substitute this line for AVR studio.exe?


Mon Dec 15, 2014 6:37 pm
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 640
Post Re: USBTinyISP in circuit AVR Atmel programmer (HCARDU0002)
Sorry, I forgot that AVRDude doesn't come as as part of AVR Studio. I copied it over from my copied of the Arduino IDE. If you have the Arduino IDE already installed then just link to the version of AVRDude in C:\arduino\hardware\tools\avr\bin

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Tue Dec 16, 2014 7:44 am
Profile

Joined: Fri Dec 12, 2014 11:40 am
Posts: 4
Post Re: USBTinyISP in circuit AVR Atmel programmer (HCARDU0002)
:roll: Thanks. I will try and sort this out from here.
Very confusing, need Arduino software, AVRdude and Atmel studio just to programme a chip, wow surprising since it does state that this programmer works with each one of these.
I'll spend a little more time on it but it's not worth any more than that. I'll stick to my PIC's.


Tue Dec 16, 2014 8:58 pm
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 640
Post Re: USBTinyISP in circuit AVR Atmel programmer (HCARDU0002)
Just to clarify my last comment, you don't need the Arduino IDE, it's just if you already have it then you have a copy of AVRDUDE on your system. You can download AVRDUDE directly from the downloads area of the official project site here:

http://download.savannah.gnu.org/releases/avrdude/

Additionally when you add AVRDUDE to the external tools in AVR Studio you should be able to use the variables
$(TargetDir) and $(TargetName) to automatically specify your project path and hex file location. For example if you have downloaded and saved AVRDUDE to a folder on your C drive just add something like this to external tools:

Title: AVRDude ATmega328p
Command: C:\avrdude\avrdude.exe
Arguments: -c usbtiny -p atmega328p -U flash:w:$(TargetDir)$(TargetName).hex:i
Initial directory:

So for the above example you can then just program your device directly from AVR Studio by selecting Tools->AVRDude ATmega328p

I'm going to update the first post to reflect this.

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Wed Dec 17, 2014 11:40 am
Profile

Joined: Fri Dec 12, 2014 11:40 am
Posts: 4
Post Re: USBTinyISP in circuit AVR Atmel programmer (HCARDU0002)
:) Ok many thanks for all of your advice on this matter, appreciated.


Wed Dec 17, 2014 11:39 pm
Profile

Joined: Wed Oct 15, 2014 10:29 am
Posts: 1
Post Re: USBTinyISP in circuit AVR Atmel programmer (HCARDU0002)
Hi Guys,

If it helps, this is the connector needed, in case you are building a AVR interface and you need a ISP connector:

AMPHENOL T821106A1S100CEU Wire-To-Board Connector, Vertical,
2.54 mm, 6 Contacts, Header, T821 Series, Through Hole, 2 Rows.

Cheers.

PS: found it here :) http://hobbycomponents.com/connectors/1 ... r-male-pcb


Tue Mar 28, 2017 10:08 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Thank you to phpBB.com & phpBB.ro.
Design created by Florea Cosmin Ionut.
© 2011 All contents of this site are © Hobby Components LTD