· Module 11

11 | ESP32 Freezes or Restarts? Watchdogs and Predictable Recovery

Dr. Redmond R. Shamshiri
Assistant Professor of Robotics · University of Southern Denmark (SDU)

Study 11 | ESP32 Freezes or Restarts? Watchdogs and Predictable Recovery. Use the accompanying model, numerical example and practical task to connect the topic to a measurable engineering result. Notes are original supplemental material, not a transcript.

Lecture video: https://www.youtube.com/watch?v=3Y2HwtuIHdM

Learning Objectives

  • Explain the role of failure analysis and evidence in the engineering system.
  • Calculate the worked quantity with consistent units.
  • Design a measurement that can reveal an implementation failure.

Study guide

Original companion notes. These notes support the topic of this lesson. They are not a transcript or a claim about the exact contents, hardware settings or examples in the video.

Lesson focus: 11 | ESP32 Freezes or Restarts? Watchdogs and Predictable Recovery

Define the input, measured output, units and pass/fail condition before running the experiment.

Failure analysis and evidence

Failures should be reproduced as concrete conditions: a stale sensor, dropped packet, overloaded supply or incorrect frame. Keep symptom, hypothesis, intervention and measured outcome separate. A successful demonstration is one trial under one set of conditions.

Model, units and assumptions

\[A=\frac{T_{up}}{T_{up}+T_{down}},\qquad rate=\frac{N_{fail}}{T_{exposure}}\]

A is observed availability over a stated window. Failure rate is empirical count per exposure time, not a guarantee of constant hazard or future reliability.

Worked engineering example

A test runs 9 h and is unavailable for 1 h, giving observed availability 90%. If the outage was a single avoidable startup fault, averaging it into a long run can hide a critical failure mode.

Practical task and evidence

Apply the following procedure to the topic of this lesson: 11 | ESP32 Freezes or Restarts? Watchdogs and Predictable Recovery.

  • Write a reproducible fault-injection procedure with expected safe behavior.
  • Log power, timing, state transitions and recovery steps around the fault.
  • Repeat after the fix and retain the original failed result for comparison.

Submit: a diagram or interface table, a short timestamped dataset, the calculation with units, and a paragraph explaining the largest observed limitation.

Check your understanding

Question. A system is usable for 47 h and unavailable for 1 h. Find observed availability.

Show worked answer

47/48 ≈ 97.92% for that observation window.

Extension. Change one assumption in the model and explain which measurement would reveal that it no longer holds.

Summary

Failure analysis and evidence: keep units, assumptions and timing explicit. Check the numerical model against an independent observation before using it in a larger system.

Practical Industrial Automation with ESP32 · Dr. Redmond R. Shamshiri · University of Southern Denmark (SDU)