Yarana Iot Guru
Published © MIT

ESP32 Tutorial: Getting Started with ESP32 Development Board

Learn to set up and program ESP32 development board — Wi-Fi & Bluetooth enabled IoT projects made easy by YaranaIoT Guru

BeginnerFull instructions provided8 hours546
ESP32 Tutorial: Getting Started with ESP32 Development Board

Things used in this project

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Code

3️⃣ Blink LED Example

C/C++
#define LED_PIN 2  // Onboard LED of most ESP32 boards

void setup() {
  pinMode(LED_PIN, OUTPUT);
}

void loop() {
  digitalWrite(LED_PIN, HIGH);
  delay(1000);
  digitalWrite(LED_PIN, LOW);
  delay(1000);
}

🌐 Wi-Fi Example (Optional)

C/C++
#include <WiFi.h>

const char* ssid = "YourWiFi";
const char* password = "YourPassword";

void setup() {
  Serial.begin(115200);
  WiFi.begin(ssid, password);

  Serial.print("Connecting to Wi-Fi");
  while(WiFi.status() != WL_CONNECTED){
    delay(500);
    Serial.print(".");
  }
  Serial.println("\nConnected! IP address: " + WiFi.localIP().toString());
}

void loop() {
  // Ready for IoT projects
}

Credits

Yarana Iot Guru
48 projects • 25 followers
Yarana Iot GuruYarana IoT Guru: Arduino,ESP32, GSM, NodeMCU & more.Projects, Tutorials & App Development. Innovate with us!

Comments