← Back to the chapter · Next detail →

Technical detail · ACE and Shared Context Sensing

An illustrative occupancy-sensing settling window

Phoebe’s field note supplies the mathematical reason for a settling window. A passive infrared (PIR) element responds to temperature change through i=pA(dT/dt)i=pA(dT/dt), rather than to a stationary temperature level. With a 10 Hz charge-amplifier corner, τ=1/(2πfc)=15.9\tau=1/(2\pi f_c)=15.9 ms. Three time constants give 47.7 ms for this assumed single-pole stage; the complete sensor and analogue front end need specification checks or measurements to validate the 50 ms sensing window assumed in the 0.34 mA-s ledger. Removing that wait from the budget would hide part of acquisition’s cost. In an ideal single-pole response to a step change, the fraction still left to settle after time tt is e−t/τe^{-t/\tau}. Three time constants give 47.7 ms and leave about 5% of the change still to settle. At 50 ms about 4.3% remains, so the 50 ms window used in the 0.34 mA-s ledger meets a 5% settling tolerance in this model.

For an example schedule, let the MCU sleep first and run during the last 30 ms of the sensing window.

Time after sensor power-onSensorMCU
0–20 msPowered at 2 mAAsleep at its sleep current
20–50 msPowered at 2 mAActive at 8 mA

To include MCU sleep, multiply its sleep current in mA by 0.020 s and add that charge in mA-s to the 0.34 mA-s subtotal.

If the application needs only 1% of the change left to settle, use about 4.6 time constants, or 73.3 ms. The sensor then uses 2 mA × 0.0733 s = 0.1466 mA-s. Add the same 0.24 mA-s for the MCU’s 30 ms of active time for a subtotal of 0.3866 mA-s. With the same schedule, add the MCU’s sleep current in mA multiplied by 0.0433 s for the rest of the window.

← Back to the chapter · Next detail →