• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » ESP WROOM 32 : How To Setup ESP32 NodeMCU With Arduino IDE

By Abhishek Ghosh February 21, 2019 5:58 pm Updated on February 21, 2019

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 :

Vim
1
2
https://docs.espressif.com/projects/esp-idf/en/latest/get-started/establish-serial-connection.html
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

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) :

Advertisement

---

ESP WROOM 32 How To Setup ESP32 NodeMCU With Arduino IDE

 

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.

You need Git for Windows to be installed. We have guides on how to setup Git on Windows 10 PC. We expect that the reader already have Ubuntu Bash configured for Windows 10 PC like our guide.

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

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 -p hardware/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.

Now, open Arduino IDE. Connect the ESP32 NodeMCU (ESP WROOM 32) dev board. Do these changes :

Tools > Boards > ESP32 Dev Module

Tools > Flash Frequency > 40 MHz

Tools > Upload Speed > 115200

Tools > Port > (select the active COM port ESP32 NodeMCU (ESP WROOM 32) dev board is attached)

Now, to test, load from example :

File > Examples > WiFi > Wifi Scan

Which is like this :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "WiFi.h"
 
void setup()
{
    Serial.begin(115200);
 
    // Set WiFi to station mode and disconnect from an AP if it was previously connected
    WiFi.mode(WIFI_STA);
    WiFi.disconnect();
    delay(100);
 
    Serial.println("Setup done");
}
 
void loop()
{
    Serial.println("scan start");
 
    // WiFi.scanNetworks will return the number of networks found
    int n = WiFi.scanNetworks();
    Serial.println("scan done");
    if (n == 0) {
        Serial.println("no networks found");
    } else {
        Serial.print(n);
        Serial.println(" networks found");
        for (int i = 0; i < n; ++i) {
            // Print SSID and RSSI for each network found
            Serial.print(i + 1);
            Serial.print(": ");
            Serial.print(WiFi.SSID(i));
            Serial.print(" (");
            Serial.print(WiFi.RSSI(i));
            Serial.print(")");
            Serial.println((WiFi.encryptionType(i) == WIFI_AUTH_OPEN)?" ":"*");
            delay(10);
        }
    }
    Serial.println("");
 
    // Wait a bit before scanning again
    delay(500);
}

Switch on some WiFi devices, hotspots. Open Arduino serial monitor (Tools > Serial Monitor). You’ll get WiFi scan result on Arduino serial monitor like I got :

Vim
1
2
3
4
5
6
7
8
9
10
11
Setup done
scan start
scan done
3 networks found
1: DIRECT-HnDESKTOP-J81L8BRmskL (-49)*
2: SamsungGalaxy (-63)*
3: amartya (-86)*
 
scan start
scan done
...

The above sketch proves that the setup and board is correct.

Tagged With esp wroom 32 arduino , esp32 arduino , nodemcu esp32 arduino , esp32 wroom arduino ide installation , nodemcu 32s in arduino ide , esp32 nodemcu , esp wroom 32 , arduino esp wroom32 , esp32 arduino usb driver , esp32 arduino setup
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

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

  • WROOM ESP32 Example Codes For IBM Watson IoT Platform

    Here Are Few WROOM ESP32 Example Codes For IBM Watson IoT Platform So That Anyone Can Get Started With Both of Them Without Huge Experience.

  • IoT Based Pulse Oximeter With ESP32, MAX30102 and IBM Watson IoT

    Pulse oximeters are in use since long during an operation, in intensive care, in the emergency room and other places such as in unpressurized aircraft. The COVID-19 pandemic made pulse oximetry technology for the consumers. Most of the finger pulse oximeters in the market lack BLE and Wi-Fi. There are only a few finger pulse […]

  • Control Multiple AC Appliances With One ESP32 Arduino

    Here is how to use ESP32 and IBM Watson IoT to control multiple relays (i.e. multiple AC appliances) by pushbutton and over the internet.

  • WiFi With Arduino For IoT : ESP8266, ESP32, NodeMCU, Adafruit Feather

    ESP8266 has wider range of models and ESP 01 commonly seen as cheapest. ESP32 has Bluetooth too. NodeMCU, Adafruit Feather has WiFi and Bluetooth.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy