Purpose of using diode with solar panel

Almost all voltage regulators do have a path backwards from output back into its input because they are not designed to handle blocking reverse current. So your battery would drain back into the solar panel when there is insufficient light falling on the panel.

For example, here's the internal circuit of an LM338 in your first schematic:

enter image description here

(From here)

While there is a path from the output of the regulator back into the input through diodes D2 and D3, it is through high value resistors. Your biggest problem is that you'll be feeding battery voltage back through R22 160 Ohms into the base of Q26 into its collector and out to your solar panel without the blocking diode. And there are other paths like that through other parts of that circuit.

So besides reversed panel connections like @analogsystemsrf pointed out, it prevents your battery from discharging back through your regulator back into your solar panel.

However, in your second circuit, the diode is redundant because the battery already has a series diode. But the diode at the solar panel can serve to prevent damage from reverse connections.


The Diode is used to prevent backfeed into the cell from the battery. While daytime, the solar cell generates a voltage higher than the battery voltage, therefore current is flowing into the battery. When the cell is covered or it's nighttime, the voltage across the cell is 0V, so the battery, with it's higher voltage, would try to feed current into the cell, therefore draining and possibly damaging the cell. The diode blocks current in this direction, so the battery cannot discharge into the cell.


To protect against REVERSED panel connections.

And, as other answers state, to allow failed panels (or shaded panels) to automatically "disconnect" from the total current output.