ramsay-t / ShefRobot

Wrapper classes for Java code to use Lego robots.
3 stars 1 forks source link

Battery watcher #23

Open Robadob opened 8 years ago

Robadob commented 8 years ago

Add code for checking battery state.

Also add a warning when battery is low?

Robadob commented 8 years ago

Appears we have available to us.

The batteries voltage and current draw (amperage), rather than a convenience rough charge state method.

Google-fu suggests the only way to provide a rough estimate at charge, outside of lab circumstances (with the ability to constantly monitor the batteries state) is using the resistance, which we don't have access to.

With a bit of testing, it may be possible to find how these values fluctuate with usage, to make an internal warning though.

ramsay-t commented 8 years ago

There are standard curves for lithium ion voltages. They aren't linear but I can plot one in the eee lab when I get time.

On 10 November 2015 18:08:48 GMT+00:00, Robert Chisholm notifications@github.com wrote:

Appears we have available to us.

The batteries voltage and current draw (amperage), rather than a convenience rough charge state method.

Google-fu suggests the only way to provide a rough estimate at charge, outside of lab circumstances (with the ability to constantly monitor the batteries state) is using the resistance, which we don't have access to.

With a bit of testing, it may be possible to find how these values fluctuate with usage, to make an internal warning though.


Reply to this email directly or view it on GitHub: https://github.com/ramsay-t/ShefRobot/issues/23#issuecomment-155517124

Sent from my Android device with K-9 Mail. Please excuse my brevity.