To do it, I'd recommend buying a 12V laptop adapter (with the cigarette lighter plug at the end). As well as a laptop adapter, you will also have a way to protect the power supply from dirt (power supplies in cars tend to be dirty). Next, connect the battery to a cigarette lighter socket.