How to control when RPI camera IR Leds are powered

November 13, 2023, 20:01

.wiltshire

I've just setup this night vision camera with my RPI https://thepihut.com/products/raspberry-pi-night-vision-camera But I have an issue that whenever the raspberry PI is powered, so are the LEDs, this leads to them heating up when the camera is not actually in use (the PI is used for a home hub as well as camera) While this heat may not matter much, I would feel better if I could control them, and only have them on when I want to use the camera. Is there any software method for disabling power to the camera until I need to use it? Or any other software method around this? If no, what would be the simplest hardware method for limiting camera to the power when I'm not using it? (I'm much better at software than hardware) Thanks!

k9t33n

I don't know of any method to do this via software but it'd be a good idea to put a heatsink on them

k9t33n

especially because this would help when you are using them

.wiltshire

Yeah heatsinks are definitely a good idea

k9t33n

yeah

k9t33n

but apart from that I don't know about the software side

oops.se

As I understand it, there is a 2 x LDR that control the IR output. If it is bright = Low IR and in the dark the opposite. So a MacGywer solution would be a 2 x LEDs controlled by a GPIO that lights the LDRs to fool the circuit or to break the LDRs circuit and add a voltage controlled resistor.