{"id":13000,"date":"2017-01-16T22:26:08","date_gmt":"2017-01-17T03:26:08","guid":{"rendered":"http:\/\/embedded-lab.com\/blog\/?p=13000"},"modified":"2017-01-16T22:31:56","modified_gmt":"2017-01-17T03:31:56","slug":"tutorial-1-setting-arduino-ide-easyesp-1","status":"publish","type":"post","link":"https:\/\/embedded-lab.com\/blog\/tutorial-1-setting-arduino-ide-easyesp-1\/","title":{"rendered":"Tutorial 1: Setting up the Arduino IDE for EasyESP-1"},"content":{"rendered":"<p>One of the simplest way to program the ESP8266 chip on board <strong><a href=\"http:\/\/embedded-lab.com\/blog\/easyesp-1-rapid-prototyping-development-board-esp8266\/\" target=\"_blank\">EasyESP-1<\/a><\/strong> is\u00a0using the Arduino IDE. Following steps describe how to enable the ESP8266 support in the Arduino environment.<\/p>\n<p><strong>Step 1 : Install\u00a0Arduino IDE<\/strong><br \/>\nThe first step toward setting up the Arduino platform\u00a0for programming EasyESP-1 is to download and install the Arduino IDE. Go to the <a href=\"https:\/\/www.arduino.cc\/en\/Main\/Software\" target=\"_blank\"><strong>Arduino website<\/strong><\/a> and download <strong>Arduino IDE 1.6.11<\/strong>.<\/p>\n<p><strong>Step 2: Install ESP8266\u00a0core package<\/strong><br \/>\nNext step is to install the <a href=\"https:\/\/github.com\/esp8266\/Arduino\" target=\"_blank\"><strong>ESP8266 core<\/strong><\/a> for Arduino IDE. It\u00a0is an add-on that allows to write sketches for ESP8266 using the Arduino IDE \u00a0and its libraries. The easiest way to install the ESP8266 core is by typing in <code>http:\/\/arduino.esp8266.com\/stable\/package_esp8266com_index.json<\/code><br \/>\ninto <em>Additional Board Manager URLs<\/em> field in the Arduino-&gt;\u00a0Preferences window (see figure below).<\/p>\n<div id=\"attachment_13001\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/preference.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13001\" class=\"size-full wp-image-13001\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/preference.png\" alt=\"Adding ESP8266 support to Arduino IDE using Preferences window\" width=\"800\" height=\"658\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/preference.png 800w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/preference-580x477.png 580w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><p id=\"caption-attachment-13001\" class=\"wp-caption-text\"><em><strong>Adding ESP8266 support to Arduino IDE using Preferences window<\/strong><\/em><\/p><\/div>\n<p>Click <strong>OK<\/strong> and then go to <strong>Boards Manager<\/strong> and install the ESP8266 core. It appears at the end of the list as <strong>esp8266 by ESP8266 Community<\/strong> (see figure below). Select <strong>2.3.0<\/strong> version from the dropdown list.<\/p>\n<div id=\"attachment_13004\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/BoardManager1-1024x575.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13004\" class=\"size-full wp-image-13004\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/BoardManager1-1024x575.png\" alt=\"Installing ESP8266 core from Boards Manager\" width=\"1024\" height=\"575\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/BoardManager1-1024x575.png 1024w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/BoardManager1-1024x575-580x326.png 580w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-13004\" class=\"wp-caption-text\"><em><strong>Installing ESP8266 core from Boards Manager<\/strong><\/em><\/p><\/div>\n<p><strong>Step 3: Select the right board<\/strong><br \/>\nNext you need to select <strong>NodeMCU 1.0 (ESP-12E Module)<\/strong> from <strong>Board<\/strong> menu.<\/p>\n<div id=\"attachment_13003\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/selectboard-1.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13003\" class=\"size-full wp-image-13003\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/selectboard-1.jpg\" alt=\"Select NodeMCU 1.0 (ESP-12E Module)\" width=\"800\" height=\"725\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/selectboard-1.jpg 800w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/selectboard-1-580x526.jpg 580w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><p id=\"caption-attachment-13003\" class=\"wp-caption-text\"><em><strong>Select NodeMCU 1.0 (ESP-12E Module)<\/strong><\/em><\/p><\/div>\n<p>Go to <strong>Tools<\/strong> and make sure the <strong>CPU Frequency<\/strong> is set to 80 MHz and <strong>Upload Speed<\/strong> to 115200. If not, change them to correct options.<\/p>\n<div id=\"attachment_13005\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/cpu.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13005\" class=\"size-full wp-image-13005\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/cpu.jpg\" alt=\"CPU clock should be set to 80 MHz and Upload Speed to 115200\" width=\"600\" height=\"309\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/cpu.jpg 600w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/cpu-580x299.jpg 580w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-13005\" class=\"wp-caption-text\"><em><strong>CPU clock should be set to 80 MHz and Upload Speed to 115200<\/strong><\/em><\/p><\/div>\n<p><strong>Step 4: COM Port selection<\/strong><br \/>\nFinally, you need to select the right COM port that your EasyESP board is connected to. Obviously, you need to connect the EasyESP-1 to the computer through a USB cable. If the driver\u00a0for <a href=\"http:\/\/www.silabs.com\/products\/mcu\/pages\/usbtouartbridgevcpdrivers.aspx\" target=\"_blank\"><strong>SiLabs CP2102<\/strong><\/a> USB-UART device is installed properly, it will show up in the <strong>Arduino IDE Tools-&gt;Port<\/strong> list as a new serial port. In Windows machines it shows up as a new COMx port. The following figure shows how it appears on a MAC computer.\u00a0You should select the matching serial port for the CP2102 device on EasyESP from the Port list.<\/p>\n<div id=\"attachment_13006\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/USBUART.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13006\" class=\"size-full wp-image-13006\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/USBUART.jpg\" alt=\"Select the right serial port (MAC computer)\" width=\"800\" height=\"422\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/USBUART.jpg 800w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/USBUART-580x306.jpg 580w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><p id=\"caption-attachment-13006\" class=\"wp-caption-text\"><em><strong>Select the right serial port (MAC computer)<\/strong><\/em><\/p><\/div>\n<p>Now you are all set to write and upload your first ESP8266 program using the Arduino IDE.<\/p>\n<div id=\"attachment_12962\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/Setup6.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-12962\" class=\"size-full wp-image-12962\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/Setup6.jpg\" alt=\"ESP8266 experimenting made easy with EasyESp-1\" width=\"800\" height=\"631\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/Setup6.jpg 800w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/01\/Setup6-580x457.jpg 580w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><p id=\"caption-attachment-12962\" class=\"wp-caption-text\"><em><strong>ESP8266 experimenting made easy with EasyESP-1<\/strong><\/em><\/p><\/div>\n<h3><a href=\"https:\/\/www.elecrow.com\/easyesp-1-an-esp8266-experimenter-board-for-beginners.html\" target=\"_blank\">Buy EasyESP-1 board<\/a><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>One of the simplest way to program the ESP8266 chip on board EasyESP-1 is\u00a0using the Arduino IDE. Following steps describe how to enable the ESP8266 support in the Arduino environment. Step 1 : Install\u00a0Arduino IDE The first step toward setting up the Arduino platform\u00a0for programming EasyESP-1 is to download and install the Arduino IDE. Go to the Arduino website and download Arduino IDE 1.6.11. Step 2: Install ESP8266\u00a0core package Next step is to install the ESP8266 core for Arduino IDE. It\u00a0is an add-on that allows to write sketches for ESP8266 using the Arduino IDE \u00a0and its libraries. The easiest way<\/p>\n","protected":false},"author":1,"featured_media":13001,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1603,1044,1464,1466],"tags":[1605,1117],"class_list":["post-13000","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-esp8266-tutorials","category-esp8266","category-featured","category-tutorials","tag-easyesp-1-setup","tag-esp8266-tutorial"],"_links":{"self":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/13000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/comments?post=13000"}],"version-history":[{"count":6,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/13000\/revisions"}],"predecessor-version":[{"id":13013,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/13000\/revisions\/13013"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media\/13001"}],"wp:attachment":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media?parent=13000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/categories?post=13000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/tags?post=13000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}