Hi,
my application is I want to use two 12V battery, with my circuit. In which when one battery is working than another must be charging and vice versa. So if my battery b1 is discharged to 11V from 12V than battery b2 must be connected to my circuit and battery b1 should be connected in charging and vice-versa. for this application i design voltage divider circuit that divides voltage linearly to 5v. this is given to pic18f4550. pic will convert this analog to digital and when change is more than 1 volt, it high the particular pin. Now, the program is completed and i want to connect relay at output of pic. So which relay and relay driver circuit should i use? any other simple logic for my application???