{"id":3996,"date":"2013-02-20T20:37:36","date_gmt":"2013-02-20T19:37:36","guid":{"rendered":"http:\/\/www.kobakant.at\/DIY\/?p=3996"},"modified":"2013-02-23T14:48:15","modified_gmt":"2013-02-23T13:48:15","slug":"attiny-programming-arduino-shield","status":"publish","type":"post","link":"https:\/\/www.kobakant.at\/DIY\/?p=3996","title":{"rendered":"ATtiny Programming Shield"},"content":{"rendered":"<p>This little circuit sits nicely ontop of an Arduino board and lets you quickly plug in an ATtiny chip for programming using the Arduino &#8220;language&#8221; and IDE to write the code, and the Arduino board as an ISP programmer to upload the code to the tiny chip.<!--more--><\/p>\n<p>>> <a href=\"http:\/\/www.instructables.com\/id\/ATtiny-Programming-Shield-for-Arduino-1\/\">Instructable<\/a><\/p>\n<p><img src=\"http:\/\/farm9.staticflickr.com\/8509\/8493302228_380e8599f7.jpg\"><\/p>\n<p>For instructions on how to use Arduino to program ATtinies, please look at the following links. This post will only explain how to build the programming shield.<br \/>\nArduino as ISP >> <a href=\"http:\/\/www.kobakant.at\/DIY\/?p=3742\">http:\/\/www.kobakant.at\/DIY\/?p=3742<\/a><br \/>\nArduino board as ATtiny programmer (by Dave Mellis) >> <a href=\"http:\/\/hlt.media.mit.edu\/?p=1706\">http:\/\/hlt.media.mit.edu\/?p=1706<\/a><br \/>\nProgramming an ATtiny w\/ Arduino 1.0.1 (by Dave Mellis) >> <a href=\"http:\/\/hlt.media.mit.edu\/?p=1695\">http:\/\/hlt.media.mit.edu\/?p=1695<\/a><\/p>\n<h3>Step-by-Step Instructions<\/h3>\n<h4>Materials<\/h4>\n<p>&#8211; Perforated circuit board<br \/>\n&#8211; Male and female headers<br \/>\n&#8211; Wire<br \/>\n&#8211; 10uF capacitor<br \/>\n&#8211; Arduino Uno or Duemilanove (with an ATmega328, not an older board with an ATmega168!)<br \/>\n&#8211; ATtiny45 or 85<\/p>\n<p><img src=\"http:\/\/farm9.staticflickr.com\/8227\/8492197093_3414541078.jpg\"><\/p>\n<h4>Tools<\/h4>\n<p>&#8211; Cutter knife<br \/>\n&#8211; Cutting mat<br \/>\n&#8211; File<br \/>\n&#8211; Wire cutters and stripper<br \/>\n&#8211; Soldering iron<br \/>\n&#8211; Helping hand<\/p>\n<p>Use the following illustration to help you throughout the following steps:<br \/>\n<img src=\"http:\/\/farm9.staticflickr.com\/8520\/8500631112_400870c271_b.jpg\"><\/p>\n<h4>1) Cut Circuit Board to Shape<\/h4>\n<p>Cut a piece of perforated circuit board to size and file the edges:<br \/>\n<img src=\"http:\/\/farm9.staticflickr.com\/8378\/8493258212_c53d7a0725_m.jpg\"><img src=\"http:\/\/farm9.staticflickr.com\/8095\/8493255878_fd83cfec93_m.jpg\"><\/p>\n<h4>2) Solder Male Headers<\/h4>\n<p>Take 4 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&#8217;ve got the first pin soldered the rest will be easier:<br \/>\n<img src=\"http:\/\/farm9.staticflickr.com\/8109\/8492159121_d510c9a4c8_m.jpg\"><img src=\"http:\/\/farm9.staticflickr.com\/8390\/8493260622_aba5617b2a_m.jpg\"><br \/>\n<img src=\"http:\/\/farm9.staticflickr.com\/8366\/8493262462_fcf0d0918c_m.jpg\"><img src=\"http:\/\/farm9.staticflickr.com\/8525\/8493264682_5685231a75_m.jpg\"><\/p>\n<p>Video: Soldering headers to perforated circuit board:<br \/>\n<iframe width=\"420\" height=\"315\" src=\"http:\/\/www.youtube.com\/embed\/288it6FvcOU\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>Make sure the board with headers fit into your Arduino:<br \/>\n<img src=\"http:\/\/farm9.staticflickr.com\/8093\/8493266670_83e3d2bf39.jpg\"><\/p>\n<h4>3) Disconnect Circuit Traces<\/h4>\n<p>Disconnect the line traces as follows (see illustration and video) using a cutter knife:<br \/>\n<img src=\"http:\/\/farm9.staticflickr.com\/8245\/8492169151_e8e0462d6c_m.jpg\"><img src=\"http:\/\/farm9.staticflickr.com\/8247\/8493271562_2f0ac2ec3f_m.jpg\"><br \/>\n<img src=\"http:\/\/farm9.staticflickr.com\/8097\/8492172667_794678a1a2.jpg\"><\/p>\n<p>Video: Cutting connection on a perforated circuit board:<br \/>\n<iframe width=\"420\" height=\"315\" src=\"http:\/\/www.youtube.com\/embed\/3he9Wz67Z_A\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<h4>4) Solder Female Headers<\/h4>\n<p>Then insert the female header pins and use an ATtiny chip as reference to make sure you get the spacing right:<br \/>\n<img src=\"http:\/\/farm9.staticflickr.com\/8104\/8493279038_9757593bea_m.jpg\"><img src=\"http:\/\/farm9.staticflickr.com\/8509\/8493282030_0e575dab68_m.jpg\"><\/p>\n<p>Then solder:<br \/>\n<img src=\"http:\/\/farm9.staticflickr.com\/8532\/8492174315_60046d78bc_m.jpg\"><img src=\"http:\/\/farm9.staticflickr.com\/8086\/8492176653_bc8a37ff66_m.jpg\"><\/p>\n<h4>5) Solder Circuit<\/h4>\n<p>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:<\/p>\n<p><strong>Wiring your ISP connection:<\/strong><br \/>\n<em><strong>ATtiny        &#8212;&#8211;  Arduino<\/strong><\/em><br \/>\nPin PB2 (SCK)   &#8212;&#8211;  Pin 13<br \/>\nPin PB1 (MISO)  &#8212;&#8211;  Pin 12<br \/>\nPin PB0 (MOSI)  &#8212;&#8211;  Pin 11<br \/>\nPin PB5 (Reset) &#8212;&#8211;  Pin 10<br \/>\nPlus (VCC)    &#8212;&#8211;  +5V<br \/>\nMinus (GND)   &#8212;&#8211;  GND<\/p>\n<p>10uF Capcitor:<br \/>\nArduino pins: RESET &#8212;-||&#8212;- GND<\/p>\n<p><a href=\"http:\/\/hlt.media.mit.edu\/?p=1706\"><img src=\"http:\/\/farm9.staticflickr.com\/8344\/8191599432_3e2508f44d.jpg\"><\/a><\/p>\n<p>Bend wires on bottom side to stop them falling out before you solder them:<br \/>\n<img src=\"http:\/\/farm9.staticflickr.com\/8090\/8492184777_ea018f69a6_m.jpg\"><img src=\"http:\/\/farm9.staticflickr.com\/8092\/8492186263_459d29701b_m.jpg\"><br \/>\n<img src=\"http:\/\/farm9.staticflickr.com\/8091\/8492187813_d7873002c9_m.jpg\"><img src=\"http:\/\/farm9.staticflickr.com\/8530\/8493290170_acff0cab12_m.jpg\"><br \/>\n<img src=\"http:\/\/farm9.staticflickr.com\/8229\/8492191641_1c94c9f19b_m.jpg\"><img src=\"http:\/\/farm9.staticflickr.com\/8513\/8493293698_aae449d7f3_m.jpg\"><\/p>\n<p>Done!<br \/>\n<img src=\"http:\/\/farm9.staticflickr.com\/8371\/8492195179_e657627a55.jpg\"><\/p>\n<h4>6) Upload your program!<\/h4>\n<p>Now plug in your Arduino and follow the instructions in the Arduino as ISP post linked to at the top of this page.<br \/>\n<img src=\"http:\/\/farm9.staticflickr.com\/8376\/8493304702_61922a296b_m.jpg\"><img src=\"http:\/\/farm9.staticflickr.com\/8104\/8493307076_3ea72739fd_m.jpg\"><\/p>\n<p>Video: Using ATtiny shield to program an ATtiny to play a song:<br \/>\n<iframe width=\"420\" height=\"315\" src=\"http:\/\/www.youtube.com\/embed\/toAOCECOVsY\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>","protected":false},"excerpt":{"rendered":"<a href=\"https:\/\/www.kobakant.at\/DIY\/?p=3996\"><img width=\"400\" height=\"300\" src=\"http:\/\/www.kobakant.at\/DIY\/wp-content\/plugins\/thumbnail-for-excerpts\/tfe_no_thumb.png\" class=\"alignleft wp-post-image tfe\" alt=\"\" title=\"\" \/><\/a><p>This little circuit sits nicely ontop of an Arduino board and lets you quickly plug in an ATtiny chip for programming using the Arduino &#8220;language&#8221; and IDE to write the code, and the Arduino board as an ISP programmer to upload the code to the tiny chip.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[23],"tags":[],"_links":{"self":[{"href":"https:\/\/www.kobakant.at\/DIY\/index.php?rest_route=\/wp\/v2\/posts\/3996"}],"collection":[{"href":"https:\/\/www.kobakant.at\/DIY\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kobakant.at\/DIY\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kobakant.at\/DIY\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kobakant.at\/DIY\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3996"}],"version-history":[{"count":18,"href":"https:\/\/www.kobakant.at\/DIY\/index.php?rest_route=\/wp\/v2\/posts\/3996\/revisions"}],"predecessor-version":[{"id":4045,"href":"https:\/\/www.kobakant.at\/DIY\/index.php?rest_route=\/wp\/v2\/posts\/3996\/revisions\/4045"}],"wp:attachment":[{"href":"https:\/\/www.kobakant.at\/DIY\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kobakant.at\/DIY\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kobakant.at\/DIY\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}