Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (2024)

There’s an add-on for the Arduino IDE that allows you to program the ESP32 using the Arduino IDE and its programming language. In this tutorial we’ll show you how to install the ESP32 board in Arduino IDE whether you’re using Windows, Mac OS X or Linux.

Using Arduino 2.0? Follow this tutorial instead: Installing ESP32 Board in Arduino IDE 2.0

Watch the Video Tutorial

This tutorial is available in video format (watch below) and in written format (continue reading this page).

If you have any problems during the installation procedure, take a look at the ESP32 Troubleshooting Guide.

If you like the ESP32, enroll in our course: Learn ESP32 with Arduino IDE.

Prerequisites: Arduino IDE Installed

Before starting this installation procedure, you need to have Arduino IDE installed on your computer. There are two versions of the Arduino IDE you can install: version 1 and version 2.

You can download and install Arduino IDE by clicking on the following link: arduino.cc/en/Main/Software

Which Arduino IDE version do we recommend? At the moment, there are some plugins for the ESP32 (like the SPIFFS Filesystem Uploader Plugin) that are not yet supported on Arduino 2. So, if you intend to use the SPIFFS plugin in the future, we recommend installing the legacy version 1.8.X. You just need to scroll down on the Arduino software page to find it.

If you’ll use Arduino 2, you can follow this tutorial instead:

  • Installing ESP32 Board in Arduino IDE 2.0

If later on, you need to install the SPIFFS plugin, you can install Arduino 1.8.X and have both versions installed on your computer.

Do you need an ESP32 board? You can buy it here.

Installing ESP32 Add-on in Arduino IDE

To install the ESP32 board in your Arduino IDE, follow these next instructions:

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

    Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (1)
  2. Enter the following into the “Additional Board Manager URLs” field:

    https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

    Then, click the “OK” button:

    Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (2)

    Note: if you already have the ESP8266 boards URL, you can separate the URLs with a comma as follows:

    https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json
  3. Open the Boards Manager. Go to Tools > Board > Boards Manager…

    Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (3)
  4. Search for ESP32 and press install button for the “ESP32 by Espressif Systems“:

    Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (4)
  5. That’s it. It should be installed after a few seconds.

    Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (5)

Testing the Installation

Plug the ESP32 boardto your computer. With your Arduino IDE open, follow these steps:

1. Select your Board inTools>Boardmenu (in my case it’s theDOIT ESP32 DEVKIT V1)

Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (6)

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

Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (7)

3. Open the following example under File > Examples > WiFi (ESP32) > WiFiScan

Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (8)

4. A new sketch opens in your Arduino IDE:

Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (9)

5. Press theUploadbutton in the Arduino IDE. Wait a few seconds while the code compiles and uploads to your board.

Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (10)

6. If everything went as expected, you should see a “Done uploading.” message.

Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (11)

7. Open the Arduino IDE Serial Monitor at a baud rate of 115200:

Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (12)

8. Press the ESP32 on-boardEnablebutton and you should see the networks available near your ESP32:

Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (13)

Troubleshooting

1) If you try to upload a new sketch to your ESP32 and you get this error message “A fatal error occurred: Failed to connect to ESP32: Timed out… Connecting…“. It means that your ESP32 is not in flashing/uploading mode.

Having the right board name and COM port selected, follow these steps:

  • Hold-down the “BOOT” button in your ESP32 board
Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (14)
  • Press the “Upload” button in the Arduino IDE to upload your sketch:
Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (15)
  • After you see the“Connecting….” message in your Arduino IDE, release the finger from the “BOOT”button:
Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (16)
  • After that, you should see the “Done uploading” message

That’s it. Your ESP32 should have the new sketch running. Press the “ENABLE” button to restart the ESP32 and run the new uploaded sketch.

You’ll also have to repeat that button sequence every time you want to upload a new sketch. But if you want to solve this issue once for all without the need to press the BOOT button, follow the suggestions in the next guide:

  • [SOLVED] Failed to connect to ESP32: Timed out waiting for packet header

2) If you get the error “COM Port not found/not available”, you might need to install the CP210x Drivers:

  • Install USB Drivers – CP210x USB to UART Bridge (Windows PC)
  • Install USB Drivers – CP210x USB to UART Bridge (Mac OS X)

If you experience any problems or issues with your ESP32, take a look at our in-depth ESP32 Troubleshooting Guide.

Wrapping Up

This is a quick guide that illustrates how to prepare your Arduino IDE for the ESP32 on a Windows PC, Mac OS X, or Linux computer. If you encounter any issues during the installation procedure, take a look at the ESP32 troubleshooting guide.

Now, you can start building your own IoT projects with the ESP32!

  • Learn ESP32 with Arduino IDE [eBook + Video Course]
  • ESP32 vs ESP8266 – Pros and Cons
  • Free ESP32 Projects and Tutorials
  • Build an ESP32 Web Server with Arduino IDE
  • ESP32 DHT11/DHT22 Web Server with Arduino IDE

Thanks for reading.

Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials (2024)
Top Articles
Historia de Enfermería en Guatemala
Carga masiva de Recibos por Honorarios en PDT PLAME
Baue Recent Obituaries
Cvs Rt Pcr Test
Delta Air Lines - Login
Edgenuity Answer Key Algebra 1 Pdf
Delta Rastrear Vuelo
Jacob Chapel Live Stream
Colossians 2 Amplified
Melissa N. Comics
Rebecca Benedict Forum
Hessaire Mini Split Remote Control Manual
Apple Store Near Me Make Appointment
2013 Chevy Sonic Freon Capacity
Pip Calculator | Myfxbook
Best Transmission Service Margate
Bones And All Showtimes Near Tucson Spectrum 18
Minnesota Gophers Highlights
Stephjc Forum
American Eagle Store Locator
Warren County Skyward
Metv Plus Schedule Today Near Texas
Clay County Tax Collector Auto Middleburg Photos
Sour Animal Strain Leafly
Rochester Ny Missed Connections
Aldi Sign In Careers
R/Maddenultimateteam
OC IDEAS TO DRAW [80+ IDEAS!] ✍🏼 | Spin the Wheel - Random Picker
Left Periprosthetic Femur Fracture Icd 10
Importing Songs into Clone Hero: A Comprehensive Tutorial
Kobe Express Bayside Lakes Photos
Sotyktu Pronounce
Durrell: The Alexandria Quartet - The Modern Novel
Tsymo Pet Feeder Manual Pdf
Terraria Water Gun
Hyb Urban Dictionary
Publix – Supermarkt mit ökologischem Gewissen und exzellentem Service
Walgreens Wellington Green
Jessica Oldwyn Carroll Update
China Rose Plant Care: Water, Light, Nutrients | Greg App 🌱
Smokingmeatforum
Craigslist Farm Garden Modesto
Nsfw Otp Prompt Generator Dyslexic Friendly
Foolproof Module 6 Test Answers
Metro By T Mobile Sign In
About Baptist Health - Baptist Health
Watch Stephen Miller Have A Full Meltdown When Asked To Back Up Crime Claim With Facts
The Complete Guide to Flagstaff, Arizona
Sams Warehouse Jobs
Basketball Stars Unblocked Games Premium
The Swarthmorean, 1932-05 | TriCollege Libraries Digital Collections
866-360-2863
Latest Posts
Article information

Author: Clemencia Bogisich Ret

Last Updated:

Views: 6753

Rating: 5 / 5 (80 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Clemencia Bogisich Ret

Birthday: 2001-07-17

Address: Suite 794 53887 Geri Spring, West Cristentown, KY 54855

Phone: +5934435460663

Job: Central Hospitality Director

Hobby: Yoga, Electronics, Rafting, Lockpicking, Inline skating, Puzzles, scrapbook

Introduction: My name is Clemencia Bogisich Ret, I am a super, outstanding, graceful, friendly, vast, comfortable, agreeable person who loves writing and wants to share my knowledge and understanding with you.