So I am new to the Raspberry Pi world. Im called Hilly from the UK and a hello to the forum and community.
A bit of background I work as a Mechanical design/manufacture engineer for a Robotics company. Its a fun job and Id love to start learning programming and electronics. So far I have been able to flash some lights on a Mbed.. control some basic IO and "attempted" trouble shooting on one of my projects...intrigued by electronics and software I decided to buy a raspberry PI.
I have a few projects I am wanting to do however I am starting with a carputer.
The plan is like all other carputer folk to have all the gizmos you'd need...Sat nav, music, diagnostics, engine readouts, cameras etc..... I have a Pi2 at present and it setup running Raspbian in which I have enabled a satnav style GUI for the PI which it auto loads into (or alternatively load into Raspbian when needed). I am slowly working on this project in stages and worrying about one problem at a time for the features I wish to have.
I have had a read around and whilst I wait for for my touch screen and GPS hat to come I have a questions relating to charging the unit from a cigarette lighter in car.
From what I have read a cigarette lighter will provide a 12V output. Although if you use a USB cable to the unit will this step it down to the correct voltage? I plan to power the unit from a battery pack which allows through charging and output simultaneously. The lighter will charge the batterypack whilst this runs the PI.
For the Pi to shutoff automatically when the ignition is off I plan to monitor the cigarette lighter to USB adapter (2 ports). Using the GPIO pins to detect the current/voltage of the spare USB port on the adapter. Once this looses voltage I will have a script which tells the PI to shutdown. Can I just strip a USB cable and mount it to the pins or will this be at a voltage/current too high and damage the unit? I have read some you may need to use resistors to step down the current. However if USB cables only carry a 5V load then I cant see how this would be unsafe?
If you could help that would be great!
If this is a stupid question... excuse mechanic in the corner!!
Thanks!