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

Battery measurement is off #33

Open
TokenRat opened this issue Sep 10, 2024 · 0 comments
Open

Battery measurement is off #33

TokenRat opened this issue Sep 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TokenRat
Copy link
Collaborator

What is the problem

Currently, getBatteryVoltage uses a factor for the internal ADC of 3.5V instead of 3.3v, what it should be. The reason is: If we use 3.5 as the factor, when on batteries, we go into soft-brownout detection at around 3.36V, which is right what we want. (Measured with multimeter on the batteries). Why is this? What is wrong with the formular?

Also, when on USB and monitoring serial, we get values which a very off. If we use 3.3 as a factor, we measure almost 0.2V too little. Using 3.5 as the factor still does not get the perfect result.

Maybe someone can spot the mistake…

Code:

const float EFBoardClass::getBatteryVoltage() {

@TokenRat TokenRat added the bug Something isn't working label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant