What is an ACEDUINO? It is the Philippine Arduino clone. See pic 2 and 3.
Quote from Fall Electronics:
If you have already tried you have found out you can't use the ATTiny chips in Arduino. This is because it doesn't have the cores for the chips. A core in this context is a bunch of code and text that tells Arduino which pins are which, how fast the clock can go, how to upload the program, which functions the chip knows... basically it's an in-depth profile of the chip.
I have tried almost every way to program an ATtiny2313 with an Arduino that i could find. For what ever reason none of them ever worked. If you have had such a problem and want to remedy it or are just the curious type then read on.
Step 1: Not Working
Coding isn't old hat for me so all of these seamed rather complicated.
Here is some of the more common ones i had tried that i couldn't get to work: Ladyada, ToasterBotics, Hilow. I imagine these are working for a lot of people but how, i dunno.
In the picture that shows my IDE you can see the list of boards i have to choose from. There is one choice for the ATtiny2313 with no clock options.
When ever i select this option and try to compile say the blink sketch, it will always through an error. Any sketch, any time, any where.
This was one the procedure that i used here. If you can get this to work you are a better man than I.
Step 2: Working
This procedure to me was clear and simple to install.
Now you can see the ATtiny2313 has 2 board choices . As well as many others, but we are only concerned with the ATtiny2313 at this point.
ATtiny2313 @ 8MHz
ATtiny2313 @ 1MHz
Now were getting somewhere.
HERE is the magic answer for me. Its in Spanish but it translates well. When i followed there procedure all the stars aligned and spit out a programmed chip. I was very elated as i have been working on this for some 9 mo or so. Off and on.
Step 3: Setup for Programming
This board setup was made in Fritzing by Fall Electronics.
I did not use the ( Led de estado ). They are status LED's for programming.
There is a 10K ohm pullup resistor on the reset of the chip. Pin 1 to VCC.
There is a 10uF electrolytic capacitor on the reset of the Arduino. From the reset to ground.
These are different resets and they are not connected together in the circuit.
After you are successful with setting up the circuit then the ATtiny2313 files and confirmed they are available in the IDE you will need to set up your Arduino for programming.
In my 3rd picture you can see i am loading the ArduinoISP sketch. This makes the Arduino able to program other chips. Also note at the bottom of the IDE i have the ATmega328 board chosen to load the ArduinoISP sketch into. The complete board name is blocked in the picture so here it is: Arduino Duemilanove w/ ATmega328. My port is on COM2.
Now that you have that completed you can continue to set up to program the ATtiny2313.
If you are using the 1MHz then your selection should look like pic #4.
Pic #5 shows the board that is selected at the bottom of the IDE.
From there you can load the blink sketch or what ever and burn it to the chip.
What pin is the LED connected on in the diagram?
Looks like pin 16 on the chip.
What number do we use in the IDE?
You can consult the chart and get the answer or if you prefer i will do it for you, it is 13.
Same as when you loaded the blink sketch so it doesn't need to be changed.
Step 4: Files
Link to the board core files page or a link to the actual file download .
The file is named is: arduino-tiny-0100-0015. Its a zip file.
Download and unzip it in a folder that you can find again. You should have 2 folders " tiny " and " tools ".
Put those 2 files directly into your hardware file.
This is where my hardware file is:
C\Documents and Settings\WWCServer\My Documents\Arduino1.01\arduino\hardware.
When you open up the last folder the Hardware folder the 2 files you downloaded go directly in there.
Then open up the Arduino IDE you are using and check if the boards are listed.
If so load the blink sketch and compile it. If everything was done correctly at the bottom should be the standard " Done Compiling ".
At the bottom it says the size of the file with no errors shown. See the second picture.
Step 5: Supporting Documents and Information
Any of the numbers on the chip do not correspond to the pin numbers in the Arduino IDE. That i have found.
The numbers you will need to choose in the IDE are from 0 to 16. Those numbers don not reflect the pin numbers of the chip in anyway.
If you have found the relationship between them please let me in on it!
This numbers cross reference i have made is only to get the IDE to correspond to the chip pin you want to use !
So what are they?
OK so here is what i mapped out for the numbers.
If you want to use pin #2 on the chip the IDE needs to be changed to 0
Example: The IDE is like this int led = 13;
To use pin #2 of the chip change it to int led = 0;
Now the remaining numbers are
Chip # IDE # Left side of chip
Chip # IDE # Right side of chip
Most of these pins also have other functions, see the PDF download to learn what they are.
Then of course chip pin #1 is reset
#10 is Ground
Pin # 20 is VCC
I hope this may have helped in some way.
Thanks for looking.