more docs

This commit is contained in:
Nicu Hodos 2023-02-22 00:06:25 +01:00
parent 85094b707e
commit 8d8deec805
2 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -1,13 +1,13 @@
# Temperature sensor # Temperature sensor
It uses a [TMP36](https://cloud.hodos.ro/wiki/ha/datasheets/TMP35_36_37.pdf) to read temperature and it is optimised for power consumption. It uses a [TMP36](https://cloud.hodos.ro/wiki/ha/datasheets/TMP35_36_37.pdf) to read temperature and it is optimised for power consumption.
It uses watch dog that wakes every 8s and increments a counter. Once the counter reaches a certain value (e.g. equivalent to 5 mins), it will read and send temperature to the gateway. It uses watch dog that wakes every 8s and increments a counter. Once the counter reaches a certain value (e.g. equivalent to 1 hour), it will read and send temperature to the gateway.
Every hour the voltage is also read and sent. Every 12 hours the voltage is also read and sent.
According to the calculator here, https://www.geekstips.com/battery-life-calculator-sleep-mode/, a cell coin battery with a capacity of `240mAh` should last for According to the [battery life calculator](https://www.allaboutcircuits.com/tools/battery-lifetime-calculator/), a cell coin battery with a capacity of `240mAh` should last for
`~ 3 months (108 days)`, given that: `~ 3 months (108 days)`, given that:
- Current consumption of device during sleep is `4.5uA` - Current consumption of device during sleep is `4.5uA`
- Device wakes up every `5 mins (12 times/hour)` - Device wakes up every `hour`
- Current consumption of device during wake is `10mA` - Current consumption of device during wake is `10mA`
- Duration of wake time is `1000 ms` - Duration of wake time is `1000 ms`