{"id":12142,"date":"2019-07-05T14:14:31","date_gmt":"2019-07-05T14:14:31","guid":{"rendered":"http:\/\/randomnerdtutorials.com\/?p=12142"},"modified":"2024-02-28T11:12:17","modified_gmt":"2024-02-28T11:12:17","slug":"how-to-install-esp8266-board-arduino-ide","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/how-to-install-esp8266-board-arduino-ide\/","title":{"rendered":"Installing ESP8266 Board in Arduino IDE (Windows, Mac OS X, Linux)"},"content":{"rendered":"\n<p>The ESP8266 community created an add-on for the Arduino IDE that allows you to program the ESP8266 using the Arduino IDE and its programming language.<\/p>\n\n\n\n<p>This tutorial shows how to install the ESP8266 board in Arduino IDE whether you\u2019re using Windows, Mac OS X or Linux. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Watch the Video Tutorial<\/h2>\n\n\n\n<p><em>This tutorial is available in video format (watch below) and in written format (continue reading this page).&nbsp;<\/em><\/p>\n\n\n<p style=\"text-align:center\"><iframe width=\"720\" height=\"405\" src=\"https:\/\/www.youtube.com\/embed\/OC9wYhv6juM?rel=0\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n\n\n\n<p>If you like the ESP8266 and want to build more projects,&nbsp;you can get my eBook:&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/randomnerdtutorials.com\/home-automation-using-esp8266\/\" target=\"_blank\">Home Automation using ESP8266<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites: Arduino IDE Installed<\/h2>\n\n\n\n<p>Before starting this installation procedure, make sure you have the latest version of the Arduino IDE installed in your computer. If you don\u2019t, uninstall it and install it again. Otherwise, it may not work.<\/p>\n\n\n\n<p>Having the latest Arduino IDE software installed from <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.arduino.cc\/en\/Main\/Software\" target=\"_blank\">arduino.cc\/en\/Main\/Software<\/a>, continue with this tutorial.<\/p>\n\n\n\n<p><strong>Do you need an ESP8266 board? <\/strong>You can <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/makeradvisor.com\/tools\/esp8266-esp-12e-nodemcu-wi-fi-development-board\/\" target=\"_blank\">buy it here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install ESP8266 Add-on in Arduino IDE <\/h2>\n\n\n\n<p>To install the ESP8266 board in your Arduino IDE, follow these next instructions:<\/p>\n\n\n\n<ol><li><p>In your Arduino IDE, go to <strong>File<\/strong>&gt; <strong>Preferences<\/strong><\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"197\" height=\"342\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-open-preferences.png?resize=197%2C342&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Install ESP8266 Board add-on in Arduino IDE open preferences\" class=\"wp-image-86929\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-open-preferences.png?w=197&amp;quality=100&amp;strip=all&amp;ssl=1 197w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-open-preferences.png?resize=173%2C300&amp;quality=100&amp;strip=all&amp;ssl=1 173w\" sizes=\"(max-width: 197px) 100vw, 197px\" \/><\/figure><\/div><\/li><li><p>Enter <strong>http:\/\/arduino.esp8266.com\/stable\/package_esp8266com_index.json<\/strong> into the &#8220;Additional Boards Manager URLs&#8221; field as shown in the figure below. Then, click the &#8220;OK&#8221; button:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"722\" height=\"607\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-enter-URL.png?resize=722%2C607&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Install ESP8266 Board add-on in Arduino IDE enter URL\" class=\"wp-image-86927\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-enter-URL.png?w=722&amp;quality=100&amp;strip=all&amp;ssl=1 722w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-enter-URL.png?resize=300%2C252&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 722px) 100vw, 722px\" \/><\/figure><\/div><p><strong>Note:<\/strong> if you already have the ESP32 boards URL, you can separate the URLs with a comma as follows:<\/p><pre class=\"wp-block-preformatted\">https:\/\/dl.espressif.com\/dl\/package_esp32_index.json, http:\/\/arduino.esp8266.com\/stable\/package_esp8266com_index.json<\/pre><\/li><li><p>Open the Boards Manager. Go to <strong>Tools<\/strong> &gt; <strong>Board<\/strong> &gt; <strong>Boards Manager\u2026<\/strong><\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"671\" height=\"336\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-open-boards-manager.png?resize=671%2C336&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Install ESP8266 Board add-on in Arduino IDE Open boards manager\" class=\"wp-image-86928\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-open-boards-manager.png?w=671&amp;quality=100&amp;strip=all&amp;ssl=1 671w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-open-boards-manager.png?resize=300%2C150&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 671px) 100vw, 671px\" \/><\/figure><\/div><\/li><li><p>Search for <strong>ESP8266<\/strong> and press install button for the &#8220;<strong>ESP8266 by ESP8266 Community<\/strong>&#8220;:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"342\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-search-ESP8266.png?resize=786%2C342&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Install ESP8266 Board add-on in Arduino IDE search ESP8266\" class=\"wp-image-86930\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-search-ESP8266.png?w=786&amp;quality=100&amp;strip=all&amp;ssl=1 786w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-search-ESP8266.png?resize=300%2C131&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-search-ESP8266.png?resize=768%2C334&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 786px) 100vw, 786px\" \/><\/figure><\/div><\/li><li><p>That&#8217;s it. It should be installed after a few seconds.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"336\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/ESP8266-Board-add-on-in-Arduino-IDE-installed.png?resize=786%2C336&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP8266 Board add-on in Arduino IDE installed\" class=\"wp-image-86925\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/ESP8266-Board-add-on-in-Arduino-IDE-installed.png?w=786&amp;quality=100&amp;strip=all&amp;ssl=1 786w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/ESP8266-Board-add-on-in-Arduino-IDE-installed.png?resize=300%2C128&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/ESP8266-Board-add-on-in-Arduino-IDE-installed.png?resize=768%2C328&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 786px) 100vw, 786px\" \/><\/figure><\/div><\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Testing the Installation<\/h2>\n\n\n\n<p>To test the ESP8266 add-on installation, let&#8217;s see if we can blink an LED with the ESP8266 using the Arduino programming language.<\/p>\n\n\n\n<p><strong>Parts Required<\/strong><\/p>\n\n\n\n<p>Here\u2019s the hardware that you need to complete&nbsp;this project:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/makeradvisor.com\/tools\/esp8266-esp-12e-nodemcu-wi-fi-development-board\/\" target=\"_blank\">ESP8266<\/a>&nbsp;\u2013 read&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/makeradvisor.com\/best-esp8266-wi-fi-development-board\/\" target=\"_blank\">Best ESP8266 Wi-Fi Development Boards<\/a><\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/makeradvisor.com\/tools\/3mm-5mm-leds-kit-storage-box\/\" target=\"_blank\">LED<\/a><\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/makeradvisor.com\/tools\/resistors-kits\/\" target=\"_blank\">330 Ohm resistor<\/a><\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/makeradvisor.com\/tools\/mb-102-solderless-breadboard-830-points\/\" target=\"_blank\">Breadboard<\/a><\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/makeradvisor.com\/tools\/jumper-wires-kit-120-pieces\/\" target=\"_blank\">Jumper wires<\/a><\/li>\n<\/ul>\n\n\n\n<p>If you&#8217;re using an <a rel=\"noreferrer noopener\" href=\"https:\/\/makeradvisor.com\/tools\/esp-01-wi-fi-board\/\" target=\"_blank\">ESP8266-01<\/a>, you also need an <a href=\"https:\/\/makeradvisor.com\/tools\/ftdi-programmer-board\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">FTDI programmer<\/a> to upload code.<\/p>\n\n\n<p>You can use the preceding links or go directly to <a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\">MakerAdvisor.com\/tools<\/a> to find all the parts for your projects at the best price!<\/p><p style=\"text-align:center;\"><a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/header-200.png?w=1200&#038;quality=100&#038;strip=all&#038;ssl=1\"><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Uploading the Sketch<\/h2>\n\n\n\n<p><strong>Uploading the Sketch to the ESP-12E<\/strong><\/p>\n\n\n\n<p>If you\u2019re using an ESP-12E NodeMCU Kit, uploading the sketch is very simple, since it has built-in programmer. Plug your board to your computer. Make sure you have the right board selected:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"669\" height=\"906\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-select-board.png?resize=669%2C906&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Install ESP8266 Board add-on in Arduino IDE select board\" class=\"wp-image-86931\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-select-board.png?w=669&amp;quality=100&amp;strip=all&amp;ssl=1 669w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-select-board.png?resize=222%2C300&amp;quality=100&amp;strip=all&amp;ssl=1 222w\" sizes=\"(max-width: 669px) 100vw, 669px\" \/><\/figure><\/div>\n\n\n<p>You also need to select the Port:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"584\" height=\"560\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-select-COM-port.png?resize=584%2C560&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Install ESP8266 Board add-on in Arduino IDE select COM port\" class=\"wp-image-86932\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-select-COM-port.png?w=584&amp;quality=100&amp;strip=all&amp;ssl=1 584w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-ESP8266-Board-add-on-in-Arduino-IDE-select-COM-port.png?resize=300%2C288&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 584px) 100vw, 584px\" \/><\/figure><\/div>\n\n\n<p>Then, copy the code provided:<\/p>\n\n\n<pre style=\"max-height: 40em; margin-bottom: 20px;\"><code class=\"language-c\">\/*********\n  Rui Santos\n  Complete project details at http:\/\/randomnerdtutorials.com  \n*********\/\n\nint pin = 2;\n\nvoid setup() {\n  \/\/ initialize GPIO 2 as an output.\n  pinMode(pin, OUTPUT);\n}\n\n\/\/ the loop function runs over and over again forever\nvoid loop() {\n  digitalWrite(pin, HIGH);   \/\/ turn the LED on (HIGH is the voltage level)\n  delay(1000);               \/\/ wait for a second\n  digitalWrite(pin, LOW);    \/\/ turn the LED off by making the voltage LOW\n  delay(1000);               \/\/ wait for a second\n}\n<\/code><\/pre>\n\t<p style=\"text-align:center\"><a class=\"rntwhite\" href=\"https:\/\/github.com\/RuiSantosdotme\/Random-Nerd-Tutorials\/raw\/master\/Projects\/blink_led_esp8266.ino\" target=\"_blank\">View raw code<\/a><\/p>\n\n\n\n<p>Click the \u201cUpload\u201d button in the Arduino IDE and wait a few seconds until you see the message \u201cDone uploading.\u201d in the bottom left corner.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"463\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/09\/blinking-an-led-esp8266-upload.png?resize=750%2C463&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Done uploading sketch to ESP8266 using Arduino IDE\" class=\"wp-image-52707\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/09\/blinking-an-led-esp8266-upload.png?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/09\/blinking-an-led-esp8266-upload.png?resize=300%2C185&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p><strong>Uploading the Sketch to the ESP-01<\/strong><\/p>\n\n\n\n<p>Uploading code to the ESP-01 requires establishing a serial communication between your ESP8266 and a FTDI Programmer as shown in the schematic diagram below.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/02\/ESP8266-Flasher.png?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/02\/ESP8266-Flasher.png?w=1200&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP8266 ESP-01 Uploading sketch with FTDI programmer Arduino IDE\" class=\"wp-image-5131\"\/><\/a><\/figure><\/div>\n\n\n<p>The following table shows the connections you need to make between the ESP8266 and the FTDI programmer.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>ESP8266<\/strong><\/td><td><strong>FTDI programmer<\/strong><\/td><\/tr><tr><td>RX<\/td><td>TX<\/td><\/tr><tr><td>TX <\/td><td>RX<\/td><\/tr><tr><td>CH_PD<\/td><td>3.3V<\/td><\/tr><tr><td>GPIO 0<\/td><td>GND<\/td><\/tr><tr><td>VCC<\/td><td>3.3V<\/td><\/tr><tr><td>GND <\/td><td>GND<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>If you have a brand new FTDI Programmer and you need to install your FTDI drivers on Windows PC, visit this website for the official drivers: <a rel=\"noreferrer noopener\" href=\"http:\/\/www.ftdichip.com\/Drivers\/VCP.htm\" target=\"_blank\">http:\/\/www.ftdichip.com\/Drivers\/VCP.htm<\/a>. <\/p>\n\n\n\n<p>Then, you just need to connect the FTDI programmer to your computer, and upload the sketch to your ESP8266 board. You should see the &#8220;Done Uploading&#8221; message after a few seconds.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Schematic<\/h2>\n\n\n\n<p><strong>If you&#8217;re using an ESP8266-12E<\/strong><\/p>\n\n\n\n<p>Connect an LED to your ESP8266, as shown in the following schematic diagram. The LED should be connected to GPIO 2 (D4).<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"930\" height=\"560\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/09\/esp8266-blinking-led-arduino-ide_bb.png?resize=930%2C560&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP8266 NodeMCU board Blinking an LED with Arduino IDE\" class=\"wp-image-52708\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/09\/esp8266-blinking-led-arduino-ide_bb.png?w=930&amp;quality=100&amp;strip=all&amp;ssl=1 930w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/09\/esp8266-blinking-led-arduino-ide_bb.png?resize=300%2C181&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/09\/esp8266-blinking-led-arduino-ide_bb.png?resize=768%2C462&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 930px) 100vw, 930px\" \/><\/figure><\/div>\n\n\n<p><strong>If you&#8217;re using an ESP8266-01<\/strong><\/p>\n\n\n\n<p>If you&#8217;re using the ESP8266-01 assemble the following circuit.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/09\/ESP8266-Blinking-an-LED.png?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1047\" height=\"825\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/09\/ESP8266-Blinking-an-LED.png?resize=1047%2C825&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP8266 ESP-01 Blinking an LED with Arduino IDE\" class=\"wp-image-12154\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/09\/ESP8266-Blinking-an-LED.png?w=1047&amp;quality=100&amp;strip=all&amp;ssl=1 1047w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/09\/ESP8266-Blinking-an-LED.png?resize=300%2C236&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/09\/ESP8266-Blinking-an-LED.png?resize=1024%2C807&amp;quality=100&amp;strip=all&amp;ssl=1 1024w\" sizes=\"(max-width: 1047px) 100vw, 1047px\" \/><\/a><\/figure><\/div>\n\n\n<p>If everything went well, your LED should be blinking every 1 second.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting <\/h2>\n\n\n\n<p><strong>1)<\/strong> If you try to upload a new sketch to your ESP8266 and you get this error message &#8220;<em>esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header<\/em>&#8220;. It means that your ESP8266 is not in flashing\/uploading mode.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1150\" height=\"184\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Failed-to-connect-to-ESP8266-Timed-out.png?resize=1150%2C184&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"esptool.FatalError Failed to connect to ESP8266: Timed out waiting for packet header\" class=\"wp-image-86943\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Failed-to-connect-to-ESP8266-Timed-out.png?w=1150&amp;quality=100&amp;strip=all&amp;ssl=1 1150w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Failed-to-connect-to-ESP8266-Timed-out.png?resize=300%2C48&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Failed-to-connect-to-ESP8266-Timed-out.png?resize=768%2C123&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Failed-to-connect-to-ESP8266-Timed-out.png?resize=1024%2C164&amp;quality=100&amp;strip=all&amp;ssl=1 1024w\" sizes=\"(max-width: 1150px) 100vw, 1150px\" \/><\/figure><\/div>\n\n\n<p>Having the right board name and COM port selected, follow these steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Hold-down the &#8220;<strong>BOOT\/FLASH<\/strong>&#8221; button in your ESP8266 development board<\/li>\n\n\n\n<li>Press the \u201c<strong>Upload<\/strong>\u201d button in the Arduino IDE to upload your sketch:<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"34\" height=\"29\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2016\/12\/arduino-ide-upload-button.png?resize=34%2C29&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Arduino IDE uploading new sketch to ESP32\" class=\"wp-image-65439\"\/><\/figure><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>When you see the&nbsp;&nbsp;&#8220;<strong>Connecting&#8230;.<\/strong>&#8221; message in your Arduino IDE, release the finger from the &#8220;<strong>BOOT\/FLASH<\/strong>&#8221;&nbsp;button<\/li>\n\n\n\n<li> After that, you should see the &#8220;<strong>Done uploading<\/strong>&#8221; message <\/li>\n<\/ul>\n\n\n\n<p>Your ESP8266 should have the new sketch running. Press the &#8220;<strong>ENABLE\/RESET<\/strong>&#8221; button to restart the ESP8266 and run the new uploaded sketch. <\/p>\n\n\n\n<p><strong>2)<\/strong> If you get the error &#8220;COM Port not found\/not available&#8221;, you might need to install the CP210x Drivers:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/install-esp32-esp8266-usb-drivers-cp210x-windows\/\">Install USB Drivers \u2013 CP210x USB to UART Bridge (Windows PC)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/install-esp32-esp8266-usb-drivers-cp210x-mac-os\/\">Install USB Drivers \u2013 CP210x USB to UART Bridge (Mac OS X)<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Wrapping Up<\/h2>\n\n\n\n<p>This is a quick guide that illustrates how to prepare your Arduino IDE for the ESP8266 on a Windows PC, Mac OS X, or Linux computer.<\/p>\n\n\n\n<p>Next, you might want to read:&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/randomnerdtutorials.com\/getting-started-with-esp8266-wifi-transceiver-review\/\" target=\"_blank\">Getting started with ESP8266<\/a>.<\/p>\n\n\n\n<p>That&#8217;s it, you&#8217;re ready to start building your own IoT projects with the ESP8266!  <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/randomnerdtutorials.com\/home-automation-using-esp8266\/\" target=\"_blank\"><strong>Home Automation Using ESP8266<\/strong><\/a><\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/randomnerdtutorials.com\/esp8266-web-server\/\" target=\"_blank\">ESP8266 Web Server Step-by-step<\/a><\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" style=\"font-size: inherit; background-color: initial;\" href=\"https:\/\/randomnerdtutorials.com\/esp8266-wi-fi-button-diy-amazon-dash-button-clone\/\" target=\"_blank\">ESP8266 Wi-Fi Button \u2013 DIY Amazon Dash Button Clone<\/a><\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/randomnerdtutorials.com\/esp8266-daily-task-publish-temperature-readings-to-thingspeak\/\" target=\"_blank\">ESP8266 Daily Task \u2013 Publish Temperature Readings to ThingSpeak<\/a><\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/randomnerdtutorials.com\/esp8266-weather-forecaster\/\" target=\"_blank\">ESP8266 Weather Forecaster<\/a><\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/randomnerdtutorials.com\/nextion-display-with-esp8266-touchscreen-user-interface-for-node-red\/\" target=\"_blank\">Nextion Display with ESP8266 \u2013 Touchscreen User Interface for Node-RED<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/projects-esp8266\/\">More ESP8266 projects&#8230;<\/a><\/li>\n<\/ul>\n\n\n\n<p>Do you have any questions?&nbsp;Leave a comment below!<\/p>\n\n\n\n<p>Thanks for reading. If you like this post probably you might like my next ones, so <a rel=\"noreferrer noopener\" href=\"https:\/\/randomnerdtutorials.com\/download\" target=\"_blank\">subscribe to my newsletter<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The ESP8266 community created an add-on for the Arduino IDE that allows you to program the ESP8266 using the Arduino IDE and its programming language. This tutorial shows how to &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Installing ESP8266 Board in Arduino IDE (Windows, Mac OS X, Linux)\" class=\"read-more button\" href=\"https:\/\/randomnerdtutorials.com\/how-to-install-esp8266-board-arduino-ide\/#more-12142\" aria-label=\"Read more about Installing ESP8266 Board in Arduino IDE (Windows, Mac OS X, Linux)\">CONTINUE READING \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":86935,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[245,214,246,300,269,264],"tags":[],"class_list":["post-12142","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino-ide","category-esp8266","category-esp8266-arduino-ide","category-0-esp8266","category-guide-project","category-project"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/07\/Install-the-ESP8266-Board-in-Arduino-IDE-in-less-than-1-minute-Windows-Mac-OS-X-and-Linux.jpg?fit=1280%2C720&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/12142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/comments?post=12142"}],"version-history":[{"count":1,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/12142\/revisions"}],"predecessor-version":[{"id":149304,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/12142\/revisions\/149304"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/86935"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=12142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=12142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=12142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}