This is a low-power environmental (ambient temperature / relative humidity / barometric pressure) Home Assistant-integrated WiFi sensor. It has a lifespan of over 2 years while powered by 2xAA LiFePo batteries. It runs on a ESP32-C3 based module. It remains in deep sleep mode most of the time and wakes up every 30 minutes to send environmental data to Home Assistant. It uses the low-power BME280 environmental sensor.
The board is powered by a pair of 1.5V AA LiFePO lithium batteries (non-rechargeable). The decision to use these batteries was based on:
- Their ability to discharge almost to capacity while maintainng a steady voltage (unlike alcaline batteries). This eliminates the need for voltage regulation
- This allows for both saving on components count - and the additional power draw
- Batteries very low self-discharge current (ie, shelf life of > 10 years)
The board is using standard ESPHome firmware with custom YAML configuration.
If you choose ot manufacture your own PCB, the corresponding Gerber files are included.
The total battery capacity
Where:
-
$Q_\text{self\ discharge}$ : Capacity consumed due to self-discharge -
$Q_\text{board quiescent\ charge}$ : Capacity consumed by the quiescent current of the circuit -
$Q_\text{useful capacity}$ : Capacity consumed during measurements
To convert mAh to Coulombs:
Where:
-
$(Q)$ : Charge in coulombs (C) -
$(I)$ : Current capacity in milliampere-hours (mAh)
For Energizer Ultimate Energizer L91 AA lithium battery:
The board consumes <
Charge used by the board in deep sleep in 1 year:
The L91 AA lithium battery boasts a shelf life of 15 to 25 years at 21°C (70°F), indicating a self-discharge rate of less than 1% per year. Calculating loss of charge due to self-discharge for a 2-year cycle:
The remaining useful capacity of the battery after 2 years:
Single environmental measurement and subsequent communication with HA consumes between 200mC and 250mC of charge:
Assuming worst case, the total number of possible measurements is:
Considering 30 mins sleep between measurements, the sensor lifespan on a single set of fresh batteries would be: