← All short lessons

Technology · Go deeper · Simulation

Give a sensor two thresholds

Use hysteresis to avoid rapid switching around one threshold.

Start or resume with saved notes →
7–10 min for the lesson · application takes longer

Situation

Build it. Try it. Change one thing.What would you test when the easy example works?Illustrated learning characters · fictional scene

The Builder · fictional example

The situation

A fictional fan turns on above 25 degrees and off below 25. The simulated reading alternates 24.9, 25.1, 24.9, 25.1. The fan switches repeatedly.

Before you continue

What would you predict? Say it aloud or write a line on paper. Then compare your reasoning with the example.

Starting knowledge: Read a simple if/then rule and keep track of an on/off state.

Need a hint or a clearer next step?

Work through Give a sensor two thresholds with a focused prompt. Your notes stay private unless you choose to paste an excerpt here.

Use fictional examples. Leave out names, contact details, passwords and private records.

Get an answer here with my own OpenAI API key

Requires an active learning profile. Your provider may charge you; API billing is separate from ChatGPT. EaseBrain has no paid-key fallback.

Key clears after each attempt. EaseBrain saves only a daily request count, not your key, prompt or answer. OpenAI’s data policies apply. Up to 500 output tokens and 20 attempts a day; no automatic retries. These limits do not guarantee a spending ceiling.

Sign in · Complete my learning profile

Preview notes stay in this page only. Download before leaving.

Keep your work for later

Download a lesson backup, then open the saved workspace and restore it there. Preview work is not stored in this browser after you leave.