How to configure Arduino IDE for ESP32s

Download and install the Arduino IDE from the official web site.

1 - In your Arduino IDE, go to File> Preferences

Installing ESP32 Add-on in Arduino IDE Windows, Mac OS X, Linux open preferences

 

2- Enter https://dl.espressif.com/dl/package_esp32_index.json into the “Additional Board Manager URLs” field as shown in the figure below. Then, click the “OK” button:

 

Installing ESP32 Add-on in Arduino IDE Windows, Mac OS X, Linux enter URLs

 

3- Open the Boards Manager. Go to Tools > Board > Boards Manager…

 

Installing ESP32 Add-on in Arduino IDE Windows, Mac OS X, Linux open boards manager

 

4- Search for ESP32 and press install button for the “ESP32 by Espressif Systems“:

 

ESP32 Add-on in Arduino IDE Windows, Mac OS X, Linux Installed

 

5- That’s it. It should be installed after a few seconds.

 

ESP32 Board add-on in Arduino IDE installed

 

6- In Tools > Board menu select the DOIT ESP32 DEVKIT V1 board:

 

Arduino IDE select the ESP32 board in Tools menu

 

7- Select the Port (if you don’t see the COM Port in your Arduino IDE, you need to install the CP210x USB to UART Bridge VCP Drivers):

 

Arduino IDE select the ESP32 Port in Tools menu

 

8- Test your installation open the example under File > Examples > WiFi (ESP32) > WiFiScan

 

Arduino IDE open WiFiScan example for ESP32

 

9- upload the code with the button Arduino IDE upload WiFiScan sketch to ESP32. After few seconds you have to press the BOOT button on the board to complete the upload.

 

10- Open the Arduino IDE Serial Monitor Open Arduino IDE Serial Monitor at baud rate 115200 at a baud rate of 115200. You should see the networks available near your ESP32:

 

ESP32 Testing Add-on installation in Windows PC, Max OS X, and Linux computer

 

Installing WebSockets libraries for Arduino IDE and ESP32s

In the Arduino IDE open the menu Sketch->Include Library->Manage Libraries and search the WebSockets library by Markus Sattler  (see the picture below)

 

 

Select the library then click on Install button.