Hi again! I told you I have nothing better to do right now since I'm on my lunch break. My original title for this was, Arduino + ProtoShield = ATtiny45 Programmer, but when I was putting in the tags, ProtoProgammer just jumped out at me, so I've updated the title.
So, since September I've been toying on and off with building my own time-lapse camera rig for my car. The original inspiration came from an article on
Hackaday. That particular project is almost to where it can be usable I think, so I'll most likely post about it tomorrow or the next day.
What I want to talk about is how I program the Attiny. Now there is a lovely video tutorial by
Make, and they reference a great article over at
MIT which I've linked in for you. But I've got to tell you I got rather tired of swapping out jumpers and wires between what I was working on, so I could reprogram the Attiny.
When I bought my Arduino, I also picked up a breadboard, and a proto-shield. In retrospect I should have gotten a much larger breadboard, but I figure I would have gotten annoyed in much the same way so it all works out in the end.
The proto-shield sat on my bench for months, I couldn't really think of anything interesting to do with it. That is until quite recently.
There is most likely a better way to pick where to place things, but I decided that placing the socket centrally on the board made the most sense. Here you can see the proto-shield, and an 8 pin socket that will hold the Attiny45.
I actually took quite a few pictures but decided that it wasn't terribly important to get across what I was doing here. I basically followed the diagram from the MIT site and ran wires from the Uno, to the corresponding pins on the Attiny.
Here you can see it's all done. When I first got my Attiny's in the mail I was very excited. Then I panicked because I didn't have the 10uf cap that the guide said you needed. Then I remembered I had sacrificed a VHS recorder and buried on the very expansive board was a single 10uf cap!
For the record, that is the first item I've salvaged from another device to use for something else. I was pretty excited.
Here is a nice top-down view of the board. You can see power going to pin 5, and ground going to pin 4. The programming lines running from pin 10-13 on the Arduino, pin 1, 6-8 on the Attiny. This actually worked quite well, I had run into a problem initially but it turns out that somehow the baud rate on my Uno was different from what was specified in the programmer.txt file. When I set those both to the same values I was able to connect this shield to my Uno, and then program my Attiny.
I don't know if any more detail is needed than this. Here are the materials I used, most of them I purchased at Radioshack.
Arduino Uno
Arduino ProtoShield
IC socket
Attiny45