opendps icon indicating copy to clipboard operation
opendps copied to clipboard

Add MPPT, Original CC/CV, Reduce ADC Jitter and fix LCD freeze on DPS5020

Open art103 opened this issue 3 years ago • 5 comments

Hi, Please find a pull request for the following changes:

  • Apply the LCD freeze workaround to the DPS5020 model.
  • Reduce jitter by using ADC oversampling

art103 avatar May 25 '21 07:05 art103

Oops, sorry - the pull request was only supposed to be for the first 2 commits. The rest are entirely optional, but CC/CV makes the unit behave much more like the original :)

art103 avatar May 25 '21 18:05 art103

I can confirm its working, flashed on dps5020 v2.6. nO BUGS yet. I build from your master branch and i wonder how you would use mppt? Any documentation? Its a bad decision to start in mppt mode! Couldnt we set cc/cv mode as default instead? I created pull request to your fork!

eliasmagn avatar Aug 02 '21 17:08 eliasmagn

Hi @art103,

Does your re-implementation of the cc/cv mode work with control over serial?

ItsMeAubey avatar Feb 07 '23 15:02 ItsMeAubey

Hi @art103,

Does your re-implementation of the cc/cv mode work with control over serial?

It was a long time ago and I haven't tried it, but looking back through the code changes, I think it should...

art103 avatar Feb 07 '23 15:02 art103

I can confirm its working, flashed on dps5020 v2.6. nO BUGS yet. I build from your master branch and i wonder how you would use mppt? Any documentation? Its a bad decision to start in mppt mode! Couldnt we set cc/cv mode as default instead? I created pull request to your fork!

Sorry - it's been a while! I agree that for normal use cases, starting in MPPT is a bad idea. For my use case, the unit would power down when there was no solar input, and I wanted it to come up in MPPT mode. I ended up modifying one of my units to have HW controlled PWM based on Input Voltage instead of Output Current. This allows much better (and faster) MPPT control targeting a particular solar panel voltage after doing a MPPT sweep.

art103 avatar Feb 07 '23 15:02 art103