Public projects
Thirty Espressif examples. Use them to decide whether this architecture can become your ESP32 board and firmware.
- Blink status LED — The first proof a board is alive. On a product this is the power or status lamp.
- Hello World UART heartbeat — Tells you in one page whether the toolchain, flash path and serial monitor work.
- Wi-Fi Station join — Join an existing router and get an IP. Almost every cloud product starts here.
- Wi-Fi SoftAP hotspot — The device hosts its own hotspot for phone-based provisioning or local control.
- Wi-Fi Scan — List nearby APs and RSSI. Used for channel choice and provisioning lists.
- Wi-Fi Power Save — Stay associated with less current. Required reading for battery products after Station.
- HTTP Server local page — Serve a page on the device to change settings. Common for small-batch debug.
- HTTP Client to the cloud — Device-side GET/POST. Fits REST backends.
- MQTT TCP telemetry — The usual channel for sensors and remote commands, but plaintext by default — use TLS on the public internet.
- SNTP time sync — Where time comes from when there is no RTC chip. Logs and TLS depend on it.
- BLE GATT Server — A phone finds and controls the device. Starting point for local setup.
- BLE GATT Client (Gateway) — ESP32 acts as a BLE gateway, scanning and connecting to sensors or wearables, reading data and reporting it.
- Deep Sleep — How a battery node sleeps and wakes. Wake pins must not float.
- Light Sleep — Faster wake than deep sleep, retains more state, ideal for low-power applications requiring quick response.
- Native OTA — How firmware is updated after shipment. Partition tables start on board one.
- NVS persistent keys — SSID, calibration and serial belong here, not in RAM.
- SPIFFS small filesystem — Mount SPIFFS on internal flash for static web pages, small configs, and certs; keep critical config in NVS.
- GPIO in and out — Buttons, relays, level detect. The I/O baseline.
- UART Echo — Starting point for meters, PLCs and modules. RS485 is only a level shift.
- I2C simple read/write — Humidity, IMU, display bridges — most sensors live here.
- SPI Master — Bus for displays, external flash and fast ADCs.
- ADC analog sample — Battery voltage and analog sensors. Attenuation and calibration matter.
- LEDC PWM — Dimming, fans, servos. Hardware PWM, not bit-bang.
- RMT LED strip — WS2812-class strips. RMT for timing; EMI for certification.
- TWAI / CAN — Industrial and automotive bus. The chip is a controller; you still need a transceiver.
- Modbus — The language existing industrial hosts already speak. Serial or TCP.
- SD card storage — Field logs for the customer. Design the slot for hot-plug.
- mDNS LAN discovery — Find the device on the LAN without memorising its IP.
- Wi-Fi Provisioning — How a production unit receives its SSID. Required to ship.
- Console factory CLI — The factory test port. Do not leave debug commands open for end users.
中文
公开项目
三十个乐鑫官方案例。用来判断这套架构能不能做成你的 ESP32 板和固件。
- Blink 状态指示灯 — 第一块板活没活,先看这颗灯。量产产品里它就是电源/状态指示。
- Hello World 串口心跳 — 工具链、烧录、串口监控是否通,这一页就能判断。
- Wi-Fi Station 入网 — 设备加入现有路由器并拿到 IP。上网产品几乎都从这里开始。
- Wi-Fi SoftAP 热点 — 设备自建热点,手机连接后用于配网或本地控制。
- Wi-Fi Scan 扫网 — 列出周围热点和信号,用来选信道、做配网列表。
- Wi-Fi Power Save 省电 — 连着路由器时如何少耗电。电池产品在 Station 之后必读。
- HTTP Server 本地网页 — 设备开网页改参数。小批量调试和本地控制常用。
- HTTP Client 请求云端 — 设备主动 GET/POST。对接 REST 云或自己的后台。
- MQTT TCP 上报 — 传感上报和远程命令最常见的通道,但默认明文,公网需 TLS。
- SNTP 对时 — 没有 RTC 芯片时,时间从网上来。日志和证书都靠它。
- BLE GATT Server — 手机发现并控制设备。近场配置和控灯/控锁的起点。
- BLE GATT 客户端(网关) — ESP32 作为 BLE 网关,扫描并连接传感器或手环,读取数据并上报。
- Deep Sleep 深度睡眠 — 电池节点怎么睡、怎么醒。唤醒脚不能浮空。
- Light Sleep 浅睡 — 比深睡更快醒来,保留更多状态,适合需要快速响应的低功耗场景。
- Native OTA 远程升级 — 出货后固件怎么安全更新。分区表从第一块板就要定。
- NVS 掉电保存 — SSID、标定值、序列号要放这里,不能只放 RAM。
- SPIFFS 小文件系统 — 在内部 Flash 上挂载 SPIFFS,用于静态网页、小配置和证书文件;关键配置仍用 NVS。
- GPIO 通用输入输出 — 按键、继电器、电平检测。产品 IO 的基础课。
- UART Echo 串口 — 接电表、PLC、模组的起点。RS485 只是电平转换。
- I2C 简单读写 — 温湿度、加速度计、屏幕桥,大多数传感器走这里。
- SPI Master — 屏幕、外置 Flash、高速 ADC 的总线。
- ADC 模拟采集 — 电池电压、模拟传感器。注意衰减和校准。
- LEDC PWM — 调光、风扇、舵机。用硬件 PWM 而不是软件翻转。
- RMT 灯带 — WS2812 类灯带。时序走 RMT,认证时要注意骚扰。
- TWAI / CAN — 工业与汽车总线。芯片是 TWAI 控制器,外面还要收发器。
- Modbus — 进现有工业主机的常用语言。串口或 TCP。
- SD 卡存储 — 现场日志、导出给客户。卡槽和电源要按热插拔想。
- mDNS 局域网发现 — 不用记 IP,电脑和手机在局域网里找到设备。
- Wi-Fi Provisioning 配网 — 量产设备第一次如何把 SSID 交给芯片。出货必做。
- Console 产测指令 — 工厂测试口。不要把调试命令留给最终用户乱开。