· Module 09

09 | Log ESP32 Data and Build Useful Node-RED Alarms

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

Study 09 | Log ESP32 Data and Build Useful Node-RED Alarms. 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=aXIPywFraH8

Learning Objectives

  • Explain the role of hmi states, alarms and command ownership 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: 09 | Log ESP32 Data and Build Useful Node-RED Alarms

Retain original data and timestamps so later filtering or threshold changes can be evaluated fairly.

HMI states, alarms and command ownership

An HMI displays process state and requests actions; the PLC retains authority over permissives and physical outputs. Display commanded and measured values separately, and show whether a command was rejected, accepted or completed.

Model, units and assumptions

\[\text{age}=t_{now}-t_{last\_update},\qquad Valid=(\text{age}<T_{stale})\land QualityOK\]

Timestamps must use a consistent time base. Tstale is an application threshold derived from update rate and process dynamics, not a universal constant.

Worked engineering example

For a display updated every 200 ms, choose a teaching threshold of 1 s. A value last received 1.3 s ago is stale even if its numeric speed appears reasonable. Disable new remote run requests until communication is restored and the operator reconfirms intent.

Practical task and evidence

Apply the following procedure to the topic of this lesson: 09 | Log ESP32 Data and Build Useful Node-RED Alarms.

  • Draw a state table with Stopped, Ready, Running and Fault.
  • Show connection quality and timestamp next to the measured speed.
  • Disconnect the link and verify that stale values cannot be mistaken for live operation.

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 sensor reports every 100 ms. At 750 ms since the last update with a 500 ms threshold, is it valid?

Show worked answer

No. Its age exceeds the chosen threshold. Whether to stop equipment depends on the risk-assessed control design.

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

Summary

HMI states, alarms and command ownership: 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)