
Knowledge check · self-test
Check: Defend the final selection
Defend the final selection.
Defend the final selection.
::: {.callout-tip collapse="true"}
## Exercise: Selection Matrix Practice {.depth-l0 data-narration="suspended-until-rerecord"}
**Scenario**: Design a battery-powered weather station for a remote hiking trail. Requirements:
- Measure temperature (-20°C to +50°C, ±0.5°C accuracy)
- Measure humidity (0-100% RH, ±3% accuracy)
- Battery life: minimum 1 year (CR2477 coin cell, 1000mAh)
- Read sensors every 10 minutes
- Budget: $15 or less per sensor
**Your task**: Create a comparison matrix and select the best sensor.
**Solution template:**
::: {.selection-mobile-cards .selection-exercise-table}
| Sensor | Temp Accuracy | Humidity | Power (active/sleep) | Cost | Waterproof | Score |
|--------|---------------|----------|----------------------|------|------------|-------|
| DHT22 | ±0.5°C typical; full-range ±0.5°C limit fails | ±2% RH typical; full-range ±3% RH limit fails | 1.2mA typical / 5µA typical | $5 yes | No | Fails accuracy limits |
| BME280 | ±1°C no | ±3% RH at 20–80% RH and 25 °C; 0–100% RH requirement not established | 0.3mA / 0.1µA | $8 yes | No | 2/5 |
| SHT31 | full-range maximum ≤0.5°C: not established by ±0.2°C typical at 0–90°C | ±2% RH typical; maximum >±3% at 100% RH: no | 1.5mA max / 0.4µA worksheet assumption | $15 yes | PTFE filter option | Fails full-range humidity limit |
:::
**Selection:** None of these three candidates has a documented pass for both accuracy limits across the full stated temperature and humidity ranges. The SHT31 has attractive typical accuracy and low sleep current, but verify maximum errors over the range or qualify a different part before choosing. An outdoor enclosure must be selected separately.
**Battery life check (SHT31, sensor only)**:
::: {data-narration="suspended-until-rerecord"}
For this illustrative sensor-only calculation, assume 1.5mA during a one-second wake and 0.4µA while idle; the SHT31 data sheet lists 0.2µA typical and 2.0µA maximum single-shot idle current, so use the value appropriate to the intended temperature and power budget.
- Active charge per cycle: `1.5mA x 1s = 0.417µAh`.
- Sleep charge per cycle: `0.4µA x 599s = 0.067µAh` (using the worksheet assumption above).
- Total per cycle: `0.484µAh`.
- Per day: `144 cycles x 0.484µAh = 69.7µAh = 0.070mAh`.
- Sensor-only battery life: `1000mAh / 0.070mAh per day = about 14,300 days`.
These values are charge; energy requires voltage. Microcontroller sleep current can dominate real-world battery life.
:::
:::
Back to Choosing the Right Sensor: Check the Prototype Against Production Needs