Skip to content

Getting Started with ESP32

The ESP32 is a series of low-cost, low-power system on a chip microcontrollers with integrated Wi-Fi and Bluetooth.

  • ESP32 development board
  • USB cable
  • Arduino IDE or VS Code with PlatformIO
  • Required drivers (CP210x or CH340)
  1. Install Arduino IDE or VS Code with PlatformIO
  2. Add ESP32 board support
  3. Install necessary USB drivers
  4. Connect your ESP32 board
  5. Select the correct board and port
#include "WiFi.h"
void setup() {
Serial.begin(115200);
WiFi.mode(WIFI_STA);
WiFi.disconnect();
delay(100);
}
void loop() {
Serial.println("Scan start");
int n = WiFi.scanNetworks();
Serial.println("Scan complete");
for (int i = 0; i < n; ++i) {
Serial.print(i + 1);
Serial.print(": ");
Serial.print(WiFi.SSID(i));
Serial.print(" (");
Serial.print(WiFi.RSSI(i));
Serial.println(")");
delay(10);
}
Serial.println("");
delay(5000);
}
  • Learn about WiFi and BLE capabilities
  • Explore deep sleep modes
  • Work with sensors and displays