I modified the code as per your listing but regrettably that does not resolve the issue.
If the unit has been powered down for more than a few seconds it hangs with the yellow led flickering when power is applied. It can be made to run by either hitting reset or by powering off then powering on again. If power is switched off then on again with a short delay it operates ok.
I would appreciate it if you could look at this when you manage to return to the office. In the interim I will develop a short test code and will try it on another Boron as well as an Argon.
The test code will also look at a failure in the mirrorTo function which appears to have been introduced in 1.5.0. It mirrors when in Safe Mode and DFU mode but is otherwise inoperable.
Now I only use the System.setPowerConfiguration features. This has resolved the issue with the device refusing to charge on solar after waking via EN pin.
I was not using version 2.0 yet. I will give it a try. Today using PMIC required us to spend 4s in the setup which was very inefficient power wise as we needed big delays when interacting with PMIC.
FYI another useful feature would be to enable charging the battery at lower voltage. For long term use a voltage around 3.9V allows the battery to sustain a lot more charge cycles.
Please try it, among other things connectivity is also greatly improved.
Iāve never tried charging that low, the PMIC can go down to 3.504V ā Confirmed, the power configurator will allow you to set the charge voltage this low.
@no1089
So can you recap for me what commands I am supposed to use in version 2, and what i can get rid of? Currently I do something similar to the last post in this thread:
Like most users all I really care about is those 3 lines:
pmic.setInputVoltageLimit(5080); // for efficient solar panel
pmic.setInputCurrentLimit(900) ; // dont care cause I use a small panel
pmic.setChargeVoltage(3950); //to be nice to the battery
pmic.setChargeCurrent(0, 0, 1, 0, 0, 0); //1024mA
You need to tell the PMIC what voltage to expect, and the current the panel can provide.
5080mV is rather high, and if shade hits the panel and could drop below this limit, which will shut off power.
900mA is also very high, what spec is your panel? At 5.080V and 900mA thatās a 4.5W panel?
You can use the following, but at such a low termination voltage, you lose a lot of charge:
Ok so this code would have to be run at every power cycle/RST of the boron in the setup? I wasnāt familiar with conf. and only used PMIC., any recommendation between both?
Exactly itās a 5W panel, oversized for installations in forests. I looked at the MPPT point for the panel and itās optimal around 5.5V, but youāre right itās wiser to optimize it for shady conditions som aybe around 4.8V.
Why is sourcemax current ever needed? the boron PMIC shouldnt need this parameter and just draw current to match batterychargecurrent, and if the source canāt handle it it should just try the max it out.
Just as a point of reference, using 5.080V will still provide more charging with a 6V Solar Panel in Cloudy Conditions. See the general graph in this post
I agree, it's my opinion that SourceMaxCurrent isn't near as useful at SourceMinVoltage for most circumstances involving Solar Panels. Solar Panels are 'Current Producing" sources, but we cant do much with current if the Voltage isn't higher (+ a minimum Overhead) than the battery that we are trying to recharge. That's where the PMIC's DPM (Dynamic Power Management) shines on two fronts.
By using powerSourceMinVoltage(5080), the PMIC will operate the 6V Solar Panel at the max effeciency that it's able to, no matter the light intensity.
Here's a clip from the datasheet: 8.3.2.2 Dynamic Power Management To meet maximum current limit in USB spec and avoid over loading the adapter, the bq24195L, bq24195 features Dynamic Power Management (DPM), which continuously monitors the input current and input voltage. When input source is over-loaded, either the current exceeds the input current limit or the voltage falls below the input voltage limit. The device then reduces the charge current until the input current falls below the input current limit and the input voltage rises above the input voltage limit.
Regarding the Li-Po termination voltage, it's just personal preference based on each project's goals.
If your Li-Po can meet your Design Power Budget with it's remaining capacity at 3.9V, then there's no harm there.
I feel like the default of 4.1V is a great "all around" number.
I've even started switching to 4.2V during the Winter Months for most Li-Po Solar Projects, as it helps tremendously during a cloudy week or two.
If space isn't an issue, then a 12V Panel and 12V SLA make life easy, as Power & Sleeping are no longer main aspects for the Project.