{"id":2621,"date":"2022-12-31T07:17:15","date_gmt":"2022-12-31T06:17:15","guid":{"rendered":"https:\/\/fotografeer.nl\/?p=2621"},"modified":"2025-10-07T22:16:23","modified_gmt":"2025-10-07T20:16:23","slug":"programming-attiny85-from-arduino-nano-the-upload","status":"publish","type":"post","link":"https:\/\/fotografeer.nl\/?p=2621","title":{"rendered":"Programming ATtiny85 from Arduino Nano &#8211; The Upload"},"content":{"rendered":"<style>.kb-table-of-content-nav.kb-table-of-content-id2621_dd8495-9c .kb-table-of-content-wrap{padding-top:var(--global-kb-spacing-sm, 1.5rem);padding-right:var(--global-kb-spacing-sm, 1.5rem);padding-bottom:var(--global-kb-spacing-sm, 1.5rem);padding-left:var(--global-kb-spacing-sm, 1.5rem);}.kb-table-of-content-nav.kb-table-of-content-id2621_dd8495-9c .kb-table-of-contents-title-wrap{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id2621_dd8495-9c .kb-table-of-contents-title{font-weight:regular;font-style:normal;}.kb-table-of-content-nav.kb-table-of-content-id2621_dd8495-9c .kb-table-of-content-wrap .kb-table-of-content-list{font-weight:regular;font-style:normal;margin-top:var(--global-kb-spacing-sm, 1.5rem);margin-right:0px;margin-bottom:0px;margin-left:0px;}<\/style>\n\n\n<h2 class=\"wp-block-heading\">Upload Proted Software to ATtiny85<\/h2>\n\n\n\n<p>In the previous post in this <a href=\"?s=Arduino%2CATtiny85%2CNano&amp;lang=en\">series of blog posts<\/a>, we went through the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Porting\" target=\"_blank\" rel=\"noreferrer noopener\">porting<\/a> process and adapted Blink.ino to be able to run on ATtiny85. In this post, the apdated Blink.ino is uploaded to the ATtiny85.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Upload<\/h3>\n\n\n\n<p>Now we have prepared the Blink.ino sketch for ATtiny85, it is time to upload it to the ATtiny85 chip.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Open Arduino GUI<\/h3>\n\n\n\n<p>If you don&#8217;t have the Arduino GUI open any more, start it first.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Open New Sketch<\/h3>\n\n\n\n<p>Open a new sketch. Select:<\/p>\n\n\n\n<p><strong>File<\/strong> -&gt; <strong>New Sketch<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Use Adapted Blink.ino<\/h3>\n\n\n\n<p>Copy\/Paste the adapted Blink.ino that uses pin 3 in the new sketch. There is no need to save it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#define LED_PIN 3\n\/\/ the setup function runs once when you press reset or power the board\nvoid setup() {\n  \/\/ initialize digital pin LED_BUILTIN as an output.\n  pinMode(LED_PIN, OUTPUT);\n}\n\/\/ the loop function runs over and over again forever\nvoid loop() {\n  digitalWrite(LED_PIN, HIGH);  \/\/ turn the LED on (HIGH is the voltage level)\n  delay(1000);                      \/\/ wait for a second\n  digitalWrite(LED_PIN, LOW);   \/\/ turn the LED off by making the voltage LOW\n  delay(1000);                      \/\/ wait for a second\n}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Verify Settings<\/h3>\n\n\n\n<p>Make sure you have the same settings that you used for burning the bootloader.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Upload Using Programmer<\/h3>\n\n\n\n<p>Instead of using the normal Upload button, you now have to select:<\/p>\n\n\n\n<p><strong>Sketch<\/strong> -&gt; <strong>Upload Using Programmer<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"541\" height=\"516\" src=\"https:\/\/fotografeer.nl\/wp-content\/uploads\/2025\/10\/Upload-Using-Programmer.png\" alt=\"\" class=\"wp-image-2622\" srcset=\"https:\/\/fotografeer.nl\/wp-content\/uploads\/2025\/10\/Upload-Using-Programmer.png 541w, https:\/\/fotografeer.nl\/wp-content\/uploads\/2025\/10\/Upload-Using-Programmer-300x286.png 300w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/figure>\n\n\n\n<p>The output window of the Arduino IDE will show you details of the compilation and upload process and if all goes well, ends with:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">avrdude: erasing chip\navrdude: reading input file \"C:\\Users\\xxxxxxxx\\AppData\\Local\\Temp\\arduino-sketch-50B9D151E34A20A45A3B89D655F813D5\/sketch_dec31a.ino.hex\"\navrdude: writing flash (682 bytes):\nWriting | ################################################## | 100% 1.02s\navrdude: 682 bytes of flash written\navrdude done.  Thank you.<\/pre>\n\n\n\n<p>The adapted Blink.ino is now uploaded onto the ATtiny85. In the next post it is put to the test.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">DISCLAIMER<\/h2>\n\n\n\n<p>THIS BLOG POST IS PROVIDED &#8220;AS IS&#8221;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THIS HOWTO OR SOFTWARE OR THE USE OR OTHER DEALINGS IN THIS BLOG POST.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to program an ATtiny85 chip from a Arduino Nano 7\/8<\/p>\n","protected":false},"author":2,"featured_media":2622,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[69],"tags":[102,104,106,138],"class_list":["post-2621","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog___en","tag-arduino___en","tag-attiny85___en","tag-nano___en","tag-programming___en"],"lang":"en","translations":{"en":2621,"nl":2630},"pll_sync_post":{},"_links":{"self":[{"href":"https:\/\/fotografeer.nl\/index.php?rest_route=\/wp\/v2\/posts\/2621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fotografeer.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fotografeer.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fotografeer.nl\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/fotografeer.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2621"}],"version-history":[{"count":7,"href":"https:\/\/fotografeer.nl\/index.php?rest_route=\/wp\/v2\/posts\/2621\/revisions"}],"predecessor-version":[{"id":2759,"href":"https:\/\/fotografeer.nl\/index.php?rest_route=\/wp\/v2\/posts\/2621\/revisions\/2759"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fotografeer.nl\/index.php?rest_route=\/wp\/v2\/media\/2622"}],"wp:attachment":[{"href":"https:\/\/fotografeer.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fotografeer.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fotografeer.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}