1. Lesson 1 · 55 minutes
Open this lesson’s weekly handout (Word)
A campus alert has a user
Trace the stages from left to right.
- 1Place: a model cupboard
- 2Input: synthetic light count
- 3Decision: compare limits
- 4Output: warning LED
Discuss before continuing
Who needs the signal and what should they do? Open the simulation and explain one response.
Start · 5 minutes
Name one campus place and one user who could benefit from a light alert.
Explain and demonstrate · 10 minutes
The sensor provides an input. The ESP32 compares it with a rule and controls a warning LED. The LED signals a condition; it is not a room lamp. Use a real observation or agreed user comment to explain the need.
Demonstration
Open the ESP32 animation and point to the sensor, reading, decision and LED. Start with the LED OFF and the reading 2200. Lower the slider slowly below 1400, then move it to 1600 and finally above 1800. Ask for a prediction before each movement. Trace which threshold rule was used. The animation supplies the input; it does not measure the room.
Class example · 10 minutes
In the animation, the LED starts OFF. Predict the states for readings 1399, 1600 and 1801.
Reveal example answer
ON → ON → OFF. Below 1400 switches on; above 1800 switches off. Between the thresholds the previous state remains. These are synthetic ADC counts, not measured lux.
Your work · 25 minutes
Choose a small campus need, place and user that a light alert could help. Watch the simulated ESP32 animation. Record a real observation or an agreed user’s comment. Describe input → decision → LED response.
Practice steps
Write place, user, observed problem and proposed alert. Draw input → comparison → output. Predict three readings before trying the slider and record the result as simulated. Ask whether the chosen user would understand what the LED means.
Check and finish · 5 minutes
Explain your input → decision → output. Record the place, user and real evidence for the need.