I am working on a low power application, where I want my sensor to be turned ON only for a certain period of time, so that it should not consume power when not in use (rather when the ble in in sleep mode). So, I thought if I could provide supply to the sensor through GPIO Pin itself. The sensor would consume around 500uA of current. I thought of using a transistor first, then ended up concluding that it would need more power.
Please let me know, is it possible to draw that much current through the GPIO pins?
Is there any other solution to this problem?