×
Set Up the Arduino IDE for ESP32
November 17, 2019

ESP32 based development boards offer a very nice microcontroller along with WiFi and Bluetooth connectivity. Even better, these boards can be programmed directly from the Arduino IDE, making prototyping super easy, quick, and fun!

These boards have a flash based filesystem connected via Serial Peripheral Interface (SPI) imaginatively named SPIFFS (SPI Flash FileSystem). The Arduino IDE can upload files directly to SPIFFS for later access via sketch by installing the data uploader.

This guide will show how to add both the board definitions and the SPIFFS uploader to the Arduino IDE…let’s go!

Bored? Here’s the definition

Two steps are needed to get the board definitions loaded.

First, we need to tell the Arduino IDE about a new place to find definitions from. That place is:

https://dl.espressif.com/dl/package_esp32_index.json

Open preferences for the Arduino IDE, go to the Settings tab, and add that URL to Additional Boards Manager URLs.

Close the preferences (in the affirmative, of course!) and then proceed to the Tools menu. Under Tools, go to Board—>Boards Manager… and select it. A dialog will appear, type esp32 into the search bar at the top. Install esp32 by Espressif Systems and close the dialog.

When you return to the Tools—>Board menu, an ESP32 section is now available. Select your board from the list and you’re all set!

What about that spiffy file system?

To enable uploading data to the SPIFFS on your board, go to:

https://github.com/me-no-dev/arduino-esp32fs-plugin/releases/

Download the latest ESP32FS-_ver_.zip file. At the time of this writing, this was ESP32FS-1.0.zip.

Unzip the file. This will give you a folder called ESP32FS. Add this folder to the tools folder (which you may also need to create) under your Arduino folder. On MacOS, the Arduino folder is at ~/Documents/Arduino. The final path should be ~/Documents/Arduino/tools/ESP32FS. For other platforms click here.

After restarting the IDE, you should now have an option on the Tools menu called ESP32 Sketch Data Upload. More to come on how to use this!

Conclusion

That’s it! Your Arduino IDE is all set up for ESP32 boards. Now…what will you do with it?

© 2019 Rich Seiffert
All text, bad puns, images, deep insights, videos, terrible jokes, mathematical formulas, half–assed ideas and icons on this site are my own work — they may not be reproduced in any form without my permission