Prerequisites: Arduino IDE Installed

Before starting this installation procedure, make sure you have the latest version of the Arduino IDE installed on your computer. If you don’t, uninstall it and install it again. Otherwise, it may not work. If You don’t have the IDE download it from the official website:arduino.cc

In case you do not know how to install arduino it ,refer the this tutorial.Arduino IDE Installation guide

Do you need an ESP32 board? Kickstart your electronics journey by buying an esp32 board from here.Purchase from Amazon

Installing ESP32 Add-on in Arduino IDE

How to program esp32 with arduino ide Is always a question for new commers , its quire easy to do that using arduino IDE . To install the ESP32 board in your Arduino IDE, follow these next instructions:

  1. In your Arduino IDE, go to FilePreferences
File> Preference

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

Additional Board Manager URLs

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

https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json

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

Tools > Board > Boards Manager

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

ESP32 by Espressif Systems

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

tool board

Testing the Installation

Start programming with esp32 : Plug the ESP32 board to your computer. With your Arduino IDE open, follow these steps:

1. Select your Board in Tools > Board menu (in my case it’s the DOIT ESP32 DEVKIT V1)

Tools > Board

2. 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):

Select the Port

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

4. A new sketch opens in your Arduino IDE:

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

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

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

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

Conclusion

Your ESP32 has been set up and is now ready to go.

Author

Write A Comment