I am wanting to make use of a large solar panel I have. My goal is to make a simple circuit using an LM317 to charge my truck battery. I would also like to have an additional circuit with a usb port to charge mobile devices while camping. Question 1..... will a 4001 diode work to prevent reverse flow and protect the solar panel? Question 2.....how do I get it to stop charging when truck battery is full?