Hello i am new here and student on electronics, i want to make a battery charger for solar panels, my question is, how do i make the circuit to know the right voltage (12,9-11,4 v) for the battery without using a microcontroller? since the voltage and current are always changing, is there a way to use resistors wich are always constant to "program" a voltage setting?