I am wondering if this will work.
Ok, I have a Pi with a two position DPDT switch for power. One half of the switch controls the 5v+ to the Pi and the other one controls a signal voltage to the Pi to start a shutdown script so when I flip the switch it from one position to the other it will turn the power off and start the shutdown script. Then I take a transistor and connect the collector to the 5v+ power source side of switch, the emmiter to the Pi's 5v power in, and the base to either the Pi's usb 5v+ or a GPIO 3.3 or 5 v out pin.
Don't mind my drawing it was just a quick sketch to try a so what I was thinking quickly without me starting up CAD.
1. Will this work what I am thinking?
2. How much power would the transistor draw when the switch and Pi are off?
Thanks,
Fishinfiend
Ok, I have a Pi with a two position DPDT switch for power. One half of the switch controls the 5v+ to the Pi and the other one controls a signal voltage to the Pi to start a shutdown script so when I flip the switch it from one position to the other it will turn the power off and start the shutdown script. Then I take a transistor and connect the collector to the 5v+ power source side of switch, the emmiter to the Pi's 5v power in, and the base to either the Pi's usb 5v+ or a GPIO 3.3 or 5 v out pin.
Don't mind my drawing it was just a quick sketch to try a so what I was thinking quickly without me starting up CAD.
1. Will this work what I am thinking?
2. How much power would the transistor draw when the switch and Pi are off?
Thanks,
Fishinfiend
