Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measure current consumption #28

Open
Andreasdahlberg opened this issue Sep 6, 2014 · 1 comment
Open

Measure current consumption #28

Andreasdahlberg opened this issue Sep 6, 2014 · 1 comment

Comments

@Andreasdahlberg
Copy link
Owner

It would be nice to measure the current consumption to better predict when charging is needed. This will also detect when the batteries needs to be replaced.

It can be solved by measuring the voltage drop over a shunt resistor, see picture below.
shunt
The current can then be calculated: A = Vdrop / Rshunt

The voltage drop is approximate 15 uV with the predicted current consumption. Since the processor has an 10-bit ADV we only have a resolution of 3.2 mV. (Vref / 1024). So its impossible to measure the voltage drop without some sort of amplification.

@Andreasdahlberg Andreasdahlberg self-assigned this Sep 6, 2014
@Andreasdahlberg Andreasdahlberg changed the title Measure current consumptio Measure current consumption Sep 6, 2014
@Andreasdahlberg
Copy link
Owner Author

The best solution would be to use a dedicated battery gauge IC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant