All tutorials

9 posts and counting

Series

ESP32 Production Firmware 6
All architecturearduinoesp32freertosiotmodbusmqtt
esp32architecture NEW Jun 19, 2026 · 15 min

Event-driven firmware on ESP32: why polling is killing your code

Polling loops are the goto of firmware architecture — everyone uses them, everyone knows they're bad, nobody stops. Here's how to build a proper event-driven system on ESP32 with FreeRTOS queues, and why you'll eventually want something like AdvancedSignalSlot.

🔧
esp32freertos NEW Jun 19, 2026 · 16 min

ESP32 FreeRTOS: tasks, queues and semaphores in plain English

FreeRTOS is already running on your ESP32 whether you know it or not. Learn task creation, stack sizing, inter-task communication, mutexes, and how to not shoot yourself with shared state.

⚙️
esp32arduino NEW Jun 19, 2026 · 14 min

ESP32 GPIO explained: inputs, outputs, pull-ups and interrupts

A production-focused deep dive into ESP32 GPIO: floating pins, the GPIO matrix, hardware and software debouncing, ISR rules, volatile variables, and current limits. Skip the toy examples.

esp32iotmodbus NEW Jun 19, 2026 · 15 min

ESP32 Modbus TCP and RTU: read industrial sensors step by step

Modbus is 45 years old and it's everywhere. Learn RTU over RS485 with proper direction control, function codes, 32-bit register reconstruction, error handling, and a complete energy meter example.

🏭
esp32iotmqtt NEW Jun 19, 2026 · 15 min

ESP32 MQTT tutorial: publish and subscribe with PubSubClient

MQTT for production ESP32 firmware: broker options, QoS, LWT, retained messages, and a robust reconnect loop that survives both WiFi and broker drops. No toy snippets.

📡
esp32architecture NEW Jun 19, 2026 · 13 min

ESP32 OTA updates: push firmware wirelessly in production

OTA is not optional for production firmware. Learn the ESP32 partition scheme, HTTP OTA with MD5 verification, rollback on failure, HTTPS certificate pinning, and versioning strategy.

🔧
esp32architecture NEW Jun 19, 2026 · 14 min

Why your ESP32 firmware needs a state machine (and how to build one)

Boolean flags and nested if/else statements are a maintenance trap. Here's how to replace them with a proper finite state machine using a transition table — and why impossible states become structurally excluded.

🔧
esp32architecture NEW Jun 19, 2026 · 13 min

ESP32 watchdog timer: build firmware that recovers from crashes

Hardware watchdog timers are your last line of defense against hung firmware. Learn how ESP32's Task Watchdog Timer works, the anti-patterns that make it useless, and how to build a health monitor task that actually catches real failures.

🔧
esp32arduinoarchitecture NEW Jun 18, 2026 · 8 min

How to use ESP32 timers: stop using delay() in your firmware

delay() blocks everything. Learn how ESP32 hardware timers and millis()-based patterns let you multitask without FreeRTOS.

🔧