Hi, everyone I have built the solar charger using a microcontroler and a DC DC converter (PWM). I have used a MPPT (Max power point tracking) charging algorithm, and it works just fine.
Next thing I did is add a functionality for turning on and off the consumer, for example if the battery voltage drops below certain level (11.3V)I turn off the consumer and if the battery is charged to some level (11.5) I turn the consumer on. But I have found a problem with this simple algorithm because battery voltage rises quickly without charging when the consumer is off, and falls down when the consumer is on so I have oscilations (turning on and off the consumer).
Now my question will be how can I figure out when is safe to turn on the consumer?
I have the information about solar panel current and voltage, battery voltage and consumer's current.
Thank you in advance.
Regards,
Nenad
Next thing I did is add a functionality for turning on and off the consumer, for example if the battery voltage drops below certain level (11.3V)I turn off the consumer and if the battery is charged to some level (11.5) I turn the consumer on. But I have found a problem with this simple algorithm because battery voltage rises quickly without charging when the consumer is off, and falls down when the consumer is on so I have oscilations (turning on and off the consumer).
Now my question will be how can I figure out when is safe to turn on the consumer?
I have the information about solar panel current and voltage, battery voltage and consumer's current.
Thank you in advance.
Regards,
Nenad