π Embedded Systems & ESP32¶
Objective: Build firmware that is safe, power-efficient, and maintainable. These guides cover the real decisions you make when designing embedded systems around the ESP32 β not just "how to blink an LED" but how to architect, power, secure, and ship firmware responsibly.
Guides in this section¶
- Programming Architecture β Event loops, FreeRTOS tasks, state machines, ISR safety, and memory discipline
- Power Management & Deep Sleep β Sleep modes, RTC memory, wake sources, LiPo safety, and designing for sub-100 Β΅A idle
- Hardware & Electrical Safety β 3.3 V logic, GPIO limits, level shifting, grounding, ESD, LiPo dos and don'ts
- Embedded Security & OTA β NVS secrets, secure boot, flash encryption, OTA signing, WiFi credential hygiene
- Sensor Integration β I2C vs SPI vs analog, pull-ups, filtering, calibration, debouncing
- E-Ink Display Integration β Partial vs full refresh, ghosting, SPI wiring, frame buffer design, over-refresh protection
- MQTT Security β Broker hardening, ACLs, TLS, per-device credentials, topic design, NVS credential storage
- LoRa Best Practices (SX127x) β Spreading factor, duty cycle, antenna layout, firmware state machine, AES encryption for raw LoRa
- Safety Checklist (Printable) β Checklist for electrical, power, firmware, RF, and physical safety; print to PDF
- ESP32-S3 and C3 Notes β USB native, RISC-V, BLE 5.0, variant selection, DS/HMAC hardware security peripherals
Applied Tutorial¶
- ESP32 E-Ink Environmental Monitor β Capstone project: BME280 + BH1750 β e-ink display β deep sleep loop on battery power
- ESP32 + MQTT + Home Assistant Integration β Secure sensor node with TLS MQTT, ACL, LWT, and HA auto-discovery
Analytical Context¶
- Deep Dive: ESP32 vs Raspberry Pi β Microcontroller determinism vs Linux convenience: a comparative analysis of power, timing, security surface, and ecosystem trade-offs