Setting up arduino to program ESP 32

Note : This blog was written for old version of arduino esp32 core, current version setup is simple, get latest version of arduino and

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

preferences (File-> Preferences) , then open board manger (Tools-> Board-> Board manager), you should see ESp32 and click on install

 

Don’t follow below steps if you have done the above


In this post we will see how to add ESP 32 to arduino IDE (on windows machine) , this post assumes that you already have Arduino IDE installed on your windows machine (you can get latest version of Arduino IDE from arduino.cc )

Installing the ESP32 Arduino Core

download the git repo and extract the contents to ${Sketchbook}\hardware\espressif\esp32 directory (generally the sketchbook folder is ~/Documents/Arduino, you can check in the Arduino IDE File->Preferences. Create the directory structure in your sketchbook directory,After extracting the contents should be in esp32 folder, not in its child folder, refer below images)

arduino sketchbook folder
arduino sketchbook folder

In the tools directory, you can find get.exe, double click on that. It will download the required files

 

once the download is completed, restart your arduino you can see the ESP 32 boards in the available boards list

I will load a simple program that shows the CHIP ID of the device , you can find the program in arduino examples

 

 

upload the code and open the serial monitor

 

ESP 32 DevKit pin mapping

 

pd: Pulldown

pl: Pullup

8 Comments

Add a Comment

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