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:
- In your Arduino IDE, go to File> Preferences
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
Note: If you already have the ESP8266 boards URL, you can separate the URLs with a comma as follows:
3. Open the Boards Manager. Go to Tools > Board > Boards Manager…
4. Search for ESP32 and press install button for the “ESP32 by Espressif Systems“:
5. That’s it. It should be installed after a few seconds.
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)
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):
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:
Your ESP32 has been set up and is now ready to go.