I am completely new to electronics, I have a software background. I am planning to build a motorbike GPS tracker with Particle Electron and also a remote kill-switch. I would like to use motorbike’s battery to power the particle board when engine is running and charge its LiPo battery. When engine is not running particle will be powered by LiPo battery. Vehicle battery in this case would be 12V DC. Can I connect particle directly with the battery?
My second question is how can I put together a kill-switch wiring one of particle’s digital output pins to the ignition of the bike. What sort of circuit I will need?
I have been doing a lot of reading online about using relays to connect particle with motorbike’s electrical wiring etc. but I couldn’t find any concrete examples of my particular case. Can somebody suggest circuit diagrams or figures to illustrate how I can set this all up?