NederlandsKlik deze knop voor de Nederlandstalige website

ESP32 with Arduino IDE on Linux and Windows

The ESP32 WiFi/Bluetooth microcontroller can be programmed using the Arduino IDE. Installing support for the chip into the IDE used to be a bit complicated and time consuming. As it was a manual process, you needed to repeat it every time you wanted to update the core. With the latest release (1.0.0, july 2018) things became much easier. Now you can install the core into the Arduino IDE using the built-in boards manager. The boards manager will also prompt you when an update is available and install the update for you.

Install or upgrade the Arduino IDE

Of course, you need to have the Arduino IDE already installed. If you have already installed it, maybe now is a good time to update it to the latest version. Check out these links if you need help with that:

Installing the Arduino IDE on Windows 10

Install or upgrade to the latest Arduino IDE on Linux

Install Arduino core for ESP32

Start the Arduino IDE and open Preferences window by clicking File > Preferences.

ESP32 with Adrduino IDE on Linux and Windows --Settings
ESP32 with Adrduino IDE on Linux and Windows –Settings

And enter this URL: https://dl.espressif.com/dl/package_esp32_index.json into the “Additional Board Manager URLs” field. You can add multiple URLs, separating them with commas.

Open Boards Manager from Tools > Board > Board Manager menu and install esp32 platform.

ESP32 with Adrduino IDE on Linux and Windows - Board Manager
ESP32 with Adrduino IDE on Linux and Windows – Board Manager

Select your ESP32 board from Tools > Board menu. If you’re not sure which one to choose, select the “Dev Module”.

ESP32 with Adrduino IDE on Linux and Windows - Select board
ESP32 with Adrduino IDE on Linux and Windows – Select board

Finally, make sure you have selected the appropriate COM-port for your module:

ESP32 with Adrduino IDE on Linux and Windows - Select COM port
ESP32 with Adrduino IDE on Linux and Windows – Select COM port

You can now test your module by uploading one of the example sketches by clicking File > Examples and scrolling to the “Examples for ESP32 Dev Module” section.

ESP32 with Adrduino IDE on Linux and Windows - Examples
ESP32 with Adrduino IDE on Linux and Windows – Examples

That’s all! Happy coding!

Installing Arduino core for ESP8266 instead

If you want install the Arduino core for the ESP8266, this chip’s predecessor, then you should take a look here: ESP8266 NodeMcu and Arduino IDE on Linux. You will find that the procedure is now the same, for both chipes, and on Windows and Linux.

This post is also available in Dutch.

Add a Comment

Your email address will not be published. Required fields are marked *