guidosch / bikecounter

This repository contains the hardware and software components of a PIR based tracking device to monitor the usage of local bike trails. The data is sent over LoRaWAN to TTN and from there to a Google Cloud backend which stores the data and provides api endpoints for the data visualization web UI.
Creative Commons Zero v1.0 Universal
5 stars 0 forks source link

Measure Li-Ion battery decharge curve #18

Closed MeierTobias closed 8 months ago

MeierTobias commented 2 years ago
guidosch commented 1 year ago

Decharge curve of the "antennentrail-1" device over summer period 2022.

Bildschirmfoto 2022-10-15 um 11 57 25
guidosch commented 1 year ago

Mapping from value to charging level: Ideas https://stackoverflow.com/questions/13399821/data-structures-that-can-map-a-range-of-keys-to-a-value https://greensock.com/docs/v3/GSAP/UtilityMethods/mapRange()

MeierTobias commented 8 months ago

I would say that the currently implemented 5th order polynomial interpolation to get the battery level from the battery voltage seems to work fine for our purposes. If we want to improve the accuracy, we can evaluate the correlation between the voltage, the awake time (approximated with the count and send frequency) and the temperature to find better fitting coefficients.