Self cooling city day 4
Main Content and Description of the Learning Scenario
Today, the app replaces its if/else rules with an ML4K Numbers model. The app classifies the current temperature as cool, normal, or hot and then sends an unsigned short value 1/2/3 to the Arduino. The developers extend the Arduino code: in addition to the LED traffic light, the mist function MIST is now also controlled. The designers finalise visibility, story, and presentation.
| Creator | Lana Sattelmaier |
| Subject | Computer Science, Technology, STEM |
| Length | 240 min. including a 20-minute break |
| Pedagogical Approach | Project-based learning |
| Competencies |
C02 – Decomposition |
| Grade | Grades 7–9 |
| Technologies | Arduino Nano 33 BLE, TMP36, LEDs red/yellow/green + 220 Ω resistors, breadboard, MIT App Inventor + AI2 Companion, ML4K web, smartphone/tablet, notebook |
| Evaluation |
|
Learning Activities
LA1: Warm-up and remaining tasks (30 min.)
Short test: App still receives temperature.
Teams check: traffic light works, MIST hardware ready without activation.
LA2: App – Integrating ML4K Numbers (50 min.)
Add ML4K extension and set key.
Call ClassifyNumbers, process GotClassification(label, confidence) see .aia package.
Mapping: hot → 1, cool → 2, normal → 3 → send short value.
LA3: Development – Connecting mist and testing mapping (55 min.)
Extend Arduino code see below in AB4.1.
Short 1/2/3: 1 = red + mist on, 2 = green + mist off, 3 = yellow + mist off.
Safety check: manual emergency stop, no continuous toggling.
— Break (20 min.) —
LA4: End-to-end AI demo (35 min.)
Hand on sensor → app classifies ML → short value → traffic light + mist.
Adjust thresholds/training until the behaviour is plausible.
LA5: Finalising design and presentation (20 min.)
Add photos/story: “With AI vs. without AI”.
Update legend/poster ML arrow in the data flow.
LA6: Documentation and outlook (10 min.)
Save 2 photos + 3 bullet points AI label, mapping, safety.
Outlook: final refinements and rehearsal.
Materials
Presentation – Link
AB4.1 – Developer – Link
AB4.2 – App Developer – Link
AB4.3 – Designer – Link
Main Content and Description of the Learning Scenario
Today, the app replaces its if/else rules with an ML4K Numbers model. The app classifies the current temperature as cool, normal, or hot and then sends an unsigned short value 1/2/3 to the Arduino. The developers extend the Arduino code: in addition to the LED traffic light, the mist function MIST is now also controlled. The designers finalise visibility, story, and presentation.
| Creator | Lana Sattelmaier |
| Subject | Computer Science, Technology, STEM |
| Length | 240 min. including a 20-minute break |
| Pedagogical Approach | Project-based learning |
| Competencies |
C02 – Decomposition |
| Grade | Grades 7–9 |
| Technologies | Arduino Nano 33 BLE, TMP36, LEDs red/yellow/green + 220 Ω resistors, breadboard, MIT App Inventor + AI2 Companion, ML4K web, smartphone/tablet, notebook |
| Evaluation |
|
Learning Activities
LA1: Warm-up and remaining tasks (30 min.)
Short test: App still receives temperature.
Teams check: traffic light works, MIST hardware ready without activation.
LA2: App – Integrating ML4K Numbers (50 min.)
Add ML4K extension and set key.
Call ClassifyNumbers, process GotClassification(label, confidence) see .aia package.
Mapping: hot → 1, cool → 2, normal → 3 → send short value.
LA3: Development – Connecting mist and testing mapping (55 min.)
Extend Arduino code see below in AB4.1.
Short 1/2/3: 1 = red + mist on, 2 = green + mist off, 3 = yellow + mist off.
Safety check: manual emergency stop, no continuous toggling.
— Break (20 min.) —
LA4: End-to-end AI demo (35 min.)
Hand on sensor → app classifies ML → short value → traffic light + mist.
Adjust thresholds/training until the behaviour is plausible.
LA5: Finalising design and presentation (20 min.)
Add photos/story: “With AI vs. without AI”.
Update legend/poster ML arrow in the data flow.
LA6: Documentation and outlook (10 min.)
Save 2 photos + 3 bullet points AI label, mapping, safety.
Outlook: final refinements and rehearsal.
Materials
Presentation – Link
AB4.1 – Developer – Link
AB4.2 – App Developer – Link
AB4.3 – Designer – Link


