Loading
Loading
IoT Lab content is currently available in Arabic only. We're working on an English version.
عرض بالعربية →Take your projects online. What is ESP32 and how do we set it up in the Arduino IDE?
The board operates at 3.3V. Never directly connect a 5V sensor output to ESP32 pins without using a voltage divider.
#include <WiFi.h>
const char* ssid = "Your_SSID";
const char* password = "Your_PASSWORD";
void setup() {
Serial.begin(115200);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500); Serial.print(".");
}
Serial.println("\nConnected!");
Serial.print("IP: "); Serial.println(WiFi.localIP());
}
void loop() {}Selecting the wrong board (like Arduino Uno) when uploading to ESP32. You must select 'DOIT ESP32 DEVKIT V1' or the model matching your board.