Grade 9 · Campus light-alert prototype

Choose a campus need

One task across two 55-minute lessons. Work individually; share hardware in pairs and keep your own record.

For this lesson

Use the same weekly handout for Part 1 and Part 2. Keep your own answers and evidence.

Student workbook pages: 3–4, 21–22. Use Part 1 and Part 2 in the weekly download.

Starter files and circuit references

Unplug before changing wires. Use 3.3 V inputs and teacher-checked wiring. The handout includes the circuit reference.

Open the simulated ESP32 demo →

Work through the lesson

1. Lesson 1 · 55 minutes

Open this lesson’s weekly handout (Word)

Visual walkthrough

A campus alert has a user

Trace the stages from left to right.

  1. Place: a model cupboard
  2. Input: synthetic light count
  3. Decision: compare limits
  4. Output: warning LED
Discuss before continuing

Who needs the signal and what should they do? Open the simulation and explain one response.

Open the simulated ESP32 demo →

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.

2. Lesson 2 · 55 minutes

Open this lesson’s weekly handout (Word)

Visual walkthrough

Two limits prevent flicker

Trace the stages from left to right.

  1. 2200: OFF → 1399: ON
  2. 1600: keep ON
  3. 1800: keep ON
  4. 1801: OFF → 1600: OFF
Discuss before continuing

Why can 1600 give either state? Try both histories in the simulation. Counts are synthetic, not lux.

Open the simulated ESP32 demo →

Start · 5 minutes

Why might an alert flash repeatedly near a single threshold?

Explain and demonstrate · 10 minutes

Two thresholds help keep the output stable. At exactly 1400 or 1800 the program keeps its previous state. Simulation checks a prediction about the program; real wiring and calibration need separate teacher-approved tests.

Demonstration

Compare two journeys through 1600: approach from 1399 with the LED ON, then from 1801 with it OFF. The same reading can keep a different state because the previous state matters. This is hysteresis. A real LDR circuit needs later tests for wiring, actual readings and suitable thresholds in the intended place.

Class example · 10 minutes

The LED is ON at 1400. Should it turn OFF? Then repeat the question with the LED already OFF.

Reveal example answer

It stays ON in the first case and OFF in the second. Equality keeps the previous state. Use the simulator to check both starting states and label the results simulated.

Your work · 25 minutes

Use a teacher-checked real circuit only if ready. Otherwise predict responses with the animation. Label these as simulations, not physical tests. Agree four measurable checks: correct response, stable output, clear meaning for users and safety. Record what still needs testing with real hardware.

Practice steps

Write one measurable check each for response, stability, meaning and safety. Include a repeated reading sequence near both thresholds. Use the demo for predictions, or an approved real circuit if ready. Label the evidence source and list remaining real-hardware tests.

Check and finish · 5 minutes

Agree measurable checks for response, stability, meaning and safety. List what remains untested on real hardware.

Keep this evidence

  • Keep your observation, input–decision–output explanation, four measurable checks and untested hardware questions. Do not claim that practical skills or calibration are complete. The warning LED is not a room lamp. No campus installation, cameras or tracking.

Homework

Finish the same task if needed. There is no extra worksheet. Hardware stays at school.

Homework · Weekly handout (Word)

Weekly rubric

One rubric for the shared task across both lessons. Use it for class feedback.

BandObservable evidence
0No assessable evidence for this task yet.
1–2A campus idea is named, but the user need or input–decision–output explanation is unclear.
3–4A real observation or user comment is recorded. The alert rule and some checks are described, but evidence labels or hardware questions need work.
5–6The need, input–decision–output explanation and four measurable checks are complete. Simulated evidence and untested hardware questions are clearly labelled.
7–8Evidence connects the user need to the alert. Predictions explain threshold boundaries and previous state; checks address response, stability, meaning and safety.

When hardware is unavailable, clearly labelled predictions and safe planning count as this week’s evidence; do not claim practical testing.