you do not power a GPS module from an output pin
Maybe I'm misunderstanding the OP, but it seems to me that sometimes it makes sense to power a GPS (or any other device) via software control. Depending upon your requirements, doing something like that for a GPS could significantly reduce the power usage for a device.
And wouldn't you do that via an output pin?
I'd like to do the same thing for a board I'm working on. I only need GPS data once a minute (at best) and would rather keep power usage as low as possible. So as a generic solution, please take a look at the attached image. I exported this from a board I'm working on.
The GPS connected to JP2 is 5v tolerant and has the following pinout:
1- N/C (this is GPS RX)
2- GPS TX
3- Ground
4- VCC (2.8-5.5v)
5- VBAT 1.8-5.5v)
Assuming a fairly low power requirements (my GPS uses a peak of 50mA tracking in the default mode) is this a reasonable solution for myself as well as the OP?
Regards,
Brad.
KF7FER
EDIT: Cleanup and I did want to mention I plan on splitting off VBAT and powering it via a coin-cell to allow warm-starts for the GPS