How to Charge a Battery from Solar Panels
Unless the solar panel is tiny, it is strongly advised to utilize a solar charge controller when connecting a solar panel directly to a battery. Generally speaking, a 5-watt solar panel can be directly attached to the battery terminal, but anything more significant requires a solar regulator to prevent the battery from being overcharged.