I need to design an MPPT and the converter that uses it. the thing is: the Solar panel has a max voltage of 40V and the battery that is going to be charged is around 100V, the most easy thing would be to use a Boost converter, but from what i understand, an MPPT changes the duty cycle of the dc-dc converter according to de current and voltage of the panel, so it couldn't produce a stable output voltage to charge the battery, my idea would be to use a buck converter for the MPPT and boost the output of the buck with a boost converter, each converter with independent duty cycles, is this a bad idea?, why?, what would be a better solution? and if it's the correct route, should i put a capacitor between the 2 converters as an energy reservoir?
1 Answer
the Solar panel has a max voltage of 40V and the battery that is going to be charged is around 100V, the most easy thing would be to use a Boost converter
Correct
but from what i understand, an MPPT changes the duty cycle of the dc-dc converter according to de current and voltage of the panel, so it couldn't produce a stable output voltage to charge the battery
To charge a battery you don't need a voltage source, you need a voltage-limited current source. Current should be set to the battery's specified charging current. Max voltage to the final charging voltage. This gives you a nice CC-CV characteristic.
is this a bad idea?, why?
Yes, too complicated, inefficient, expensive. Why use two DC-DCs when you need one?
what would be a better solution?
Use one boost DC-DC acting as a current source, controlling output current. Look at boost LED drivers for inspiration. Or you can use a boost current sink, controlling input current.
Pick a FET and inductor that will not smoke if the FET is ON continuously and shorts the solar panel. Also use the minimum input capacitance, so it does not store enough energy to explode the FET if it is continuously ON and shorts the cap. This will make debugging cheaper.
In this boost converter, output voltage is fixed: it is the battery voltage. The converter can't change that, so first thing you have to do is forget that the duty cycle acts on the output voltage. Here duty cycle controls current, not voltage.
Higher duty cycle (FET ON longer) increases input current. Lower duty cycle decreases input current. If output voltage is kept constant by the battery, this translates to output current.
So it's quite simple.
Measure output voltage to determine if battery is charged or still needs charging. If it is charged, set PWM to zero and do nothing. If it needs charging, you can be subtle and calculate the charging current required depending on its state of charge, using a lower current when it is almost full... or you can be not subtle and set current to maximum then stop when output voltage reaches the "charged" target. In both cases, you have a "desired output current" setpoint. Do a bit of math to translate this into a "desired input current" setpoint.
Continuously measure input current. Adjust PWM until the desired input current is reached.
Continuously measure input voltage. Multiply with current, you get power.
Wiggle the PWM value around its set point while measuring input power. Adjust PWM in the direction that increases power, while not going over the input current set point, because that would exceed the desired battery charging current.
And... repeat.
Personally I'd use a hardware comparator to stop the PWM immediately if the output voltage goes over a certain limit (because the battery disconnected) and also perhaps if the FET current goes over a limit (but that entails measuring the FET current, which means a resistor which will reduce efficiency). This will make debugging cheaper.
-
\$\begingroup\$ Damn, didn't realize the voltage would be constant because of the battery, (face palm). So all the energy collected from the panel would be converted in current. The thing is, this application is for en electric vehicle and we want to squeeze every bit off solar energy (the battery will be discharging at the same time and will have it's BMS system). If we used a boost with MPPT (PO algorithm), all the energy collected would go to the battery or would there be a moment where we should just turn off the converter (apart from a fully charged battery)? \$\endgroup\$ Commented May 20, 2020 at 23:30
-
\$\begingroup\$ Your battery should spec its max voltage and max charging current, so you shouldn't exceed this. If it's a LiIon battery there is no memory effect so small charge-discharge cycles due to motor turning on/off while the solar panel charges it are absolutely okay. \$\endgroup\$– bobfluxCommented May 21, 2020 at 12:47
-
\$\begingroup\$ If the BMS disconnects from the charger when final voltage is reached, then make sure your boost detects output overvoltage and stops when this occurs. Otherwise, if it keeps pumping current, output voltage will keep rising until something becomes a fuse, probably the MOSFET. \$\endgroup\$– bobfluxCommented May 21, 2020 at 12:49