What
Create an example that reads temperature, humidity and pressure, then displays a face expression on the OLED that reflects indoor comfort (happy = ideal, sad = cold, angry = hot).
Why
Natural extension of the tamagotchi (#399). Combines sensor readings with the `steami_screen.face()` widget for an expressive, easy-to-understand output.
Suggested approach
- Read temperature from WSEN-PADS, humidity from HTS221
- Evaluate comfort:
- 18-26°C and 40-60% RH → `screen.face("happy")` + "IDEAL"
- Too hot (>30°C) or humid (>75%) → `screen.face("angry")` + "HOT"
- Too cold (<15°C) or dry (<25%) → `screen.face("sad")` + "COLD"
- Display the face + temperature + humidity values using `steami_screen` widgets
- Update every second
- `try/finally` with `power_off()` for both sensors
Hardware
- SSD1327 OLED
- WSEN-PADS (temperature + pressure)
- HTS221 (humidity)
Documentation
Write a pedagogical activity sheet for the STeaMi wiki covering:
- Learning objectives (sensors, comfort index, conditional logic, UI feedback)
- Step-by-step instructions
- How to test (blow warm air, move to cold room, etc.)
- Extension ideas (add pressure trend, historical graph, BLE broadcast)
What
Create an example that reads temperature, humidity and pressure, then displays a face expression on the OLED that reflects indoor comfort (happy = ideal, sad = cold, angry = hot).
Why
Natural extension of the tamagotchi (#399). Combines sensor readings with the `steami_screen.face()` widget for an expressive, easy-to-understand output.
Suggested approach
Hardware
Documentation
Write a pedagogical activity sheet for the STeaMi wiki covering: