Getting Started with ESP32 / ESP8266
What is ESP32
ESP32 is a low-cost microcontroller with built-in WiFi and Bluetooth. Use it for IoT sensor nodes, LoRa gateways, smart home devices, and battery-powered projects.
Prerequisites
- ESP32 dev board (ESP32-WROOM, ESP32-S3, etc.)
- USB cable (data-capable)
- Computer with Arduino IDE or PlatformIO
Install — Arduino IDE
- Open Arduino IDE → File → Preferences
- Add board URL:
https://espressif.github.io/arduino-esp32/package_esp32_index.json - Tools → Board → Boards Manager → install esp32 by Espressif
- Select board: Tools → Board → ESP32 Dev Module
First Example: WiFi Scan
#include <WiFi.h>
void setup() { Serial.begin(115200); WiFi.mode(WIFI_STA); }
void loop() {
int n = WiFi.scanNetworks();
for (int i = 0; i < n; i++) Serial.println(WiFi.SSID(i));
delay(5000);
}