ATtiny Programming Shield for Arduino

by Plusea in Circuits > Microcontrollers

69024 Views, 493 Favorites, 0 Comments

ATtiny Programming Shield for Arduino

8493302228_380e8599f7.jpg
8493304702_61922a296b.jpg
8492195179_e657627a55.jpg
This little circuit sits nicely ontop of an Arduino board and lets you quickly plug in an ATtiny chip for programming using the Arduino "language" and IDE to write the code, and the Arduino board as an ISP programmer to upload the code to the tiny chip.

These instructions are also published on our website titled HOW TO GET WHAT YOU WANT.

For instructions on how to use Arduino to program ATtinies, please look at the following links. This Instructable will only explain how to build the programming shield.
Arduino as ISP >> http://www.kobakant.at/DIY/?p=3742
Arduino board as ATtiny programmer (by Dave Mellis) >> http://hlt.media.mit.edu/?p=1706
Programming an ATtiny w/ Arduino 1.0.1 (by Dave Mellis) >> http://hlt.media.mit.edu/?p=1695

There is also a really nice Tiny AVR Programmer now available from Sparkfun (designed by Dave Mellis) that does the same thing even more compactly >> https://www.sparkfun.com/products/11460

Video of "ATtiny Arduino Shield Programmer" in action

Materials and Tools

8492197093_3414541078.jpg
Materials
- Perforated circuit board
- Male and female headers
- Wire
- 10uF capacitor
- Arduino Uno or Duemilanove (with an ATmega328, not an older board with an ATmega168!)
- ATtiny45 or 85

Tools
- Cutter knife
- Cutting mat
- File
- Wire cutters and stripper
- Soldering iron
- Helping hand

Cut Circuit Board to Shape

8493258212_c53d7a0725.jpg
8493255878_fd83cfec93.jpg
8500631112_400870c271.jpg
Cut a piece of perforated circuit board to size (see illustration) and file the edges.

Solder Male Headers

8493260622_aba5617b2a.jpg
8493262462_fcf0d0918c.jpg
8493264682_5685231a75.jpg
8493266670_83e3d2bf39.jpg
8500631112_400870c271.jpg
Take two rows of four male headers and solder them to the circuit board, but with the solder connections on the unintended side of the circuit board. So solder them you will need to hold them away from the circuit board a bit so that you can make the solder connection. Once you've got the first pin soldered the rest will be easier.

Video: Soldering headers to perforated circuit board:


Before continuing, make sure the board with headers fit into your Arduino.

Disconnect Circuit Traces

8492169151_e8e0462d6c.jpg
8493271562_2f0ac2ec3f.jpg
8492169151_e8e0462d6c.jpg
8500631112_400870c271.jpg
Disconnect the line traces as follows (see illustration and video) using a cutter knife

Video: Cutting connection on a perforated circuit board:

Solder Female Headers

8493279038_9757593bea.jpg
8493282030_0e575dab68.jpg
8493280338_b15bb16293.jpg
8492174315_60046d78bc.jpg
8492176653_bc8a37ff66.jpg
8500631112_400870c271.jpg
Insert the female header pins and use an ATtiny chip as reference to make sure you get the spacing right. Then solder.

Solder Circuit

8492184777_ea018f69a6.jpg
8492186263_459d29701b.jpg
8492187813_d7873002c9.jpg
8493290170_acff0cab12.jpg
8493293698_aae449d7f3.jpg
8492191641_1c94c9f19b.jpg
8200895702_eb80bd1168.jpg
8191599432_3e2508f44d.jpg
8500631112_400870c271.jpg
Use jumper wire or cut wire to length and strip either end and start to populate the circuit board with wires to make the connections between the pins of the Arduino and the pins of the ATtiny. Use illustration and the following information for reference. Bend wires on bottom side to stop them falling out before you solder them.

Wiring your ISP connection
ATtiny        -----  Arduino
Pin PB2 (SCK)   -----  Pin 13
Pin PB1 (MISO)  -----  Pin 12
Pin PB0 (MOSI)  -----  Pin 11
Pin PB5 (Reset) -----  Pin 10
Plus (VCC)    -----  +5V
Minus (GND)   -----  GND

10uF Capcitor:
Arduino pins: RESET ----||---- GND

<a href="http://hlt.media.mit.edu/?p=1706"><img src="http://farm9.staticflickr.com/8344/8191599432_3e2508f44d.jpg"></a>



When you've finished making all the connections illustrated in the diagram (including the capacitor) then you are DONE!

Upload Your Program!

8493309278_d3162524b9.jpg
8492199239_c0613c41f5.jpg
Now plug in your Arduino and follow the instructions in the Arduino as ISP post linked to at the top of this page.

Video: Using ATtiny shield to program an ATtiny to play a song