ESP32 questions and answers
How do I connect a relay module to 3.3 V logic?Take a module with an optocoupler and check whether it is active-low or active-high. Power the relay coil from 5 V and the logic side from the ESP32,…ESP32 DevKitESP32 does not reconnect to Wi-Fi after a power outageAfter an outage the router often boots slower than the ESP32. Do not give up after one attempt: retry in a loop with a timeout, call WiFi.setAutoReconnect(true) and…OtherBrownout detector was triggered: ESP32 keeps rebootingThe supply voltage dips when Wi-Fi starts transmitting. Use a short, good data cable, a 5 V source that gives at least 1 A, and add a 470…ESP32 DevKitWhich pins can I use for analogRead while Wi-Fi is on?Use ADC1 pins (GPIO 32 to 39). ADC2 pins (GPIO 0, 2, 4, 12 to 15, 25 to 27) do not work while Wi-Fi is active. GPIO 34…ESP32 DevKitWhich GPIO pins are risky to use at boot?GPIO 0, 2, 12 and 15 are strapping pins: wrong levels at reset can stop the boot or change the flash voltage. GPIO 6 to 11 are connected…ESP32 DevKitFailed to connect to ESP32: Wrong boot mode detectedHold the BOOT button while the upload starts, make sure the cable carries data (not charge-only) and that the CH340 or CP2102 driver is installed. Disconnect anything wired…ESP32 DevKitHow can I run an ESP32 from a battery for months?Use deep sleep and wake rarely, for example every 10 to 15 minutes. The chip itself draws microamps in deep sleep, but the board LDO and power LED…ESP32-C3Can I measure 220 V mains directly with an ESP32?No. Never connect mains to a GPIO. Use an isolated voltage transformer module such as ZMPT101B for voltage and a current clamp such as SCT-013 for current, or…ESP32 DevKit