# Turn off leds on night vision camera?

**URL:** https://forums.pimoroni.com/t/turn-off-leds-on-night-vision-camera/10450
**Category:** Support
**Created:** [April 25, 2019, 11:24am UTC](https://forums.pimoroni.com/t/turn-off-leds-on-night-vision-camera/10450 "2019-04-25T11:24:46Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![pootle42](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@pootle42](https://forums.pimoroni.com/u/pootle42)
#### Post date: [April 25, 2019, 11:24am UTC](https://forums.pimoroni.com/t/turn-off-leds-on-night-vision-camera/10450/1 "2019-04-25T11:24:46Z")

</div>

Is there any way to turn off the IR LEDs on the Night vision camera module for Raspberry Pi?

It seems the LEDs turn on in the dark even if the camera is turned off. As I’m running from battery and using a PIR detector, I need to minimise power consumption.

---

<div class="post-metadata">

### Author: ![monglet](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/monglet/32/1113_2.png) [@monglet](https://forums.pimoroni.com/u/monglet)
#### Post date: [April 25, 2019, 1:00pm UTC](https://forums.pimoroni.com/t/turn-off-leds-on-night-vision-camera/10450/2 "2019-04-25T13:00:12Z")

</div>

The IR modules (presuming you’re talking about this type: [https://shop.pimoroni.com/products/night-vision-camera-module-for-raspberry-pi?variant=12516582817875](https://shop.pimoroni.com/products/night-vision-camera-module-for-raspberry-pi?variant=12516582817875)) have a small potentiometer which allows adjustment to the point the nearby LDR turns off the illuminator.

 ![NoIR_camera_with_IR_LED_2_of_3_1024x1024](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/e/ed57bef8a0d7f333696d183e7482a97739417e66.jpeg)

---

<div class="post-metadata">

### Author: ![normlane](https://avatars.discourse-cdn.com/v4/letter/n/c6cbf5/32.png) [@normlane](https://forums.pimoroni.com/u/normlane)
#### Post date: [May 2, 2019, 6:35am UTC](https://forums.pimoroni.com/t/turn-off-leds-on-night-vision-camera/10450/3 "2019-05-02T06:35:16Z")

</div>

unfortunately one side doesn’t work on mine. Even so it’s no good for battery operation as the lights would be on all night. Better would be just a couple of traces that we could solder onto and take actual control. Wouldn’t cost a thing just a little mod to the board.

---

<div class="post-metadata">

### Author: ![hyntleman](https://avatars.discourse-cdn.com/v4/letter/h/b2d939/32.png) [@hyntleman](https://forums.pimoroni.com/u/hyntleman)
#### Post date: [June 17, 2019, 12:17pm UTC](https://forums.pimoroni.com/t/turn-off-leds-on-night-vision-camera/10450/4 "2019-06-17T12:17:53Z")

</div>

I too would love to be able to turn these IR illuminating lights on and off via software. I am using them on a Pi Zero W setup powered by a car battery. If they use 1Watt (each?) when I only want them on for a few seconds at a time (when I take a photo), they will hoover up battery power.

Is there any way to turn them on and off with my Python script please?  
Thanks.

---

<div class="post-metadata">

### Author: ![monglet](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/monglet/32/1113_2.png) [@monglet](https://forums.pimoroni.com/u/monglet)
#### Post date: [June 17, 2019, 3:09pm UTC](https://forums.pimoroni.com/t/turn-off-leds-on-night-vision-camera/10450/5 "2019-06-17T15:09:08Z")

</div>

> **[How To Disable The Red LED On The Pi Camera Module - Raspberry Pi Spy](https://www.raspberrypi-spy.co.uk/2013/05/how-to-disable-the-red-led-on-the-pi-camera-module/)**
>
> Raspberry Pi tutorials and guides to help you learn and build awesome projects. Sensors, displays, screens, motors, servos, lights, LEDs and more!

Have a look here. Refers to various GPIO pins in the camera connector that can be controlled.

---

<div class="post-metadata">

### Author: ![hyntleman](https://avatars.discourse-cdn.com/v4/letter/h/b2d939/32.png) [@hyntleman](https://forums.pimoroni.com/u/hyntleman)
#### Post date: [June 17, 2019, 3:37pm UTC](https://forums.pimoroni.com/t/turn-off-leds-on-night-vision-camera/10450/6 "2019-06-17T15:37:35Z")

</div>

Thanks. I’ve taken a look.

Firstly that is a different camera. Mine is the CAM009. I don’t know if that makes a difference, but I am trying to turn of the IR LEDs that provide illumination in the dark, not a small LED that is telling you if the board is powered.

Secondly, I am hoping to plug this camera in to a Pi that has many switches and motors controlled via GPIO pins. Do these cameras use the same GPIO numbering and will it therefore not work if I am using GPIOZero to turn on and off pins and measure voltages when they are inputs?

Fingers tightly crossed…

---

<div class="post-metadata">

### Author: ![monglet](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/monglet/32/1113_2.png) [@monglet](https://forums.pimoroni.com/u/monglet)
#### Post date: [June 17, 2019, 3:40pm UTC](https://forums.pimoroni.com/t/turn-off-leds-on-night-vision-camera/10450/7 "2019-06-17T15:40:38Z")

</div>

From the cameras I’ve used, all the different ones tend to rely on the same pin to control either the red status LED or the IR LEDs. I think this is true of the CAM009 module too as they have to conform to a common pinout standard for the CSI cable.

---

<div class="post-metadata">

### Author: ![monglet](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/monglet/32/1113_2.png) [@monglet](https://forums.pimoroni.com/u/monglet)
#### Post date: [June 17, 2019, 3:42pm UTC](https://forums.pimoroni.com/t/turn-off-leds-on-night-vision-camera/10450/8 "2019-06-17T15:42:53Z")

</div>

As an aside, in terms of controllable camera illumination, the venerable LISIPAROI module by cyntech ([https://shop.cyntech.co.uk/products/lisiparoi-led-light-ring-for-raspberry-pi-camera](https://shop.cyntech.co.uk/products/lisiparoi-led-light-ring-for-raspberry-pi-camera)) or the Bright Pi by Pi-Supply ([https://uk.pi-supply.com/products/bright-pi-bright-white-ir-camera-light-raspberry-pi](https://uk.pi-supply.com/products/bright-pi-bright-white-ir-camera-light-raspberry-pi)) offer a bit more customisable control.

---

<div class="post-metadata">

### Author: ![pnbv](https://avatars.discourse-cdn.com/v4/letter/p/ba9def/32.png) [@pnbv](https://forums.pimoroni.com/u/pnbv)
#### Post date: [February 17, 2020, 10:21am UTC](https://forums.pimoroni.com/t/turn-off-leds-on-night-vision-camera/10450/9 "2020-02-17T10:21:33Z")

</div>

Hi,  
I think this is a really good question regarding these camera modules. Even when video is involved instead of still images, it would be a very useful feature to have, to be able to control IR lighting programmatically. A initial search for customisation of this particular camera module doesn’t turn out much.

So, is there anyone with experience in basic electronics that could point us in the direction of replacing these LDRs with a mosfet?

---

<div class="post-metadata">

### Author: ![pnbv](https://avatars.discourse-cdn.com/v4/letter/p/ba9def/32.png) [@pnbv](https://forums.pimoroni.com/u/pnbv)
#### Post date: [February 21, 2020, 11:02am UTC](https://forums.pimoroni.com/t/turn-off-leds-on-night-vision-camera/10450/10 "2020-02-21T11:02:47Z")

</div>

Of course the simpler solution would be to just add a black shrink tube over the LDR with a LED against it (or some hot glue), and just control this added led from the GPIO.

---

<div class="post-metadata">

### Author: ![Digitaldaz](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Digitaldaz](https://forums.pimoroni.com/u/Digitaldaz)
#### Post date: [August 7, 2021, 7:34am UTC](https://forums.pimoroni.com/t/turn-off-leds-on-night-vision-camera/10450/11 "2021-08-07T07:34:07Z")

</div>

I’m actually going to try to disable this today.

What I figure is that the 3.3v is supplied to the IR light from the camera mount where the two touch each other, ie the copper contact by the photoresistor is 3.3v.

If I put a nylon spacer between the photo module and the IR light and use a nylon screw, that should isolate it.

I can then take that 3.3v, feed it through a relay and back to the IR light.

Hopefully this should cure my problem and allow the PIR I already have working, to control the relay.

---

<div class="post-metadata">

### Author: ![Digitaldaz](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Digitaldaz](https://forums.pimoroni.com/u/Digitaldaz)
#### Post date: [August 7, 2021, 1:46pm UTC](https://forums.pimoroni.com/t/turn-off-leds-on-night-vision-camera/10450/12 "2021-08-07T13:46:17Z")

</div>

Just an update to this, I was lucky enough to have a certain type of IR, on the back of the IR is a small semi circular soldering pad marked ‘EN’ solder a wire to this and you can switch on and off by GPIO.

I do have another type of IR lamp that does not have these pads but now I will be looking for replacements that DO have them.

---

<div class="post-metadata">

### Author: ![informed](https://avatars.discourse-cdn.com/v4/letter/i/a8b319/32.png) [@informed](https://forums.pimoroni.com/u/informed)
#### Post date: [May 4, 2024, 3:46pm UTC](https://forums.pimoroni.com/t/turn-off-leds-on-night-vision-camera/10450/13 "2024-05-04T15:46:55Z")

</div>

Hi, spent ages looking how to do this. This worked a dream. You are an A1 Star!

THANK YOU!!!
