Skip to main content

Setup ESP32 with Arduino

  1. Download the Arduino program via https://www.arduino.cc/en/software
  2. Open the Arduino program
  3. Go to File > Preference

  1. Go to Tools > Board > Board manager...

  2. Search esp32 and click install library esp32 by Espressif Systems

  3. After installed the library, go to select the board through Tools > Board > esp32 > ESP32-WROOM-DA Module

  4. Select the USB port that you have connected to the ESP32 at Tools > Port > COMX (Each computer may see the different number)

// GPIO2 is the LED on board for ESP32, and we define as a varible LED
#define LED  2

void setup() {
  // put your setup code here, to run once:
  
  // We initialize the Pin GPIO2 as an OUTPUT
   pinMode(LED,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  delay(500);
  digitalWrite(LED,HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(500);
  digitalWrite(LED,LOW);  // turn the LED off by making the voltage LOW
}

And click Upload at the right arrow top at the left of the program

Check if your Microcontroller is blinking after the Arduino uploads your code.