Scenario: You’re designing a smart HVAC system using a 10K NTC thermistor to measure room temperature. The system must detect temperature changes quickly enough to respond before occupants feel discomfort, but not waste energy by sampling too fast.
Step 1: Understand Thermistor Physical Dynamics
The thermistor is a first-order thermal system (similar to RC circuit):
\[T_{sensor}(t) = T_{initial} + (T_{final} - T_{initial}) \cdot (1 - e^{-t/\tau})\]
Where τ (tau) is the thermal time constant — the time for the sensor to reach 63.2% of the step change after a step input.
From datasheet: Your thermistor has τ = 10 seconds in still air.
Step 2: Calculate Sensor Bandwidth
Bandwidth of first-order system:
\[BW = \frac{1}{2\pi\tau} = \frac{1}{2\pi \times 10} = 0.0159 \text{ Hz}\]
This means the thermistor can only respond to temperature changes occurring slower than 0.016 Hz = once every 63 seconds.
Step 3: Apply Nyquist Theorem
Minimum sampling rate = 2 × bandwidth:
\[f_s > 2 \times 0.016 \text{ Hz} = 0.032 \text{ Hz}\]
This translates to one sample every 31 seconds (minimum).
Step 4: Add Practical Safety Margin
Engineers use 5-10× Nyquist for safety:
\[f_s = 5 \times 0.032 = 0.16 \text{ Hz} = \textbf{one sample every 6 seconds}\]
Or conservatively:
\[f_s = 10 \times 0.032 = 0.32 \text{ Hz} = \textbf{one sample every 3 seconds}\]
Step 5: Validate Against Application Requirements
HVAC comfort requirements:
- Occupants notice ±0.5°C changes
- Acceptable response time: detect change within 30 seconds
- Room temperature changes: ~0.1°C/minute (very slow)
Analysis:
- Room temp change rate: 0.1°C/min = 0.0017 Hz ✓ (well below 0.016 Hz sensor bandwidth)
- Detection time @ 6 sec sampling: 30 sec / 6 sec = 5 samples to confirm trend ✓
- Thermistor settling: 3τ = 30 sec for 95% accuracy ✓
Conclusion: Sampling every 6 seconds is optimal.
Step 6: Calculate Energy Impact
Option A: Oversample at 1 Hz (once per second)
- Samples per day: 86,400
- ADC energy: 40 µA × 10 ms × 86,400 = 34.6 mAh/day
- Wireless TX energy (1 reading/min): 120 mA × 50 ms × 1440 = 144 mAh/day
- Total: 178.6 mAh/day
Option B: Optimal at 0.167 Hz (once per 6 seconds)
- Samples per day: 14,400 (6× less)
- ADC energy: 40 µA × 10 ms × 14,400 = 5.8 mAh/day (83% reduction!)
- Wireless TX energy (same): 144 mAh/day
- Total: 149.8 mAh/day (16% overall savings)
Battery Life (2000 mAh battery):
- Option A (1 Hz): 2000 / 178.6 = 11.2 days
- Option B (6 sec): 2000 / 149.8 = 13.4 days (+2.2 days = +19% longer life)
Step 7: What if You Ignored Sensor Dynamics?
Naive approach: “Sample as fast as possible for best data!”
Sampling at 10 Hz (every 100 ms):
- Samples per day: 864,000
- ADC energy: 40 µA × 10 ms × 864,000 = 346 mAh/day (10× worse!)
- Battery life: 2000 / (346 + 144) = 4.1 days (67% shorter!)
What you get for 10× power consumption: Zero benefit
- Thermistor bandwidth: 0.016 Hz
- Sampling at 10 Hz captures: 0.016 Hz signal + 9.984 Hz of noise
- All samples from 100-600 ms are essentially identical (sensor hasn’t moved)
Analogy: Photographing a glacier melting at 1000 frames/second. You get 1000 nearly-identical photos when 1 photo per hour would capture all the information.
Key Lessons:
- Sensor bandwidth, not ADC capability, determines useful sampling rate
- Thermistor: 0.016 Hz bandwidth → sample at 0.16 Hz
- MEMS accelerometer: 1000 Hz bandwidth → sample at 5000-10000 Hz
- Oversampling past sensor bandwidth captures only noise
- 10 Hz sampling of 0.016 Hz signal = 99.84% wasted samples
- Energy savings are significant
- Matching sampling to sensor dynamics: +19% battery life
- Oversampling ignorantly: -67% battery life
- Time constant (τ) → bandwidth (1/2πτ) → sampling rate (5-10× BW)
- This chain is fundamental to efficient IoT design
Practical Rule: Check sensor datasheet for time constant τ. If it says “10 second response time,” you should NOT sample faster than once per second (5-10× bandwidth of 1/2πτ).
Verification: Always test with real sensor — apply step input (move thermistor from room to hot water), plot response curve, measure actual time constant, adjust sampling rate accordingly.