Yveaux/Arduino_Vcc

Using LiPo 3.7V with Arduino Mini Pro

FilipDem opened this issue · 1 comments

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

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.