This is a similar question to How to turn off the CSI, and turn it back on again, but I'm actually trying to implement the suggestions that were given in that post.
I use the WaveShare RPi IR-CUT Camera which comes with two Infrared LED Boards (B).
The LED Boards are directly powered by the camera and there is no way to turn them off. Despite installing heatsinks, the boards/heatsinks get so hot that you cannot touch them anymore.
I'm really new to electronics stuff (I've been using Pis for a few years but only for coding) but I tried to build a circuit according to the following schematic, using a transistor switch with the base connected to a GPIO pin.
simulate this circuit – Schematic created using CircuitLab
I tried to use a BC517 transistor because of the high gain and high current. I tried various base resistors between 22k and 1k ohm. However, the LED never turned on after setting the GPIO pin to high.
Any suggestions? Like I said I'm really new to electronics, so even some tips on how to actually figure out what kind of base resistor I need would be really helpful. From what I've read online it depends on the "load resistance". There are no data sheets available for the IR boards, even the WaveShare support could not provide them. All I know is that the LEDs are 3W and that the camera outputs 3.3V. With that limited knowledge I then tried to calculate/measure the load resistance, but my results suggested using a 22k resistor which did not work.