Battery life
In this page we will discuss the currency of every component and calculate the lifetime of the PCB board (with 3 AAA batteries). The lifetime should at least be 1 year.
Last updated
In this page we will discuss the currency of every component and calculate the lifetime of the PCB board (with 3 AAA batteries). The lifetime should at least be 1 year.
Last updated
You can find al the values that you need for calculating the lifetime of the PCB in the datasheets that are given below.
PIR sensor (Panasonic AMN31111)
Humidity & temperature sensor (Si7012-A20)
Processor (STM32L476)
The average current that we measured of the PIR is about 128 µA. In the datasheets you can read that the average current should be around 170 µA. Why? The environment condition could be different.
When you apply the power to the sensor it will take about 4.140 seconds to startup. This pattern was always the same in my environment (no movement) Afterwards the out will be zero if there is no movement. Otherwise you'll see pulses by every movement. Some pulses are longer than others. Because the sensor sees more movement or the object comes closer to the sensor.
The following code is an example to move the processor into a sleep mode. And this is equal to stop mode 2 as specified in the datasheets.
Stop 2 mode : 1.4 µA w/RTC
RTC = Real Time Clock
Make sure to implement the mbed.h file.
We send a package with random data every 10 seconds. There can be an issue to send the packages, as you can see.
Requirements:
Measure for 2.5 seconds
Transmit via LoRaWAN for 500 µs
A sample how we calculate the battery life.
First of all calculate the currencies that you need.
After that implement the time.
At least calculate the lifetime.
With the requirements from above I calculated a battery life of 3.99 years theoretical and practical 1.29 years.
The values of the PIR, LoRaWAN and the processor were not exactly the same as in de datasheets.