I am trying to power (not at the same time) a pir sensor, and a relay board, via pico's gpio pins. The project is a camera that is turned on when the sensor is triggered. I am using the relay board to power a pi zero w with a camera. Because pico only has one 3.3 v pin, I'm trying to use regular pins. So my program will turn on the power the PIR sensor, and when motion is sensed, turn off power to the PIR, and power the relay board (3.3v). It seems to work, until the relay board part, and I can see the light going on, but not enough power is supplied to switch the circuit. I'm using a battery pack to power the pi, so I just need the pico to switch power on. Should this be possible?
I finally gave up and set my pi zero to the normally open state, and pir to normally closed, and connected the external power source to the pir, and it works fine. But, I'd like to get it working through the pins, or at least know if it's possible.