Self cooling city day 2

Main Content and Description of the Learning Scenario

All students start with Machine Learning for Kids (ML4K) to understand AI in a practical way: first with images classification, then with numbers. Afterwards, the teams transfer what they have learned to the project:

  1. Developers connect the Arduino Nano 33 BLE via Bluetooth and send only the temperature.
  2. App developers build the BLE function in MIT App Inventor: scanning, connecting, displaying, and Notify.
  3. Designers expand the hotspot map and visualisation, making the data readable so that later AI decisions can become visible.

 

Creator Lana Sattelmaier
Subject Computer Science, Technology, STEM
Length 240 min. including a 20-minute break
Pedagogical Approach Project-based learning
Competencies

C02 – Decomposition
C04 – Patterns
C12 – Programming
C33 – AI algorithm basics
C43 – Sensor basics
C44 – Data collection through sensors

Grade Grades 7–9
Technologies ML4K web, MIT App Inventor, Arduino Nano 33 BLE, TMP36, notebook, smartphone/tablet AI2 Companion
Evaluation
  • ML4K: 1 image model with at least 2 classes and 1 numbers model with at least 3 classes trained and briefly tested
  • App displays live temperature via BLE Notify Arduino → app
  • Short screenshot evidence + 3 bullet points per team

Learning Activities

LA1: ML4K warm-up – Classifying images (35 min.)

Goal: Understand “how AI learns” using images.
Process: The teacher demonstrates the procedure live.

Create a new ML4K project → Images.

Create 2–3 classes, for example “cat/dog” or “cup/bottle/scissors”.

Add 10–15 images per class licence-free/sample images; no faces.

Train → Test try out a few new images.

Result: Short insight sentence: “What did the AI pay attention to? Where did it make mistakes?”

LA2: ML4K – Numbers (35 min.)

Goal: Understand numbers → classes, for example “cool/normal/hot”.
Process: Students work through the worksheet.

Create a second ML4K model → Numbers.

Create classes, for example “cool < 20”, “okay 20–30”, “hot > 30”.

Enter 10–20 examples per class numbers.

Train → Test enter a number and check the AI label.

Transfer: “These are exactly the kinds of labels the app will later use to make decisions.”

— Break (20 min.) —

LA3: Project transfer – Parallel phase I (50 min.)

Developers Arduino → app, temperature only:

Flash the code.

Check: Nano sends tempCharacteristic every 5 s string, 1 decimal place.

Device name: NanoTemp
Service UUID: 0000FFE0-0000-1000-8000-00805F9B34FB

Temp Char UUID: 0000FFE1-0000-1000-8000-00805F9B34FB Notify.

Note: If several Arduinos and apps are used, different names and UUIDs must be selected.

Use the serial monitor to track start/connection/sent °C.

App developers MIT App Inventor:

Components: BluetoothLE1, ListPicker_Device, Button_Scan, Label_Status, Label_Temp.

Blocks see file.

Goal: See live value from Arduino.

Designers model and making data visible:

Expand the hotspot map with a scale/legend colour gradient.

Sketch display idea: Where will the live value become visible? Sign/icon/display area.

Preparation for Day 3: Space for “reaction zones” LED/mist markers.

Continue building the model.

LA4: Mini-test and stabilisation (30 min.)

Goal: Temperature is visible in the app end-to-end, with a stable process.

App shows increasing value when the sensor is warmed by hand.

Developers secure cables and check interval/smoothing optional.

Designers take a photo of the model + display location.

LA5: Documentation sprint and outlook (10 min.)

Goal: Save results and prepare next steps AI decision, rules → actions.

1 screenshot/app + 1 photo/circuit + 1 photo/model

3 bullet points: “What works? What is still missing? Next step?”

Materials

Presentation – Link

AB2.0 – ML4K Quickstart Numbers – Link

AB2.1 – Developer BLE temperature with TMP36 – Link

AB2.2 – App Developer BLE Notify in App Inventor – Link

AB2.3 – Designer visualising data – Link

Main Content and Description of the Learning Scenario

All students start with Machine Learning for Kids (ML4K) to understand AI in a practical way: first with images classification, then with numbers. Afterwards, the teams transfer what they have learned to the project:

  1. Developers connect the Arduino Nano 33 BLE via Bluetooth and send only the temperature.
  2. App developers build the BLE function in MIT App Inventor: scanning, connecting, displaying, and Notify.
  3. Designers expand the hotspot map and visualisation, making the data readable so that later AI decisions can become visible.

 

Creator Lana Sattelmaier
Subject Computer Science, Technology, STEM
Length 240 min. including a 20-minute break
Pedagogical Approach Project-based learning
Competencies

C02 – Decomposition
C04 – Patterns
C12 – Programming
C33 – AI algorithm basics
C43 – Sensor basics
C44 – Data collection through sensors

Grade Grades 7–9
Technologies ML4K web, MIT App Inventor, Arduino Nano 33 BLE, TMP36, notebook, smartphone/tablet AI2 Companion
Evaluation
  • ML4K: 1 image model with at least 2 classes and 1 numbers model with at least 3 classes trained and briefly tested
  • App displays live temperature via BLE Notify Arduino → app
  • Short screenshot evidence + 3 bullet points per team

Learning Activities

LA1: ML4K warm-up – Classifying images (35 min.)

Goal: Understand “how AI learns” using images.
Process: The teacher demonstrates the procedure live.

Create a new ML4K project → Images.

Create 2–3 classes, for example “cat/dog” or “cup/bottle/scissors”.

Add 10–15 images per class licence-free/sample images; no faces.

Train → Test try out a few new images.

Result: Short insight sentence: “What did the AI pay attention to? Where did it make mistakes?”

LA2: ML4K – Numbers (35 min.)

Goal: Understand numbers → classes, for example “cool/normal/hot”.
Process: Students work through the worksheet.

Create a second ML4K model → Numbers.

Create classes, for example “cool < 20”, “okay 20–30”, “hot > 30”.

Enter 10–20 examples per class numbers.

Train → Test enter a number and check the AI label.

Transfer: “These are exactly the kinds of labels the app will later use to make decisions.”

— Break (20 min.) —

LA3: Project transfer – Parallel phase I (50 min.)

Developers Arduino → app, temperature only:

Flash the code.

Check: Nano sends tempCharacteristic every 5 s string, 1 decimal place.

Device name: NanoTemp
Service UUID: 0000FFE0-0000-1000-8000-00805F9B34FB

Temp Char UUID: 0000FFE1-0000-1000-8000-00805F9B34FB Notify.

Note: If several Arduinos and apps are used, different names and UUIDs must be selected.

Use the serial monitor to track start/connection/sent °C.

App developers MIT App Inventor:

Components: BluetoothLE1, ListPicker_Device, Button_Scan, Label_Status, Label_Temp.

Blocks see file.

Goal: See live value from Arduino.

Designers model and making data visible:

Expand the hotspot map with a scale/legend colour gradient.

Sketch display idea: Where will the live value become visible? Sign/icon/display area.

Preparation for Day 3: Space for “reaction zones” LED/mist markers.

Continue building the model.

LA4: Mini-test and stabilisation (30 min.)

Goal: Temperature is visible in the app end-to-end, with a stable process.

App shows increasing value when the sensor is warmed by hand.

Developers secure cables and check interval/smoothing optional.

Designers take a photo of the model + display location.

LA5: Documentation sprint and outlook (10 min.)

Goal: Save results and prepare next steps AI decision, rules → actions.

1 screenshot/app + 1 photo/circuit + 1 photo/model

3 bullet points: “What works? What is still missing? Next step?”

Materials

Presentation – Link

AB2.0 – ML4K Quickstart Numbers – Link

AB2.1 – Developer BLE temperature with TMP36 – Link

AB2.2 – App Developer BLE Notify in App Inventor – Link

AB2.3 – Designer visualising data – Link