ESP32 Examples

ESP32 Examples with Copy-Ready Code

All ESP32 lessons with matching titles and unique code examples.

Esp32

Esp32 with wiring and copy-ready code.

ESP32 18650 Battery Life

Estimate ESP32 battery life from a 18650 cell using deep sleep and duty cycle.

ESP32 Access Point Example

Run ESP32 as a WiFi access point.

ESP32 ADC Accuracy Guide

Improve ESP32 ADC accuracy with attenuation, calibration and source impedance.

ESP32 BLE Example

Start a simple BLE device.

ESP32 BME280 Example

Read BME280 sensor over I2C.

ESP32 Boot Mode Guide

Understand ESP32 boot pins, boot mode and flashing problems.

ESP32 Brownout Detector Fix

Fix ESP32 brownout detector resets caused by power supply dips and WiFi current peaks.

ESP32 Capacitor Size Guide

Choose bulk and ceramic capacitors to prevent ESP32 brownout during WiFi transmission.

ESP32 Capacitor Size Guide

Learn how to choose bulk and ceramic capacitors to reduce ESP32 brownout resets during WiFi current peaks.

ESP32 Deep Sleep Current Explained

Understand ESP32 deep sleep current, board leakage, wake intervals and battery runtime.

ESP32 Deep Sleep Example

Use timer wakeup and deep sleep.

ESP32 Deep Sleep Guide

Understand ESP32 deep sleep current, wake intervals and how to maximize battery runtime.

ESP32 DHT22 Example

Read DHT22 temperature and humidity.

ESP32 EN Pin Guide

Understand ESP32 EN pin, reset circuits and brownout behavior.

ESP32 External Antenna Guide

Use external antennas with ESP32 modules for better WiFi or LoRa performance.

ESP32 GPIO Strapping Pins Guide

Avoid boot problems by understanding ESP32 strapping pins.

ESP32 HC-SR04 Ultrasonic Example

Measure distance with HC-SR04.

ESP32 HTTP Request Example

Send HTTP GET request from ESP32.

ESP32 I2C Pull-Up Resistor Guide

Choose I2C pull-up resistors for ESP32 sensors and modules.

ESP32 LDO vs Buck Converter

Compare LDO and buck converter power supplies for ESP32 projects and decide which one fits your battery or USB design.

ESP32 LiPo Battery Life

Estimate ESP32 runtime on LiPo batteries for compact IoT and sensor projects.

ESP32 LoRa Example

Send LoRa packets with SX127x.

ESP32 MOSFET PWM Example

Drive MOSFET load using ESP32 PWM.

ESP32 MQTT Example

Connect ESP32 to an MQTT broker.

ESP32 OLED I2C Example

Display text on SSD1306 OLED.

ESP32 Power Consumption Guide

Learn ESP32 current consumption in WiFi, idle, active and deep sleep modes with practical battery design notes.

ESP32 Power Supply Design

Design a stable ESP32 power supply using LDOs, buck converters, capacitors and PCB layout.

ESP32 PWM LED Example

Generate PWM using ESP32 LEDC.

ESP32 Relay Example

Control a relay from ESP32.

ESP32 Solar Sensor Design

Plan ESP32 solar-powered sensors using battery capacity, sleep current and charging margin.

ESP32 vs Arduino Power Consumption

Compare ESP32 and Arduino power consumption for battery-powered projects.

ESP32 vs Raspberry Pi Pico

Compare ESP32 and Raspberry Pi Pico for WiFi, power, GPIO, cost and embedded projects.

ESP32 vs STM32

Compare ESP32 and STM32 for WiFi, low power, peripherals, firmware complexity and embedded product design.

ESP32 Web Server Example

Create a simple ESP32 HTTP web server.

ESP32 WiFi Current Peaks

Understand ESP32 WiFi current peaks and why they cause resets or voltage dips.

ESP32 WiFi Example

Connect ESP32 to WiFi and print IP address.

ESP32-WROOM vs ESP32-S3

Compare ESP32-WROOM and ESP32-S3 for performance, USB, AI features and power.