Instructables

Arduino ATtiny2313 Programming Shield

FeaturedContest WinnerContest Winner
Picture of Arduino ATtiny2313 Programming Shield
DSCN3474.JPG
DSCN3485.JPG
DSCN3490.JPG
DSCN3494.JPG
Today, I made a small 3x3x3 LED cube with an ATtiny2313 that I had from about 2 weeks ago. Whenever I had to reprogram the LED cube when I thought of more awesome patterns, I had to get out my breadboard and then wire up everything again referring to pin-outs of ATtiny2313 and make sure everything is connected right and then finally upload the new code.

So I went on to eBay and amazon searching for something to program these chips as I was planning on using these chips a lot in the future. After spending about an hour I just realized I was wasting my time as there was no way I was going to spend about 20-30 dollars on a simple shield.

After thinking for a bit, I decided to make a simple and easy to make, ATtiny2313 programming shield, after I made it, all I needed to do to recode any of my attinys' is to just put it in the programming shield and just in a few clicks you have your code uploaded! No need to worry if everything is wired right and make sure there are no short circuits or anything that can short out the chip and fry it or anything else of that sort.

So now in this instructable I will show you how to build one of these shields for yourself!
It costs almost nothing and takes only about 30mins or so to make it.

So lets get started!

 
Remove these adsRemove these ads by Signing Up

Step 1: Materials

Picture of Materials
Materials required for this project;
  1. Protoboard
  2. 10 Micro Farad Capacitor (or similar value)
  3. 2 LED's
  4. A couple of wires
  5. A single row pin header strip
  6. A single row female pin header strip
Tools required for this project;
  1. Soldering Iron
  2. Solder
  3. Glue Gun (Or just good glue)





fatalwir7 months ago
I've done my shield, so there's a photo. :)
20131211_001.jpg
israelg fatalwir5 months ago

Nice, can you upload the PCB design for all?

fatalwir israelg5 months ago

Here it is: http://upload.fatalwir.cz/files/2313shield.pcb

I've made it in DesignSpark PCB.

israelg fatalwir5 months ago

thank you

vishalapr (author)  fatalwir7 months ago
Wow :D this looks amazing, a whole lot neater and more marketable, Great job.
bsairam10 months ago
can u say that wat files i have to be download and how to instal for showing that boards in tools menu
vishalapr (author)  bsairam10 months ago
You can download the files here:
http://code.google.com/p/arduino-tiny/

This is what the instructions in the read me say:

Ensure the Arduino IDE is NOT running.

* Download the Arduino-Tiny archive (ZIP-file).

* Locate the Arduino Sketch folder. This is the folder where the Arduino IDE
stores Sketches.

* Ensure the "hardware" folder exists under the Arduino Sketch folder. For
example, if the Arduino Sketch folder is...

C:\Projects\Arduino\

Ensure this folder exists...

C:\Projects\Arduino\hardware\

* Extract the contents of the archive into the "hardware" folder. For example,
if the Arduino Sketch folder is...

C:\Projects\Arduino

After extracting, the following files should exist...

C:\Projects\Arduino\hardware\tiny\boards.txt
C:\Projects\Arduino\hardware\tiny\programmers.txt

C:\Projects\Arduino\hardware\tiny\bootloaders\empty\empty2313at1.hex
C:\Projects\Arduino\hardware\tiny\bootloaders\empty\empty2313at8.hex
C:\Projects\Arduino\hardware\tiny\bootloaders\empty\empty25at1.hex
C:\Projects\Arduino\hardware\tiny\bootloaders\empty\empty25at8.hex
C:\Projects\Arduino\hardware\tiny\bootloaders\empty\empty45at1.hex
C:\Projects\Arduino\hardware\tiny\bootloaders\empty\empty45at8.hex
C:\Projects\Arduino\hardware\tiny\bootloaders\empty\empty84at1.hex
C:\Projects\Arduino\hardware\tiny\bootloaders\empty\empty84at16.hex
C:\Projects\Arduino\hardware\tiny\bootloaders\empty\empty84at8.hex
C:\Projects\Arduino\hardware\tiny\bootloaders\empty\empty85at1.hex
C:\Projects\Arduino\hardware\tiny\bootloaders\empty\empty85at16.hex
C:\Projects\Arduino\hardware\tiny\bootloaders\empty\empty85at8.hex

And the following folder should contain the Arduino-Tiny core...

C:\Projects\Arduino\hardware\tiny\cores\tiny\

* Create a new file named "boards.txt" in the tiny directory. Following from
the examples above, the file would be here...

C:\Projects\Arduino\hardware\tiny\boards.txt

* Open the "boards.txt" file and the "Prospective Boards.txt" file using your
favourite text editor.

* Copy board entries of interest from "Prospective Boards.txt" to "boards.txt"
(or copy the entire contents of "Prospective Boards.txt" to "boards.txt").
Board entries are delineated by a long line of pound-signs.

* In the "boards.txt" file, change the "upload.using" entries to the
appropriate value for your setup.

* Save and close "boards.txt". Close "Prospective Boards.txt".

* Start the Arduino IDE and ensure the new boards of interest are listed under
the [Tools] [Board] menu...

"ATtiny84 @ 16 MHz (external crystal; 4.3 V BOD)"
"ATtiny85 @ 8 MHz (internal oscillator; BOD disabled)"
etcetera
bsairam vishalapr10 months ago
Thank u very very much ur reply is very useful to me
bsairam10 months ago
Please help anybody
Hi i have a problem here i did everything you said but im getting an error saying that arduino.h is not found and a whole lot of other errors like delay not defined etc..!
Im pretty sure that i did everything correctly and did not delete or change the arduino.h as it is till there..!
Pls help..And good to see young Indians like you doin this with arduino ( im from kerala , 15 yrs)
vishalapr (author)  francisroan1 year ago
Can you post the entire error by either print screen or typing because I am not really sure why that is happening. For the arduino.h is not found error I got the same when I used arduino 1.0.1 use a newer or older version from the one you are using. Preferably the 1.0.4,
Post back if it worked
how many VOLTS capacitor are you using here???
vishalapr (author)  ybsocurious1 year ago
Im not sure if capacitors are rated in volts, but I used a 10 micro farad capacitor, you can use any within 1-10 micro farad range, hope this helps.
Its okay man i did some other doodoos and the thing worked..!

Thanks anyway.!
vishalapr (author)  francisroan1 year ago
Can you post a picture of it?
I would be happy to see it :D!
Of what the hardware..?oh its all messy i did it on a breadboard because im busy with a science exhibition at school..Im thinkin of making a automatic arduino GSM intruder system (AAGIS 4 short)...
If u insist illo send u a pic.! ;)
how many VOLTS capacitor are you using here???
m.moumni1 year ago
Cool, thank you! keep up the good work :) when i have something ready i will post here
vishalapr (author)  m.moumni1 year ago
That would be great!
Thanks!
clubmenex1 year ago
This is so useful when you need to program lots of chips either for like small businesses or just for doing it for others like friends etc, I usually program about 20-30 chips whenever I am asked to by the club members I belong to and this helps tremendously as I dont need to check for connections or anything and its just a plug and play type
Thanks for the great instructable!
vishalapr (author)  clubmenex1 year ago
Great to hear that the instructable helped you out, may I ask which club do you belong to? Is it something similar to the MakerShed?
You should check out OSHpark to get a PCB made. That is where I get mine made and I am pretty sure they ship internationally. 
vishalapr (author)  Hammock Boy1 year ago
I even know how to use Eagle so it would be pretty easy to get a PCB made but parents don't want to spend 10$ on a PCB.... :(
Edgar1 year ago
I remember when programming a thing like that was a pain...
Gone to my Blog:
http://faz-voce-mesmo.blogspot.pt/2013/05/mais-um-material-da-shapeways-arduino.html
vishalapr (author)  Edgar1 year ago
Thx! I used to program these chips before but always ended up getting either the wiring or the connections were loose or some sort of problem but now its just plug and play type :)

Thx for the post on the blog
Glad you've liked it.
Tabasko1 year ago
i would love something similat to program 18 pin pic like de 16f628a
vishalapr (author)  Tabasko1 year ago
what pic is the 16f628a? is it an ATtiny chip or something else? I googled the part number and didnt get an answer, if I have them with me and I know how to use them then I will probably make a shield for it as well :)
Yea I have seen them be used in a lot of things and I thought it was awesome but I didn't have any at the time I was making this shield so I just made it with some headers and it doesn't seem to be hard to use and does not damage the chip, It fits in easily with no force applied :)
Transmisso1 year ago
Great Tutorial, and simple easy to make project :)
Thx
vishalapr (author)  Transmisso1 year ago
Glad you liked it!
That look really neat :)
How did you make that wiring diagram though?
vishalapr (author)  anoop vanguru1 year ago
Thanks!
The wiring diagram was made by using Fritzing
(Its a free program which helps you make pin-outs with ease)
EpicLazer1 year ago
Only one thing to do now, search forever to find where I put my ATtiny's I ordered ages ago.
Thanks for the tutorial
vishalapr (author)  EpicLazer1 year ago
I ought to do the same as well lol, I remember buying some ATtiny's a while ago but don't know where they are