Week 4 · Lesson 1 · 55 minutes

Use hysteresis to investigate unstable switching

I can diagnose a fault using evidence and show my skill.

Planned lesson. Follow your teacher’s teaching order.

Task steps and checks

Tell chatter from normal behaviour

  1. With an approved setup, record the reading and the LED together. Pick one possible cause and say what you expect to see if it is correct. Keep the input condition, code version or wiring unchanged except for the one item you are testing.
  2. Unplug before changing wiring. If static_assert rejects the order of the limits, fix the thresholds rather than deleting the check.
Model only: same 1590–1610 wobble, different decision rules
  1. Single limit at 1600: repeated crossings can switch the LED repeatedly
  2. Two example limits 1400 and 1800: the same wobble stays in the hold region

Check your result: A steady LED in the middle may be correct. Compare the before and after results and say what the evidence does or does not rule out.

Revised weekly handout pages: 9.

Materials

Working models, troubleshooting record, skill observation sheet. · Individual student workbook and evidence folder; paired hardware, individual answers

Resources

Vocabulary

hysteresis
two limits that help stop rapid switching

More examples and practice

Predict behaviour near the threshold · 5 minutes

Hysteresis means using two limits to reduce rapid switching. Near a single limit, small input changes can turn an alert on and off repeatedly. A stable alert needs more than a correct low/high response.

Predict behaviour near the threshold.

Demonstrate chatter and the two-limit approach · 8 minutes

Keep the input setup steady and observe the data with the LED. Predict one possible cause of an unwanted change. Do not change the sensor position, both limits and the label all at once; you would not know which change mattered.

Predict what noisy readings around one threshold would do. Contrast that with two-limit behaviour and identify a safe single-variable test. Work the practice example before revealing its solution.

A spare sketch has ON=1900 and OFF=1400 and fails its static_assert. Should the assertion be deleted?

Reveal reasoning

No. The order is invalid. Restore a lower ON threshold and higher OFF threshold using the measured ranges, then compile and test. The assertion protects the required relationship; removing it hides the error rather than fixing it.

Students test one symptom and diagnose one cause · 22 minutes

Test one cause safely. For a code test, change one approved value, keep ON below OFF, save a new version and repeat the same observation. For wiring checks, unplug first. Never remove safety checks just to make a program compile.

Complete page 9 with one actual symptom, possible cause, prediction, safe test, result and reasoned decision.

Practice

  1. Predict what noisy readings around one threshold would do. Contrast that with two-limit behaviour and identify a safe single-variable test.
  2. Complete page 9 with one actual symptom, possible cause, prediction, safe test, result and reasoned decision.

Record before/after evidence and a justified decision · 15 minutes

Compare before and after evidence. Between-limit output retaining its previous state is intended; repeated unexplained switching at steady input is a symptom worth investigating. Record results even when the first prediction is wrong.

Record before/after evidence and a justified decision.

Explain what the evidence rules out · 5 minutes

Write the decision and reason. A useful record explains what the evidence supports or rules out, not merely “I fixed it”.

What does an unchanged LED between the limits tell you—and what does it not tell you? Save the page and relevant evidence.

What does an unchanged LED between the limits tell you—and what does it not tell you?

Week 4 Make the response reliable

Do only the parts you did not finish in class. Write what really happened; if you did not test something, write NOT TESTED. This is one task for the week, and nothing else is due.

  1. Page 9: record one real symptom, a possible cause, your prediction, a safe test, the result and your decision with a reason.
  2. Page 10: record your own edit, upload and test. Give the before and after evidence and a reason that matters to the user.

You are finished when: Pages 9 and 10 describe one real fault and one real change.

Why this matters: Finding and fixing a fault is evidence of your technical skill.

  • Hardware stays at school.

Revised weekly handout pages: 9, 10.

Weekly homework (Word)

Make the response reliable weekly feedback guide

Task-specific feedback guide, not official IB descriptors or an automatic criterion grade.

Troubleshooting
A symptom, cause, prediction, safe single-variable test and result are connected.
Hysteresis understanding
The student explains two-limit behaviour and relevant starting state.
Independent change
An observed personal edit/test and before/after evidence justify a user-relevant decision.
BandObservable evidence
0No diagnostic or individual skill evidence is available yet.
1–2A fault or change is named, but a safe test and the student’s own explanation are mostly missing.
3–4Some diagnosis and personal skill are shown. The two-limit explanation or evidence-based reason for the change needs detail.
5–6The student explains hysteresis and safely tests one cause. An actual individual edit/test is documented and before/after evidence supports the decision.
7–8The independent explanation distinguishes intended state retention from unstable switching. Controlled diagnosis supports or rules out a cause; a traceable change or retained choice is justified with data and a suitably limited user effect.