Getting Started with ESP32
Getting Started with ESP32
Section titled “Getting Started with ESP32”What is ESP32?
Section titled “What is ESP32?”The ESP32 is a series of low-cost, low-power system on a chip microcontrollers with integrated Wi-Fi and Bluetooth.
What You’ll Need
Section titled “What You’ll Need”- ESP32 development board
- USB cable
- Arduino IDE or VS Code with PlatformIO
- Required drivers (CP210x or CH340)
Installation Steps
Section titled “Installation Steps”- Install Arduino IDE or VS Code with PlatformIO
- Add ESP32 board support
- Install necessary USB drivers
- Connect your ESP32 board
- Select the correct board and port
Your First Program: WiFi Scan
Section titled “Your First Program: WiFi Scan”#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);}Next Steps
Section titled “Next Steps”- Learn about WiFi and BLE capabilities
- Explore deep sleep modes
- Work with sensors and displays