How to protect the battery of solar panels