{"id":408,"date":"2016-07-11T08:56:25","date_gmt":"2016-07-11T07:56:25","guid":{"rendered":"https:\/\/www.kolkataonweb.com\/code-bank\/?p=408"},"modified":"2022-05-02T14:37:53","modified_gmt":"2022-05-02T13:37:53","slug":"esp8266-programming-using-arduino-ide","status":"publish","type":"post","link":"https:\/\/www.kolkataonweb.com\/code-bank\/esp-8266\/esp8266-programming-using-arduino-ide\/","title":{"rendered":"ESP8266 Programming Using Arduino IDE"},"content":{"rendered":"<p>The ESP8266 can be programmed using the Arduino IDE. The best part is the codes are similar to Arduino. To start programming a ESP8266 using Arduino IDE follow the below steps<\/p>\n<h3 id=\"prerequisites\">Prerequisites<\/h3>\n<ul>\n<li>Arduino 1.6.8, get it from <a href=\"https:\/\/www.arduino.cc\/en\/Main\/OldSoftwareReleases#previous\">Arduino website<\/a>.<\/li>\n<\/ul>\n<h3 id=\"instructions\">Steps<\/h3>\n<ul>\n<li>Start Arduino and goto File-&gt; Preferences.<\/li>\n<li>In the &#8220;Additional Boards Manager URLs&#8221; Enter <code>http:\/\/arduino.esp8266.com\/stable\/package_esp8266com_index.json<\/code>\u00a0 (<em>You can add multiple URLs, separating them with commas<\/em>)<\/li>\n<li>Click &#8220;OK&#8221;<\/li>\n<li>Open Boards Manager from Tools -&gt; Board menu and find <em>esp8266<\/em> platform.<\/li>\n<li>Select the version you need from drop-down box.<\/li>\n<li>Click <em>install<\/em> button.<\/li>\n<li>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/li>\n<li>Upload a blank sketch to the Arduino.<\/li>\n<li>Connect RX to RX and TX to TX<\/li>\n<li>GPIO_0 will go to GND<\/li>\n<li>VCC and CH_PD will go to the 3.3v supply line<\/li>\n<li>Select the appropriate ESP8266 board from Tools &gt; Board menu.<\/li>\n<li>Select the appropriate Flash mode (DOUT or QIO. See notes below)<\/li>\n<li>Other parameters works mostly as it is &#8211; but still check once.<\/li>\n<li>Start upload<\/li>\n<li>RESET the module. This is a critical step and the timing matters. It may need a few tries to get it perfect.<\/li>\n<\/ul>\n<h3>After the code uploaded<\/h3>\n<ul>\n<li>Disconnect GPIO_0<\/li>\n<li>Reset<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>For further details please check <a href=\"http:\/\/esp8266.github.io\/Arduino\/versions\/2.3.0\/\">http:\/\/esp8266.github.io\/Arduino\/versions\/2.3.0\/<\/a><\/p>\n<p>Please see<a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/esp-8266\/esp-8266-esp-12e-hello-world-blinking-led\/\"> this article<\/a> for a basic code (Blinking LED that is the Hello World of micro-controllers)<\/p>\n<h3><span style=\"color: #ff0000;\">Notes<\/span><\/h3>\n<ul>\n<li>While uploading codes through Arduino IDE select DOUT for new chip and either DOUT or QIO for old chips.<\/li>\n<li>Keeping it to DOUT will work for both New and Old chips.<\/li>\n<li>Burning new chips with QIO (or inappropriate modes) will result in a successful burning but the code will not run.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Here is a <a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/esp-01-flashing-errors\/\">Troubleshooting Guide <\/a>and parameters that worked for me.<\/p>\n<p><a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/esp-01-burning-at-rom-new-and-updated\/\">Flashing guide <\/a>for new chips.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The ESP8266 can be programmed using the Arduino IDE. The best part is the codes are similar to Arduino. To start programming a ESP8266 using Arduino IDE follow the below steps Prerequisites Arduino 1.6.8, get it from Arduino website. Steps Start Arduino and goto File-&gt; Preferences. In the &#8220;Additional Boards Manager URLs&#8221; Enter http:\/\/arduino.esp8266.com\/stable\/package_esp8266com_index.json\u00a0 (You&hellip; <a class=\"more-link\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/esp-8266\/esp8266-programming-using-arduino-ide\/\">Continue reading <span class=\"screen-reader-text\">ESP8266 Programming Using Arduino IDE<\/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":[373,64],"tags":[17,20,15,68,65],"class_list":["post-408","post","type-post","status-publish","format-standard","hentry","category-electronics","category-esp-8266","tag-ai-cloud-inside","tag-esp-8266","tag-esp-01","tag-esp-12","tag-esp-12e","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/comments?post=408"}],"version-history":[{"count":9,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/408\/revisions"}],"predecessor-version":[{"id":1021,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/408\/revisions\/1021"}],"wp:attachment":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/media?parent=408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/categories?post=408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/tags?post=408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}