{"id":173,"date":"2012-09-09T16:03:23","date_gmt":"2012-09-09T14:03:23","guid":{"rendered":"http:\/\/jcoder.me\/blog\/?p=173"},"modified":"2012-09-22T17:02:30","modified_gmt":"2012-09-22T15:02:30","slug":"first-steps-with-the-attiny-45","status":"publish","type":"post","link":"https:\/\/jcoder.me\/blog\/2012\/09\/09\/first-steps-with-the-attiny-45\/","title":{"rendered":"First steps with the ATtiny 45"},"content":{"rendered":"<p>The <a href=\"http:\/\/www.atmel.com\/devices\/attiny45.aspx\" target=\"_blank\">ATMEL\u00a0ATtiny 45<\/a> is an 8-bit programmable microcontroller chip. Some weeks ago I stumbled upon this <a href=\"http:\/\/blog.makezine.com\/2011\/10\/10\/how-to-shrinkify-your-arduino-projects\/\" target=\"_blank\">How-To article by Matt from MAKE about the ATtiny 45<\/a> and with my last electronics order I got one (actually two, just in case I accidentially blew one up).<\/p>\n<p>Yesterday I took the time and got it up and running:<\/p>\n<p><iframe loading=\"lazy\" src=\"http:\/\/www.youtube.com\/embed\/Jv3yjzZJJ2c?rel=0\" frameborder=\"0\" width=\"560\" height=\"315\"><\/iframe><\/p>\n<p>Following the tutorial at the <a href=\"http:\/\/hlt.media.mit.edu\/?p=1695\" target=\"_blank\">MIT Media Lab page<\/a> it took no longer than 30 minutes to make the microcontroller drive two LEDs.<\/p>\n<p>Although the tutorial was very helpful some things have changed in the current software versions, so (as promised in my last blog posting) this is what I did differently:<\/p>\n<p><strong>1. Copying the ATTiny files<\/strong><\/p>\n<ul>\n<li>doing so as described in the tutorial<\/li>\n<li>but: they are showing up as simple devices under &#8220;Tools&#8221;, &#8220;Board&#8221;<\/li>\n<\/ul>\n<p><a href=\"http:\/\/jcoder.me\/blog\/wp-content\/uploads\/2012\/09\/Screenshot-ATtiny-in-Arduino-IDE.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-177\" title=\"Screenshot ATtiny in Arduino IDE\" src=\"http:\/\/jcoder.me\/blog\/wp-content\/uploads\/2012\/09\/Screenshot-ATtiny-in-Arduino-IDE.png\" alt=\"\" width=\"602\" height=\"366\" srcset=\"https:\/\/jcoder.me\/blog\/wp-content\/uploads\/2012\/09\/Screenshot-ATtiny-in-Arduino-IDE.png 602w, https:\/\/jcoder.me\/blog\/wp-content\/uploads\/2012\/09\/Screenshot-ATtiny-in-Arduino-IDE-300x182.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/a><\/p>\n<p><strong>2. Preparing the Arduino Uno<\/strong><\/p>\n<ul>\n<li>connect the Arduino Uno via USB to the PC<\/li>\n<li>start the Arduion IDE 1.0.1<\/li>\n<li>open &#8220;ArduinoISP&#8221; from &#8220;File&#8221;, &#8220;Examples&#8221;<\/li>\n<li>upload it to the Arduino Uno<\/li>\n<li>when finished, connect Arduino Uno to ATtiny on its breadboard, see tutorial for details<\/li>\n<\/ul>\n<p><strong>3. You(r) program<\/strong><\/p>\n<ul>\n<li>open the blinking example, change pin 0<\/li>\n<li>select &#8220;Tools&#8221;, &#8220;Programmer&#8221;, &#8220;Arduino as ISP&#8221;<\/li>\n<li>upload program using &#8220;File&#8221;, &#8220;Upload Using Programmer&#8221;<\/li>\n<\/ul>\n<p><strong>4. Done<\/strong><\/p>\n<ul>\n<li>depending on your program and breadboard setup, the LED(s) should be blinking now<\/li>\n<\/ul>\n<p><strong>What&#8217;s next?<\/strong><br \/>\nI&#8217;m not quite sure, but I think the ATtiny 45 is a cool chip, so I&#8217;m really looking forward to finding a good way to integrate it into upcoming projects.<\/p>\n<p><strong>Links<\/strong><br \/>\nATMEL ATtiny 45\u00a0<a href=\"http:\/\/www.atmel.com\/devices\/attiny45.aspx\" target=\"_blank\">http:\/\/www.atmel.com\/devices\/attiny45.aspx<\/a><br \/>\nMAKE article <a href=\"http:\/\/blog.makezine.com\/2011\/10\/10\/how-to-shrinkify-your-arduino-projects\/\" target=\"_blank\">http:\/\/blog.makezine.com\/2011\/10\/10\/how-to-shrinkify-your-arduino-projects\/<\/a><br \/>\nMIT Media Lab page ATtiny <a href=\"http:\/\/hlt.media.mit.edu\/?p=1695\" target=\"_blank\">http:\/\/hlt.media.mit.edu\/?p=1695<\/a><br \/>\nMy ATtiny 45 video at YouTube <a href=\"http:\/\/youtu.be\/Jv3yjzZJJ2c\" target=\"_blank\">http:\/\/youtu.be\/Jv3yjzZJJ2c<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The ATMEL\u00a0ATtiny 45 is an 8-bit programmable microcontroller chip. Some weeks ago I stumbled upon this How-To article by Matt from MAKE about the ATtiny 45 and with my last electronics order I got one (actually two, just in case &hellip; <a href=\"https:\/\/jcoder.me\/blog\/2012\/09\/09\/first-steps-with-the-attiny-45\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[55,35,38,39,37,36],"class_list":["post-173","post","type-post","status-publish","format-standard","hentry","category-arduino","tag-arduino","tag-attiny","tag-blinking","tag-first-steps","tag-led","tag-microcontroller"],"_links":{"self":[{"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/posts\/173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/comments?post=173"}],"version-history":[{"count":7,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/posts\/173\/revisions"}],"predecessor-version":[{"id":182,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/posts\/173\/revisions\/182"}],"wp:attachment":[{"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/media?parent=173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/categories?post=173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jcoder.me\/blog\/wp-json\/wp\/v2\/tags?post=173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}