150V 45A MPPT - roll your own


Author Message
poida

Guru

Joined: 02/02/2017
Location: Australia
Posts: 1452
Posted: 10:10pm 10 Oct 2022      

HI Nicks

sure I could do this.
I already have built a cc-cv charger for the ebike.

I think it will work quite well but it will not be
a general purpose power supply, with all the protections designed into them.
What I refer to is the likely bad things that will happen when the output
is shorted.

The ebike charger code works quite slowly, it does not respond to changes in battery voltage very fast at all.

I use the simplest control loop there is which is
every 100th second, if battery is below setpoint increase PWM width by one clock cycle. Else reduce it by one cycle.
Also I check for current limit. If it's exceeded, reduce by 5 cycles.
Eventually the PWM width will settle to what is needed.
The ebike is set at 7.5 A max charge current and 54.6V charge voltage.
Neither of these values are ever exceeded.
I plug it in and it runs at 7.5A for a while then the current backs off after 54.6V is measured at the output, running down to near enough to zero when I check it
in the morning.
Is this the kind of behavior you want from the firmware?