Programming a ATtiny2313 with Aceduino

Programming a ATtiny2313

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.

Programming a ATtiny2313

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.Programming a ATtiny2313 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.


Read more: Programming a ATtiny2313 with Aceduino

Leave a Comment

Your email address will not be published. Required fields are marked *