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 in Raspbian OS of Raspberry Pi 3B+. This is for the absolute beginners who are very new to this device. You can also see the tutorial video in Hindi.
Download Arduino IDE
First go to the following link and download setup files for your system.
Here select the Linux ARM Version and download the file in .tar.xz format.
Now extract the file & open the extracted folder.
Now Press F4 and open terminal on that folder.
Then 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 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.