ESP8266 NodeMCU is the smallest & cheapest IoT Development board. Price is only starting from $2. There is two chipset model available, one is CH340 and another one is CP2102. You can buy it from the following links.
In this post, I will tell how to configure & upload code in ESP8266 from Arduino IDE. This is for the absolute beginners who are very new to this device. You can also see tutorial video in Hindi.
Download Arduino IDE
First go to the following link and download setup files for your system.
If you are using windows, then it will be very simple. Just Download installer or zip and run the EXE file.
Here in this tutorial I will share the process to install Arduino IDE in Linux system.
How to Install Arduino in Linux
In the download page mentioned earlier, select Linux 32/64 bit version according to your system & download the file which extension is .tar.
Open the file using Archive manager and extract to a folder. I am extracting it a folder setup inside my home directory.
Then go to
Now run the following command to create a desktop and start menu launcher shortcut. If you do not want to create shortcut then skip this step and click the file named “
Now go to properties of newly created desktop icon and click allow executing file as program.
Now you are done. Arduino IDE has been installed successfully.
Add ESP8266 to Arduino IDE
To add ESP8266 Nodemcu module in the IDE, we have to go preferences from the file menu.
Now paste the following URL to the Additional board manager URL.
Now go to Tools > Board > Board manager.
Now type esp8266 in search bar. Then select latest stable build & install.
Now from the tools menu do the following settings.
Board: Generic ESP8266 Module
Flash Mode: DOUT
Flash Size: 4M(1M SPIFFS)
ESP8266 generally comes with 32 Mb(4M). We reserve 1M for the file store for file
Now from the examples chose basic LED blinking program to upload in Nodemcu.
Now connect ESP8266 via micro USB to USB data cable.
Select port from the tools menu. Normally the port is /dev/ttyUSB0
Now Click the Right arrow icon to upload the code.
Now you have successfully uploaded the code & built-in LED will start blinking.
If you are facing “cannot access /dev/ttyUSB0”, then follow the Post below.
If you wanted to create bin file from Arduino IDE and flash it into ESP8266, then follow these posts.