I am trying to make a circuit that charges a medium size lithium 12V battery (4500mAh) it draws power from a car's battery/alternator. When my car turns on I have a simple circuit that closes the normally open connection between the Vin of the charging circuit and the car’s voltage supply line after some delay.
Once connected to the car’s voltage line the charging circuit needs to charge the auxillary battery to 12.6V and not allow a current flow greater than 300mA. I took these specs from the battery manufacturer, I attached what I could dig up below. I decided to use the LM317 linear voltage regulator, an adjustable voltage regulator, to supply voltage to my battery.
But I am realizing that I can’t linearly scale the car’s voltage rail because it varies from say 13-14V and if I am targeting 12.6V on the Vout unless I dynamically adjust the variable resistor, I cannot maintain 12.6V on the outlet. I do understand that there are such things as fixed linear voltage regulators but here too lies a problem, finding one that is fixed to 12.6V is not so easy although finding one that is fixed to 12V is…
Another option is to regulate the input voltage to a higher value say 24V, before feeding it to the LM317 but I am not sure if this is a good idea either.
edit I was searching through some LDO regulators and it appears not all regulators float their Vout according to their Vin for example I have seen several that in ADM7170 the outlet voltage appears to be independent of inlet voltage (in a predefined range) and for the configuration below voltage out of the regulator can be found using the equation below... Is it untrue what I posted above that adjustable regulators outlet voltages vary with inlet voltage?