Setting up Arduino IDE for NodeMCU
In this article, we will get started with a very famous ESP8266 board among the IoT community, the NodeMCU. ESP8266 is a low-cost Wi-Fi microchip with integrated TCP/IP stack, meaning it can give any microcontroller access to the WiFi network. There are many flavors for ESP8266 boards out there, we will be working with the one known as NodeMCU.
Step – 2: Press ‘Just Download’ button on this new page for your OS. The button can be seen highlighted in red box.
Step – 3: You should get a file downloaded in few minutes after pressing this button. Now Install that downloaded software based on installation procedure of your operating system.
Step – 4: After installation your should be able to see this following icon in your Windows/Mac OSX/ Linux. Open this software with this icon.
Step – 5: You should be able to see the following window opened. (In this example its a window of Arduino IDE opened in Mac OSX).
Step – 6: Go to File > Preferences and paste the following in the Additional Boards Manager URLs.
Step – 7: Now go to Tools > Board and select Boards Manager appearing at the most top.
Step – 8: Search for esp8266 by esp8266 community in the Boards Manager, which I already got installed in my system as shown below. But you have to Click install in case you need to choose version choose the latest one. This may take a while.
Step – 9: We are almost there now. Let’s test are we all set to rock!
Go to File on top of this IDE and press Example then go to Digital and then press Blink.
Step – 10: You should be able to see this following Blink Sketch Example Window.
Step – 12: Now connect your NodeMCU to your laptop/PC using the micro USB cable you possibly got with your board.
Step – 13: Go to ‘Tools’ in upper top bar and then go to Boards and Select your respective esp8266 board e.g. ‘NodeMCU 1.0’.
Now go to ‘Tools’ again and then go to ‘Port’, you should be able to see a port like ‘COM5’. If no port is showing, check if NodeMCU is connected to your computer or trying reattaching the board. Select the port.
Step – 14: On main screen press this arrow button pointing towards right as show in following picture. It should start uploading code into your board.
Step – 15: After it says ‘Done Uploading’. You should be able to see an LED blinking on your NodeMCU board.
Yaaay! you are all set to go ahead!