{"id":1670,"date":"2015-12-13T17:48:50","date_gmt":"2015-12-13T16:48:50","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=1670"},"modified":"2015-12-13T18:11:27","modified_gmt":"2015-12-13T17:11:27","slug":"esp8266-part3","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=1670","title":{"rendered":"ESP8266 Part3"},"content":{"rendered":"<p>In <a href=\"https:\/\/labalec.fr\/erwan\/?p=1662\" target=\"_blank\">previous article<\/a>, we have seen how to talk to a 8266 thru serial.<\/p>\n<p>We could do the same from an arduino and therefore use this module as a slave.<br \/>\nBut why introduce a second MCU when the ESP8266 itself is a MCU?<\/p>\n<p>Our arduino IDE can actually program such a MCU (next to the atmega series).<br \/>\nFor this you will need latest arduino ide (version 1.6.4 and up).<br \/>\nYou will also need to add support for the ESP8266 : see <a href=\"https:\/\/github.com\/esp8266\/Arduino#minimal-hardware-setup-for-bootloading-and-usage\" target=\"_blank\">here<\/a> how to do this.<\/p>\n<p>Once done you are ready to program your MCU.<br \/>\nDont forget to pull GPIO0 down but also to reset your MCU when entering the flash phase (or else you&rsquo;ll get \u00ab\u00a0error: espcomm_open failed\u00a0\u00bb).<br \/>\nOnce flashed, set GPIO0 free.<\/p>\n<p>See below our arduino ide flashing the blink demo.<\/p>\n<p><a href=\"http:\/\/imgur.com\/zJJALts\"><img decoding=\"async\" src=\"http:\/\/i.imgur.com\/zJJALts.png?1\" title=\"source: imgur.com\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In previous article, we have seen how to talk to a 8266 thru serial. We could do the same from an arduino and therefore use this module as a slave. But why introduce a second MCU when the ESP8266 itself is a MCU? Our arduino IDE can actually program such a MCU (next to the <a href='https:\/\/labalec.fr\/erwan\/?p=1670' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[83],"class_list":["post-1670","post","type-post","status-publish","format-standard","hentry","category-arduino","tag-esp8266","category-18-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1670"}],"version-history":[{"count":6,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1670\/revisions"}],"predecessor-version":[{"id":1677,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1670\/revisions\/1677"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}