← Back to the chapter · Previous detail · Next detail →
Technical detail · Capstone Projects: Agriculture and Environment
Battery-life screening calculation
Meeting the 7-day battery life target requires careful power budgeting. The calculation below is an intentionally optimistic screening case: it assigns 160mA to Wi-Fi transmit, 0.8mA to light sleep, 20mA to sensors, and only 200 ms to the whole active window every 5 minutes. A real budget must measure and include wake-up, sensor conversion, Wi-Fi association, DHCP, DNS, TCP/TLS/MQTT setup, display use, retries, regulator loss, and battery voltage sag.
Duty cycle calculation:
Average current:
Battery life (2x AA = 3000mAh):
With those best-case inputs, the arithmetic produces 136 days, or 19 times the target, but that ratio is not engineering margin for retries or display use because those costs were omitted from the active window. Measure the full active trace and substitute its charge before making a pass/fail claim. If the same unverified 200 ms assumption is reused for one-minute sampling, the screening result becomes 89 days; it remains a sensitivity example, not a battery-life prediction.