Install Arduino IDE Raspberry Pi 3 B+ with ESP8266 Nodemcu

I will say Install Arduino IDE Raspberry Pi 3 B+ with ESP8266 Nodemcu. 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.

CH340 AliExpress Amazon
CP2102 AliExpress Amazon

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.

https://www.arduino.cc/en/Main/Software

Install Arduino IDE in Raspberry Pi 3B+ with  ESP8266 Nodemcu

Here select the Linux ARM Version and download the file in .tar.xz format.

Now extract the file & open the extracted folder.

Install Arduino IDE in Raspberry Pi 3B+ with  ESP8266 Nodemcu

Now Press F4 and open terminal on that folder.

Install Arduino IDE in Raspberry Pi 3B+ with  ESP8266 Nodemcu

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 namedarduinofrom the extracted path to start Arduino IDE.

Now you are done. Arduino IDE has been installed successfully.

Arduino IDE Raspberry Pi 3 B+

To add ESP8266 Nodemcu module in the IDE, we have to go preferences from the file menu.

Arduino IDE Raspberry Pi 3 B+

Now paste the following URL to the Additional board manager URL.

https://arduino.esp8266.com/stable/package_esp8266com_index.json

Arduino IDE Raspberry Pi 3 B+

Now go to Tools > Board > Board manager.

Install Arduino IDE in Raspberry Pi 3B+ with  ESP8266 Nodemcu

Now type esp8266 in search bar. Then select latest stable build & install.

Install Arduino IDE in Raspberry Pi 3B+ with  ESP8266 Nodemcu

Now from the tools menu do the following settings.
Board: Generic ESP8266 Module
Flash Mode: DOUT
Reset Method:
nodemcu
Flash Size: 4M(1M SPIFFS)


ESP8266 generally comes with 32 Mb(4M). We reserve 1M for the file store for file handlaning programmes. This is why we selected 1M SPIFFS. If you wish you can change SPIFFS size.

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. Arduino IDE Raspberry Pi 3 B+

Install Arduino IDE in Raspberry Pi 3B+ with  ESP8266 Nodemcu

Now you have successfully uploaded the code & built-in LED will start blinking.

Install Arduino IDE in Raspberry Pi 3B+ with  ESP8266 Nodemcu


If you are facing “cannot access /dev/ttyUSB0”, then follow the Post below.

How to fix cannot access /dev/ttyUSB0 in Arduino IDE

If you wanted to create a bin file from Arduino IDE and flash it into ESP8266, then follow these posts.

How to create bin file from Arduino IDElash bin file to ESP8266 from Windows OSF

How to flash bin file to ESP8266 from Linux OS

Share with Friends
0 0 votes
Rating
guest
0 Comments
Inline Feedbacks
View all comments