Connector for solar panel to charge battery