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

Using LiPo 3.7V with Arduino Mini Pro #9

Open
FilipDem opened this issue Jun 21, 2020 · 1 comment
Open

Using LiPo 3.7V with Arduino Mini Pro #9

FilipDem opened this issue Jun 21, 2020 · 1 comment

Comments

@FilipDem
Copy link

FilipDem commented Jun 21, 2020

Hi,
Thank you for the great library. Hower a question and a problem.
I am using the Arduino Pro Mini (ATMega328P) 3.3V version.

Problem: I go in PowerDown (for 8 seconds). However in most cases the percentage reading is 0 (zero). Had anyone the same problem? After investigation I found out that the reading is correct until the first PowerDown (LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_ON);). After the first wakeup it reads always 0 (float p = vcc.Read_Perc(VCC_MIN, VCC_MAX);).

Question: When using the LiPo, the battery has a typical voltage of 3.7, but can go to 4.2 when fully charged. The LiPo is connected to the "RAW". What is the vcc_max to use? As far as I understood, the measurement is done after the (internal) regulator on the Vin (so +-3.3 max, correct?). So what is then the min and max to use.

Recommendation: would also be great to add an example with voltage higher than 3V. You are using only 2 alkaline in your example of 1.5...

Thanks again!

Filip

@FilipDem
Copy link
Author

FilipDem commented Jul 3, 2020

Hey,
Could you help me?

If I use a loop with float p = vcc.Read_Perc(VCC_MIN, VCC_MAX);, I receive correct information about the battery.
However, if I have a loop with

float p = vcc.Read_Perc(VCC_MIN, VCC_MAX);
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_ON);

Only the first reading is correct. After the wakeup, the p equals always zero.

Any information is welcome to solve the problem.

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

No branches or pull requests

1 participant