2017-11-13, 10:17 PM
You got me thinking about this. So, after a quick rummage in my junk box I came up with a little single-16850 power pack for a cell phone or whatever. I think I got it at a raffle or something. Simple device - just a micro-usb for input power and a standard USB for output. It probably has the same or similar circuitry inside as the guy used in the YouTube video that PaddyB posted. I think you can find these things at a corner store, but very cheap on Amazon (eg. https://www.amazon.com/Anker-PowerCore-L...B005X1Y7I2)
Sooo, how about this:
- Power that I was using for the PI goes into the charge port on the power pack
- Power out to the PI from the power pack to the PI
- Some sort of sensor (it would need to be through a voltage divider) from main power input to a GPIO to sense loss of main power. This lead going down would tell the PI to initiate a shutdown script. You could also wire that same GPIO to a pushbutton or switch for a shutdown. In my case I use a 12v-5v buck converter, so I'd sense the 12V, but it doesn't really matter.
I guess the only thing I would be concerned about would be current capacity of my little power pack. What do you guys think?
Sooo, how about this:
- Power that I was using for the PI goes into the charge port on the power pack
- Power out to the PI from the power pack to the PI
- Some sort of sensor (it would need to be through a voltage divider) from main power input to a GPIO to sense loss of main power. This lead going down would tell the PI to initiate a shutdown script. You could also wire that same GPIO to a pushbutton or switch for a shutdown. In my case I use a 12v-5v buck converter, so I'd sense the 12V, but it doesn't really matter.
I guess the only thing I would be concerned about would be current capacity of my little power pack. What do you guys think?