I've set up an arducam mini 2MP plus with a nrf52DK (similar to an arduino for this set up) to take pictures.
Ive got the board and camera working when the camera is wired with the VCC line and GND wired directly into the boards 3.3v line and ground pins. The arducam uses about 100 mAmps when its being used or not. Low power mode can run at 20 mAmps. I'm trying to run this on a couple AA batteries so I need really low consumption. Ive been able to modify the code as needed so I can cut the power completely for essentially 0 current and reconnect manually and the camera functions normally. Now I'm trying to control the power to the arducam programmatically with a GPIO pin into a transistor. When I run the the power through the transistor the arducam doesn't work. The only thing I changed is the VCC and GND lines so I assume the arducam isn't getting enough voltage or current. Ive tried to set up the power line about every conceivable way.
Here is the set up and the requirements Board VCC = 3.3 volts max current ~ 150 mAmps GPIO = 3.3 volts current ~15 mAmps
arducam voltage rage: 3.3volts - 5volts 100mAmps voltage on line with arducam 3v (.3volt drop) transistor: PN2222
I would prefer to put the transistor between the power source the load rather than between the load and the ground. The voltage and current in that case are real bad though but when I open the ground from the arducam the arducam still draws about 8mAmps current not sure why or how. I think I need to switch the transistor from PNP to an NPN for that to work. (If I understand those correctly the current flows from E to C when no current on the base. Does this cause a high power draw when off since the GPIO is pulled high in order to stop current flow?)
Here are some of the scenarios and the resulting readings when the GPIO is supplying current
transistor between power and load
3.3v
\/
C
B __|
|
E
\/
2.4v - 50 mAmp 1K 40 mAmp
Load
3.3v
\/
E
B __|
|
C
\/
2.2v - 20 mAmp 1K 11 mAmp
Load
here is the circuit drawing to the best of my ability. I wasnt sure how to represent the load in the tool I was using so I just put it as a resistor.

Ive tried with a 1K resistor between the GPIO and the transistor the voltage is the same. The current does drop a little in that case.
transistor between load and ground
3.3v
Load
\/
C
B __|
|
E
\/
~3v ~90 mAmps
ground
3.3v
Load
\/
E
B __|
|
C
\/
~3v ~90 mAmps
ground
circuit drawing again. only 1 but I tested the transistor in both directions as you can see above

everything is the same with 1k resistor between GPIO and transistor base I assume the 3v reading is a result of the voltage drop caused by the arducam and the reason the camera inst running is the lower current pull. Best I can tell the emmiter/collector direction doesnt really matter.
Any suggestions on what I can do to get the camera working when GPIO is on and pull the lowest power draw when off?
Thanks for your help!
Ive got the board and camera working when the camera is wired with the VCC line and GND wired directly into the boards 3.3v line and ground pins. The arducam uses about 100 mAmps when its being used or not. Low power mode can run at 20 mAmps. I'm trying to run this on a couple AA batteries so I need really low consumption. Ive been able to modify the code as needed so I can cut the power completely for essentially 0 current and reconnect manually and the camera functions normally. Now I'm trying to control the power to the arducam programmatically with a GPIO pin into a transistor. When I run the the power through the transistor the arducam doesn't work. The only thing I changed is the VCC and GND lines so I assume the arducam isn't getting enough voltage or current. Ive tried to set up the power line about every conceivable way.
Here is the set up and the requirements Board VCC = 3.3 volts max current ~ 150 mAmps GPIO = 3.3 volts current ~15 mAmps
arducam voltage rage: 3.3volts - 5volts 100mAmps voltage on line with arducam 3v (.3volt drop) transistor: PN2222
I would prefer to put the transistor between the power source the load rather than between the load and the ground. The voltage and current in that case are real bad though but when I open the ground from the arducam the arducam still draws about 8mAmps current not sure why or how. I think I need to switch the transistor from PNP to an NPN for that to work. (If I understand those correctly the current flows from E to C when no current on the base. Does this cause a high power draw when off since the GPIO is pulled high in order to stop current flow?)
Here are some of the scenarios and the resulting readings when the GPIO is supplying current
transistor between power and load
3.3v
\/
C
B __|
|
E
\/
2.4v - 50 mAmp 1K 40 mAmp
Load
3.3v
\/
E
B __|
|
C
\/
2.2v - 20 mAmp 1K 11 mAmp
Load
here is the circuit drawing to the best of my ability. I wasnt sure how to represent the load in the tool I was using so I just put it as a resistor.

Ive tried with a 1K resistor between the GPIO and the transistor the voltage is the same. The current does drop a little in that case.
transistor between load and ground
3.3v
Load
\/
C
B __|
|
E
\/
~3v ~90 mAmps
ground
3.3v
Load
\/
E
B __|
|
C
\/
~3v ~90 mAmps
ground
circuit drawing again. only 1 but I tested the transistor in both directions as you can see above

everything is the same with 1k resistor between GPIO and transistor base I assume the 3v reading is a result of the voltage drop caused by the arducam and the reason the camera inst running is the lower current pull. Best I can tell the emmiter/collector direction doesnt really matter.
Any suggestions on what I can do to get the camera working when GPIO is on and pull the lowest power draw when off?
Thanks for your help!