TheThingsIndustries / generic-node-se

Generic Node Sensor Edition
https://www.genericnode.com
Other
110 stars 31 forks source link

Improve battery reporting accuracy #96

Open elsalahy opened 3 years ago

elsalahy commented 3 years ago

Summary:

We can add multiple battery management APIs that allow us to accurately report the battery voltage level. see #94 where we provide APIs that use the 12 bit ADC to report the ADC status.

The output data has a minor deviation ( ~ (+- 120) mv), and this is mostly due to RP605Z283B error percentage image

We can also do the data averaging the cloud to better estimate the battery status.

Why do we need this?

To get a better representation of the device battery level.

What is already there? What do you see now?

A good battery report system with no data averaging/offsetting. Battery reporting deviation in mv ( ~ (+- 120) mv)

What is missing? What do you want to see?

Improved battery monitoring using filters (averaging or exponential as @azerimaker recommended)

How do you propose to implement this?

Environment:

Bare-Metal or OS

Acceptance Criteria:

The improvement of the accuracy shouldn't add a computational overhead.

What can you do yourself and what do you need help with?

All