In this video, I made an Arduino based PWM Solar Charge Controller suitable for Lead Acid Battery of 6V /12V auto-detect. The charger is also equipped with an automatic dusk-dawn load controller. USB charging is provided for charging smartphones.
The full project documentation is available on my Instructables page, the link is given below: https://bit.ly/3bw3TG8