Hi.
I am doing a remote control nightvision camera rover and everything has been fine until I have found my self in a problem that might be very stupid but I have been stuck with it for 2 days.
I want a circuit that detects if a GPIO pin is on the battery powers the LEDS so they turn on.
The circuit I have been trying(with a bunch of variations) is this:
GPIO connected to 2N2222 NPN transistor so it can activate the flow of current.
Positive side of 10000 mAh battery (with an output of 5 volts and 1 Ampere) connected to the collector of the transistor.
Emitter of the transistor connected to the positive side of an array of 21 IR LEDS connected int three parallel rows each of one with 7 LEDS.
And the negative side of the LEDS connected to GROUND, (The battery's ground and the Raspberry Pi 3's ground).
Can´t figure out whats wrong.
Thanks for any help.
Miguel.
I am doing a remote control nightvision camera rover and everything has been fine until I have found my self in a problem that might be very stupid but I have been stuck with it for 2 days.
I want a circuit that detects if a GPIO pin is on the battery powers the LEDS so they turn on.
The circuit I have been trying(with a bunch of variations) is this:
GPIO connected to 2N2222 NPN transistor so it can activate the flow of current.
Positive side of 10000 mAh battery (with an output of 5 volts and 1 Ampere) connected to the collector of the transistor.
Emitter of the transistor connected to the positive side of an array of 21 IR LEDS connected int three parallel rows each of one with 7 LEDS.
And the negative side of the LEDS connected to GROUND, (The battery's ground and the Raspberry Pi 3's ground).
Can´t figure out whats wrong.
Thanks for any help.
Miguel.