Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Book2026
← Applied Automation in AgricultureChapter 49

Schmitt triggers and hysteresis

InstructorDr. Redmond R. Shamshiri
AffiliationAssistant Professor of Robotics · University of Southern Denmark (SDU)
Study time35 minutes
Study companion. These editable notes, worked examples and exercises supplement the source material. They are not a verbatim video transcript or a reproduction of the book.

Study Schmitt triggers and hysteresis. 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.

Learning Objectives

  • Explain the role of hysteresis and bounded switching 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: Schmitt triggers and hysteresis

Present state, measurement age and command acceptance clearly; do not equate a button press with a completed action.

Hysteresis and bounded switching

A single on/off threshold can cause repeated switching when measurement noise crosses it. Hysteresis introduces separate switch-on and switch-off thresholds and retains the previous state between them. Select the band from acceptable process variation and sensor uncertainty.

Model, units and assumptions

\[On_{k+1}=\begin{cases}1&y_k\geq y_H\\0&y_k\leq y_L\\On_k&y_L<y_k<y_H\end{cases}\]

yH > yL are thresholds; this version turns cooling on at high temperature. Heating uses the corresponding reversed interpretation. Minimum on/off timing may also be necessary for the actuator.

Worked engineering example

Cooling switches on at 28 °C and off at 26 °C. At 27 °C, an already running fan stays on, while a stopped fan stays off. The stored state is essential.

Practical task and evidence

Apply the following procedure to the topic of this lesson: Schmitt triggers and hysteresis.

  • Plot sensor noise around the original single threshold.
  • Implement the two-threshold state rule and log every transition.
  • Test the permitted switching frequency and minimum dwell time.

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. Cooling is on, yL = 24 °C, yH = 26 °C, and current temperature is 25 °C. Next state?

Show worked answer

Remain on because the temperature lies inside the hysteresis band.

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

Summary

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

Suggested Reading & Resources

  • Reading
    Book source: Applied Automation in Agriculture

    Primary documentation or original technical reference; check the version used in your lab.

    Open ↗
  • Reading
    CODESYS Structured Text reference

    Primary documentation or original technical reference; check the version used in your lab.

    Open ↗