Stopping the bounce?

I made a few adjustments after doing some research. DVCC is, by design, a bit sluggish to respond. To work around this, I added code to smooth the changes, giving the system time to adjust.

I also added a node that monitors battery voltage and disables the charger if it goes over 14.2 V, then automatically re-enables it when the voltage drops back down. This way, if there’s an overshoot, it doesn’t have to wait for DVCC to react.

This is something I’ve wanted to improve for a long time, so it’s been a good deep dive. I also linked the SmartShunt to the MPPT so the current readings are accurate and not just a stale-data problem.

I just made an edit to V3. It’s smooth now. In the video, I apply a load of 10A to the inverter. The shunt measures the battery. Any load applied is matched by the MPPT with this algorithm up to 20A.

Nice to do a longer video, but it will hold 14V after the load is removed. The load is 150W, the MPPT is maxed out can deliver the full 20A, only supplying the loads. I turn the load off, and you can see the current go to 0. I have it set to 14V, but you can set it to anywhere you wan,t and it will not hit absorption or float and use every bit of solar. If you want to set it to 13.6V, you can.

You can run a balance charge when you need to.

DVCC 12V ADJUST LIVE SYSTEM V3.txt (16.1 KB)