Skip to main content
6 events
when toggle format what by license comment
Jun 26, 2021 at 20:23 comment added Danijel Markov Okay, got it. Thanks I'm going to make changes then do a test. If you want to check the thing, it's called Battery Guru, and it's on PlayStore
Jun 26, 2021 at 20:11 comment added SystemTheory In real time the data stream produces a series of current samples with timestamps. If the data stream is stored it will be an array of current samples and an array of timestamps. If data are available in series then just take a difference operation on the timestamp array which gives the width of each rectangle in the series and then multiply this by the current sample for that period (this assumes current is constant for a short period) so this is the width (time) times height (current) in your sample data. Then sum all these products to get the measured area and then convert to other units.
Jun 26, 2021 at 18:44 history edited SystemTheory CC BY-SA 4.0
added 137 characters in body
Jun 26, 2021 at 18:35 history edited SystemTheory CC BY-SA 4.0
added 973 characters in body
Jun 26, 2021 at 17:24 comment added Danijel Markov The time here is not exact. it's always +100-300ms for each run. In the short run, it's not a big deal tho but after few hours it makes a huge difference as I explained in one of the comments above. I would rather going to include the runtime in the calculation average mA * runtime(s) / 3600. I hope I'm not wrong here.
Jun 26, 2021 at 16:43 history answered SystemTheory CC BY-SA 4.0