viewof tx_current = Inputs.range([50, 300], {value: 160, step: 10, label: "WiFi TX Current (mA)"})
viewof sleep_current = Inputs.range([0.1, 5], {value: 0.8, step: 0.1, label: "Sleep Current (mA)"})
viewof sensor_current = Inputs.range([5, 50], {value: 20, step: 5, label: "Sensor Active Current (mA)"})
viewof tx_duration = Inputs.range([0.1, 2], {value: 0.2, step: 0.1, label: "TX Duration (seconds)"})
viewof sample_interval = Inputs.range([60, 600], {value: 300, step: 60, label: "Sample Interval (seconds)"})
viewof battery_capacity = Inputs.range([1000, 5000], {value: 3000, step: 500, label: "Battery Capacity (mAh)"})Environment-monitor battery budget
Environment-monitor battery budget
animation
capstone
power
Try Change sample interval and press Calculate.
Observe Watch Battery Life and Status against the 7-day target.
Explain Explain why the 7-day target requires measuring the full active trace.
Technical boundaries. This optimistic screening case omits wake-up, sensor conversion, Wi-Fi association, DHCP, DNS, TCP/TLS/MQTT setup, display use, retries, regulator loss, and battery voltage sag. Its target ratio is not engineering margin.
TipPutting Numbers to It
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.