Sunfit solar controller for lithium battery