-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
determining sufficient LiIon charge for heavy power usage. #32
Comments
The Mayfly 1.0 revA3 measures the battery using A6 to measure the input voltage to the board's 3.3v regulators, which is similar to how it was done on previous Mayfly board. However, because the new bq24074 will output up to 4.4v on its output pin during charging, the A6 pin can see voltages up to 4.4v during daytime on sunny days. On early Mayfly 1.0 prototype boards, we measured just the direct Lipo voltage, which gives the user a more realistic view of the battery status, however if a user is only powering the Mayfly with a USB cable (like during programming or use with a computer or external power supply), then A6 sees no voltage because no battery is connected. On future board revisions. additional circuitry could be used to "smart switch" between the Lipo or the USB voltage so that the output of the bq24074 isn't being measured, but the simplest (but manual) solution is to just add a solder jumper to allow user to select where they want to measure the battery voltage. |
So my perception is there is a critical issue for software to not cause a reset on the processor by creating a heavy demand on a battery. |
For a configuration with a LiIon battery that is at low outdoor temperature, say -10C, the available power is more limited than at a summer temperature. However when the battery is charging its going to have an additional voltage applied to it, which could be as much as 0.3V. |
The Mayfly 1.1 Sn 22059 with the new SJ27 set to LiPo Vbat measurement is not linear for reasonable battery measurement of Vbat in the range 3.6to 3.9V charging from Solar1 or USB. |
For Mayfly rev1 with a fully discharged LiIon battery, using a BQ24074 that is now being charging by a solar panel, what algorithm can be used to estimate the available power in the LiIon battery.?
For a charging system, with a heavy power usage, like an LTE modem, or instruments on +12V boost, there needs to be sufficient reservoir of available power before turning on the devices.
If there is an excessive power usage, then processor will have a brown-out, and reset.
The software measuring the Voltage on A6 through a high impedance 10M/2.7M combination measures Vin, which is wire-ORed through an ideal diode/Q3 from the power path output of V_BATT, and through D5 VUSB.
The V_BATT is from the BQ24074, that is either regulated 4.4V from Vin (solar) or LiIon_V.
Only when there is no charging power, does the Voltage on A6 represent approx the LiIon_V.
Assuming solar charging, and the system is just power up, one possibly method/algorithm of determining the LiIon_V is to wait a period of time (2hours~15minutes) and take the lowest measured descended Voltage as representing the LiIon_V. If its is insufficient, a sliding window could be implemented to look for a LiIon_V. This could be indicated by a state on the LEDs (short User switch press), and the waiting bypassed by a long User Switch press.
Another option on the mega1284 is to look for the reset reason as from a brownout. If this occurs then to implement the above algorithm However this requires modifying the Arduino BSP framework, as currently it is read and thrown away at startup.
The text was updated successfully, but these errors were encountered: