Add MPPT, Original CC/CV, Reduce ADC Jitter and fix LCD freeze on DPS5020#241
Add MPPT, Original CC/CV, Reduce ADC Jitter and fix LCD freeze on DPS5020#241art103 wants to merge 11 commits intokanflo:masterfrom
Conversation
Apply oversampling to the ADC values to reduce jitter (OVP / OCP) and LCD readings.
Turn output off if v_in drops below threshold for current output voltage. Control the fan automatically on DPS5020 to mimic original firmware.
This replaces CC / CV / CL with a CCCV screen. The use of a SW i_limit is replaced with the HW DAC for limiting current. This makes the unit behave much like the original, without the SW limit cutting power. The SW limit is now set to the maximum output current supported by the DPS model.
Be careful with this! This screen automatically enables the output (so it starts when the solar panel generates power). It uses a binary tree search to quickly find the maximum power point of the input source. The output is limited to the voltage / current limits set on the screen.
|
Oops, sorry - the pull request was only supposed to be for the first 2 commits. |
Change screen colours.
|
I can confirm its working, flashed on dps5020 v2.6. nO BUGS yet. |
|
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... |
Sorry - it's been a while! |
Hi,
Please find a pull request for the following changes: