Shares

Installing the ESP32 Board in Arduino IDE (Windows instructions)

Shares

The ESP32 is currently being integrated with the Arduino IDE just like it was done for the ESP8266, but not everything is working at the moment (see here).

This add-on for the Arduino IDE allows you to program the ESP32 using the Arduino IDE and its programming language.

If you like the ESP32, you might also enjoy reading all my ESP8266 tutorials.

Let’s get started!

ESP32 Dev Board (ESP-WROOM-32)

Note:  you can also learn how to install the ESP32 Board in Arduino IDE on Mac or Linux computer or you read my Getting Started with ESP32 Dev Module.

Installing Python 2.7.x

Having the latest Arduino IDE software installed from arduino.cc/en/Main/Software. Follow these next instructions:

1) Go to Python website and download the 2.7.x version for Windows: https://www.python.org/downloads

2) Open the file and follow the installation wizard

3) Choose the option “Install for all users”

4) In Customize Python 2.7.X, you must enable the last option “Add python.exe to Path”

Installing Git

Having Git is optional, but it’s easier to download an prepare everything through Git’s Bash. Follow these next steps:

1) Download and install Git from git-scm.com

2) Launch Git Bash as Administrator and run the following command

python -m pip install --upgrade pip && \
pip install pyserial

3) Launch Git Bash normally and navigate to your Arduino IDE installation folder, in my case it’s in the Downloads folder:

cd Downloads/arduino-1.6.11/hardware
mkdir espressif
cd espressif

4) Run git clone to download the latest version of the ESP32 add-on and run the get.py file:

git clone https://github.com/espressif/arduino-esp32.git esp32 && \
cd esp32/tools/ && \
python get.py

5) Re-open the Arduino IDE software

Testing the Installation

Plug your ESP32 dev board to your computer.

1) Open Arduino IDE

2) Select your board in Tools > Board menu (in my case it’s the ESP32 Dev Module)

3) Select the COM port

4) Open one of these examples under File > Examples > WiFi (ESP32) > WiFi Scan

5) To make your ESP32 go into downloading/uploading mode: hold the BOOT button and press the EN button to reboot your ESP32

6) Press the Upload button in the Arduino IDE and wait a few seconds while the code compiles and uploads to your board. If everything is correct this what you should see:

7) Open the Arduino IDE serial monitor at a baud rate of 115200 to see the networks available near your ESP32:

This is a very basic tutorial that illustrates how to prepare your Arduino IDE for the ESP32 on a Windows PC.

Do you have any questions? Leave a comment down below!

Thanks for reading. If you like this post probably you might like my next ones, so please support me by subscribing my blog and my Facebook Page.

P.S. Learn how to install the ESP32 Board in Arduino IDE (Mac and Linux instructions)

P.P.S. Getting Started with ESP32 Dev Module

Leave a Comment:

Add Your Reply