{"id":1345,"date":"2018-11-05T15:46:02","date_gmt":"2018-11-05T07:46:02","guid":{"rendered":"https:\/\/www.techcoil.com\/blog\/?p=1345"},"modified":"2020-01-11T13:46:42","modified_gmt":"2020-01-11T05:46:42","slug":"enabling-esp8266-development-on-arduino-ide","status":"publish","type":"post","link":"https:\/\/www.techcoil.com\/blog\/enabling-esp8266-development-on-arduino-ide\/","title":{"rendered":"Enabling ESP8266 Development on Arduino IDE"},"content":{"rendered":"<p>Undeniably, the <a href=\"https:\/\/www.amazon.com\/HiLetgo-Internet-Development-Wireless-Micropython\/dp\/B010N1SPRK\/ref=as_li_ss_tl?ie=UTF8&linkCode=ll1&tag=clivsperswebs-20&linkId=37a3f603db6fd375cbf21b9fc7ef7281&language=en_US\" rel=\"noopener noreferrer\" target=\"_blank\">ESP8266 NodeMCU LUA Development Board<\/a> is cost efficient for <a href=\"https:\/\/www.techcoil.com\/glossary\/internet-of-things\/\" rel=\"noopener noreferrer\" target=\"_blank\">IOT<\/a> solutions. Available at a low price point and built-in WiFi, we can easily get sensor readings and make them available on the Internet. <\/p>\n<p>In order to run our program on ESP8266 NodeMCU LUA Development Board, we will need to write our program into the flash memory of the development board. Since it is easy to write code and flash programs with <a href=\"https:\/\/www.arduino.cc\/en\/Main\/Software\" rel=\"noopener noreferrer\" target=\"_blank\">Arduino IDE<\/a>, it is a good tool to use with the ESP8266 NodeMCU LUA Development Board.<\/p>\n<p>In case you are looking for a reference to enable ESP8266 development on Arduino IDE, this post shows how you can do so.<\/p>\n<h2>Getting a copy of Arduino IDE that supports addons with the Arduino Boards Manager<\/h2>\n<p>First of all, you will need to ensure that your copy of Arduino IDE supports addons with the Arduino Boards Manager. When you have an Arduino IDE 1.6.4 and later, you will be ready to add the <a href=\"https:\/\/github.com\/esp8266\/Arduino\" rel=\"noopener noreferrer\" target=\"_blank\">ESP8266 core<\/a> to your Arduino IDE. If you do not have one, <a href=\"https:\/\/www.arduino.cc\/en\/Main\/Software#download\" rel=\"noopener noreferrer\" target=\"_blank\">download the latest Arduino IDE<\/a> and install it on your computer.<\/p>\n<h2>Installing ESP8266 core with Arduino Boards Manager<\/h2>\n<p>In order to start ESP8266 development on Arduino IDE, we will need to add the <a href=\"https:\/\/github.com\/esp8266\/Arduino\" rel=\"noopener noreferrer\" target=\"_blank\">ESP8266 core<\/a> created by <a href=\"https:\/\/github.com\/igrr\" rel=\"noopener noreferrer\" target=\"_blank\">Ivan Grokhotkov<\/a> and the ESP8266 community. <\/p>\n<p>After you had started your Arduino IDE, go to <strong>Arduino -> Preferences<\/strong> to open up the <strong>Preferences<\/strong> windows.<\/p>\n<p>Next, enter <strong>http:\/\/arduino.esp8266.com\/stable\/package_esp8266com_index.json<\/strong> into the <strong>Additional Board Manager URLs<\/strong> textfield. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/Mac-Arduino-IDE-1.8.7-Preferences-window-with-ESP8266-core-url-inside-additional-board-managers-urls.gif\" alt=\"Mac Arduino IDE 1.8.7 Preferences window with ESP8266 core url inside additional board managers urls\" \/><\/p>\n<p>After that, press <strong>OK<\/strong> on the <strong>Additional Boards Manager URLs<\/strong> windows and <strong>OK<\/strong> on the <strong>Preferences<\/strong> windows to exit <strong>Preferences<\/strong>.<\/p>\n<p>Once you had included the ESP8266 core URL, go to <strong>Tools -> Boards -> Boards Manager...<\/strong> to open up the <strong>Boards Manager<\/strong> window. When the <strong>Boards Manager<\/strong> window appears, find <strong>ESP 8266<\/strong> and click <strong>Install<\/strong>:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/Mac-Arduino-IDE-1.8.7-Boards-Manager-window-with-ESP-8266-core-listed.gif\" alt=\"Mac Arduino IDE 1.8.7 Boards Manager window with ESP 8266 core listed\" \/><\/p>\n<p>After you clicked <strong>install<\/strong>, a progress bar appears to show the installation process:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/Mac-Arduino-IDE-1.8.7-Boards-Manager-window-with-ESP-8266-core-being-installed.gif\" alt=\"Mac Arduino IDE 1.8.7 Boards Manager window with ESP 8266 core being installed\" \/><\/p>\n<p>When the installation is completed, the Boards Manager will show the version of ESP 8266 that had been installed on your Arduino IDE:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/Mac-Arduino-IDE-1.8.7-Boards-Manager-window-with-ESP-8266-core-2.4.2-installed.gif\" alt=\"Mac Arduino IDE 1.8.7 Boards Manager window with ESP 8266 core 2.4.2 installed\"  \/><\/p>\n<h2>Installing a CP210x USB to UART Bridge VCP Driver<\/h2>\n<p>In order to flash your program to your ESP8266 NodeMCU LUA Development Board, you will also need to have <strong>CP210x USB to UART Bridge VCP Driver<\/strong> installed on your computer. Therefore, <a href=\"https:\/\/www.silabs.com\/products\/development-tools\/software\/usb-to-uart-bridge-vcp-drivers\" rel=\"noopener noreferrer\" target=\"_blank\">go to Silicon's download page for CP210x USB to UART Bridge VCP Drivers<\/a> to get a copy for your computer. Follow the instructions to install the respective driver for your computer.<\/p>\n<h2>Verifying that you can flash a program to your ESP8266 board with Arduino IDE<\/h2>\n<p>Once you had installed the CP210x USB to UART Bridge VCP Driver on your computer, you are ready to verify that you can flash a program to your ESP8266 board with your Arduino IDE.<\/p>\n<h3>Connecting your ESP8266 NodeMCU LUA Development Board to your computer<\/h3>\n<p>First, connect your ESP8266 NodeMCU LUA Development Board to your computer via a <a href=\"https:\/\/www.amazon.com\/Anker-Powerline-Premium-Motorola-Smartphones\/dp\/B019PZPYK6\/ref=as_li_ss_tl?ie=UTF8&linkCode=ll1&tag=clivsperswebs-20&linkId=e560ce35bfad0d4a560b8383172bd853&language=en_US\" rel=\"noopener noreferrer\" target=\"_blank\">good microUSB cable<\/a>:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/ESP8266-NodeMCU-LUA-Development-Board-connected-to-MacBook-Pro.jpg\" alt=\"ESP8266 NodeMCU LUA Development Board connected to MacBook Pro\" \/><\/p>\n<h3>Load the ESP8266 blink example onto your Arduino IDE<\/h3>\n<p>Next, start your Arduino IDE and go to <strong>File -> Examples -> ESP8266 -> Blink<\/strong> to open up the Blink example:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/Mac-Arduino-IDE-1.8.7-with-ESP8266-Blink-example-loaded-in-editor.gif\" alt=\"Mac Arduino IDE 1.8.7 with ESP8266 Blink example loaded in editor\" \/><\/p>\n<p>This example will toggle the ESP8266 NodeMCU LUA Development Board built-in LED on and off with some delay.<\/p>\n<h3>Configurations to flash the ESP 8266 Blink example to the development board<\/h3>\n<p>Once your Arduino IDE had been loaded in the editor, there are some settings that you had to configure.<\/p>\n<p>First, select <strong>NodeMCU 1.0 (ESP-12E Module)<\/strong> as the development board:<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/Mac-Arduino-IDE-1.8.7-selecting-NodeMCU-1.0-ESP-12E-Module-as-the-board-to-flash-program-to.gif\" alt=\"Mac Arduino IDE 1.8.7 selecting NodeMCU 1.0 (ESP-12E Module) as the board to flash program to\" \/><\/p>\n<p>Next, select the port on your computer that you will use to flash your program to your board:<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/Mac-Arduino-IDE-1.8.7-selecting-SILAB-USBtoUART-driver-as-the-port-to-flash-program-to.gif\" alt=\"Mac Arduino IDE 1.8.7 selecting SILAB USBtoUART driver as the port to flash program to\"\/><\/p>\n<h3>Flashing the ESP 8266 blink example to the development board<\/h3>\n<p>Finally, click the <strong>Upload<\/strong> button to flash the ESP 8266 blink example to the development board:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/Mac-Arduino-IDE-1.8.7-with-Upload-button-highlighted-and-ESP8266-Blink-example-flashed-onto-development-board-successfully.gif\" alt=\"Mac Arduino IDE 1.8.7 with Upload button highlighted and ESP8266 Blink example flashed onto development board successfully\" \/><\/p>\n<p>When your program had been successfully uploaded, the LED light on your ESP8266 NodeMCU LUA Development Board will blink.<\/p>\n<p><img decoding=\"async\" width=\"600\" height=\"900\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/Enabling-ESP8266-development-on-Arduino-IDE.jpg\" alt=\"Enabling ESP8266 development on Arduino IDE\" class=\"aligncenter size-full wp-image-1936\" \/><\/p>\n\n      <ul id=\"social-sharing-buttons-list\">\n        <li class=\"facebook\">\n          <a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwp.me%2Fp245TQ-lH\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n            <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Facebook.png\" alt=\"Facebook icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"twitter\">\n          <a href=\"https:\/\/twitter.com\/intent\/tweet?text=&url=https%3A%2F%2Fwp.me%2Fp245TQ-lH&via=Techcoil_com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Twitter.png\" alt=\"Twitter icon\"> Tweet\n          <\/a>\n        <\/li>\n        <li class=\"linkedin\">\n          <a href=\"https:\/\/www.linkedin.com\/shareArticle?mini=1&title=&url=https%3A%2F%2Fwp.me%2Fp245TQ-lH&source=https:\/\/www.techcoil.com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/linkedin.png\" alt=\"Linkedin icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"pinterest\">\n          <a href=\"https:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Fwww.techcoil.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F1345&description=\" class=\"pin-it-button\" target=\"_blank\" role=\"button\" rel=\"nofollow\" count-layout=\"horizontal\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Pinterest.png\" alt=\"Pinterest icon\"> Save\n          <\/a>\n        <\/li>\n      <\/ul>\n    ","protected":false},"excerpt":{"rendered":"<p>Undeniably, the <a href=\"https:\/\/www.amazon.com\/HiLetgo-Internet-Development-Wireless-Micropython\/dp\/B010N1SPRK\/ref=as_li_ss_tl?ie=UTF8&#038;linkCode=ll1&#038;tag=clivsperswebs-20&#038;linkId=37a3f603db6fd375cbf21b9fc7ef7281&#038;language=en_US\" rel=\"noopener noreferrer\" target=\"_blank\">ESP8266 NodeMCU LUA Development Board<\/a> is cost efficient for <a href=\"https:\/\/www.techcoil.com\/glossary\/internet-of-things\/\" rel=\"noopener noreferrer\" target=\"_blank\">IOT<\/a> solutions. Available at a low price point and built-in WiFi, we can easily get sensor readings and make them available on the Internet. <\/p>\n<p>In order to run our program on ESP8266 NodeMCU LUA Development Board, we will need to write our program into the flash memory of the development board. Since it is easy to write code and flash programs with <a href=\"https:\/\/www.arduino.cc\/en\/Main\/Software\" rel=\"noopener noreferrer\" target=\"_blank\">Arduino IDE<\/a>, it is a good tool to use with the ESP8266 NodeMCU LUA Development Board.<\/p>\n<p>In case you are looking for a reference to enable ESP8266 development on Arduino IDE, this post shows how you can do so.<\/p>\n","protected":false},"author":1,"featured_media":1363,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":""},"categories":[4],"tags":[588,589,590,484],"jetpack_featured_media_url":"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/ESP8266-NodeMCU-LUA-Development-Board-with-Arduino-IDE-at-the-background.jpg","jetpack_shortlink":"https:\/\/wp.me\/p245TQ-lH","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/1345"}],"collection":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/comments?post=1345"}],"version-history":[{"count":0,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/1345\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media\/1363"}],"wp:attachment":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media?parent=1345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/categories?post=1345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/tags?post=1345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}