ATtiny13 Program HELP

Thread Starter

Chris15

Joined Apr 15, 2009
252
Hello
I am completley new to Programming and have no idea wat im doing

I have a circuit that i want to build in attatched

How do i program this?
id prefer i didnt buy a programmer, i dont have a online account

Can someone explain what i need to do and how to do it to make that circuit work

Thanks, Chris
 

Attachments

iONic

Joined Nov 16, 2007
1,662
The ATTiny13 will do nothing unless you program the chip. A programmer (hardware and software) is necessary. If you tell us what the circuit is meant to do it might be possible for us to suggest an alternative method to build a circuit that will accomplish the same task.
 

AlexR

Joined Jan 16, 2008
732
As iONic said you have to program your ATtiny before it will do anything so the first thing to do is download and install AVRStudio. You can get it at http://www.atmel.com/dyn/Products/tools_card.asp?tool_id=2725 . This an IDE (integrated development environment) program that lets write and debug your programs. It has a built-in support for assembler language and also allows you to plug in high level languages such a C.

Next, if you have any knowledge of C (or even if you don't, you can learn) download and install WinAVR from http://sourceforge.net/projects/winavr/files/. This is a version of the GCC C/C++ compiler adapted for programming AVR devices and ported to Windows.

To get you program into the ATtiny chip you need a programmer.
Take a look at http://electronics-diy.com/avr_programmer.php for a simple programmer that runs through a PC serial port.

And lastly to drive the programmer you need programming software. Take a look here http://www.nongnu.org/avrdude/ at AVRDude for simple programming software.
 

Thread Starter

Chris15

Joined Apr 15, 2009
252
Ok thanks
http://www.instructables.com/id/The-IRritator/

That is wat im making

OK, so honestly i dont understand what ur talking about still but i really want to learn programming and have IC do what i want so i am motivated to try

I have Installed AVR Dude, AVR Wireless Studio, And WinAVR what do i do with them???? what are they??, HELPPP

i also need a programmer, is that just a usb connection i can make, or what is the name of one so i can make it

I plug the ATtiny13 up to it, paste the HEX Code on the AVR program press send of something to the ATtiny13, then its done?

Jus go easy on me, i am a complete beginner at this type of electronics, whenever i saw a programming project i stayed away, now i want to know

Thanks Chris
 
Last edited:

tyblu

Joined Nov 29, 2010
199

kubeek

Joined Sep 20, 2005
5,795
If you have serial or parallel port on your computer, then go make a ponyprog. If you don´t, then you could buy a USB to serial cable and still make the ponyprog, or buy a ready programmer like tyblu suggested.
 

Thread Starter

Chris15

Joined Apr 15, 2009
252
Ok yes i can get to that later, for now

I have the 3 programs, lets assume i have a programmer thats not important now

WHAT DO I DO NOW!!!!!

assume i have the ATtiny13 plugged into my computer

wat happens now, i open which program, paste the hex code, then open whic program, then open the other program, Why do i need 3 programs, what do i do, i am a complete beginner, can someone please explain what i have to do to get that code onto the ATtiny13???????

I want to understand before this thread dies

Chris
 

Thread Starter

Chris15

Joined Apr 15, 2009
252
Yes,
the project i am building has a link in my post on page 1
it is an ATtiny13
i have AVR Studio 4

but how do i put my code on it?
 

kubeek

Joined Sep 20, 2005
5,795
That depends on the programmer. When you compile the project in avrstudio, you get a .hex file as output. Then if your programmer is avr compatible, you click tools -> program avr -> connect and select the right programmer. If it is not compatible, you usually select the .hex file in the programmer´s software.
 

Thread Starter

Chris15

Joined Apr 15, 2009
252
Ok, so
How do i knwo if my programmer is AVR Compatiable if i make it?
Do i search 'How to make an AVR Programmer'

So i only Need AVR Studio 4, open it, connect ATtiny13 to programmer, plug it into computer configure it on AVR Studio 4, then paste the HEX code, press program, then its all done?

Chris
 

Thread Starter

Chris15

Joined Apr 15, 2009
252
I Appreciate all of the comments, but i am still left lost,

could some one please give me a solution to the problem's:

- How do i put the HEX Code i have onto an ATtiny13 chip (Example 'plug the Chip into programmer plug into computer, paste HEX code here, press this button, press this button, etc., take chip out of programmer and use.

- And the Programmer, i am going to make, i have seen many it dont look hard, just a little components a PC Plug, IC Holder etc. But i want to get the programming thing understood and out of the way before we talk about making a programmer

HELP!!
 
Top