ESP WROOM 32 : How To Setup ESP32 NodeMCU With Arduino IDE

Advertisement

Here is Step by Step Guide to Setup on How to Setup ESP32 NodeMCU with Arduino IDE on Windows 10 PC. In our previous article, we recomanded ESP WROOM 32 dev board over Adafruit Feather as cost effective option. In this guide, we will help to setup ESP WROOM 32 dev board with Arduino IDE. We are using clone of DOIT ESP-WROOM-32 Devkit V1 and for the most boards, these are “ESP32 Dev Module” to Arduino IDE.

First, you will attach the to Windows 10 PC with any USB data cable (used with almost any Android Smartphone of these days). Open Device Manager and expand the COM. In the below webpages, you’ll get the resources for installing the USB driver for the board :

The above steps are required to make sure that the board you got is not a faulty board. You may omit the above steps but omit may invite random trial and error. The board we are using looks like the below photo (except, it lacks DO IT logo on backside) :

How To Setup ESP32 NodeMCU With Arduino IDE

Turn off any real-time anti-virus software. The packages we will install will fail to compile sketch from Arduino IDE with running real-time anti-virus software. You should remember it for everytime working with this dev board. Else you’ll get peculiar core/core/a copying error on Arduino IDE. Real-time anti-virus software probably lock some files & provoke the error.

The above configaration on Windows 10 may take time but the PC can be easily handled like UNIX/Linux for dev works.

Advertisement

---

What exactly we need is cloning this repo inside Arduino’s one specific directory :

Vim

1

https://github.com/espressif/arduino-esp32

Arduino IDE commonly get installed in this path :

Vim

1

C:\Users\<username>\Documents\Arduino

For me, it is :

Vim

1

C:\Users\abhishekghosh\Documents\Arduino

Open Git Bash command line tool there from right click context menu or change directory to that path :

Vim

1

cd~/Documents/Arduino

Make directory structure and change directory like we have shown below :

Vim

1

2

3

cd~/Documents/Arduino

mkdir-phardware/espressif

cd hardware/espressif

Now, clone that repo inside a directory named esp32 so that the path becomes ~/Documents/Arduino/hardware/espressif/esp32 :

Vim

1

2

cd~/Documents/Arduino/hardware/espressif

git clone https://github.com/espressif/arduino-esp32.git esp32

It will take a while. It is around 200 mb download. After download is complete, change directory to esp32 :

Vim

1

2

cd esp32

ls-al

Run an update to download some third party repositories inside the current repo :

Vim

1

git submodule update--init--recursive

You will notice :

Vim

1

https://github.com/espressif/arduino-esp32/tree/master/libraries

AzureIoT and BLE has third party repo. Unless you do the above steps, you’ll face compilation error with AzureIoT and BLE on Arduino IDE.

Next, open the following location on Windows Explorer :

Vim

1

C:\Users\<username>\Documents\Arduino\hardware\espressif\esp32\tools

You’ll notice an application named get inside that Arduino\hardware\espressif\esp32\tools directory. Double click to run it. It will open a command line window and download the required tools for compilation on Arduino IDE. It will do the job and automatically will get closed. Unless you do these steps, you’ll get core/core/a copying error on Arduino IDE. In case this step is not completed, double click to run the get application.

The above steps will complete installation of all the required software for ESP32 NodeMCU (ESP WROOM 32) dev board.