Hello everyone. I would like to make this circuit but I want to have two power sources to charge the battery. One is the solar power and another one is AC main. The solar power will charge the battery if the PV voltage is above 18V. If the PV voltage is below than 18V (rain, night, cloudy), the AC main will charge the battery. Anyone can help me with the circuit and Arduino programming? Thank you very much.