How to check if Night Mode is active on OV5647 with Motorized IR-CUT Filter

I have a B003503 with has the OV5647 on a UC-439 PCB and two IR LEDS on UC-213 PCBs.

I’ve been able to use the picamera library and take stills and videos. I would like to know before I trigger the camera if it is in night mode (filter off, LEDs on).

I’ve been looking at the PiCamera object and LED is not hookedup. I didn’t see any other properties which seemed appropriately.

>>> import picamera
>>> cam = picamera.PiCamera()
>>> cam.led
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
AttributeError: unreadable attribute

Is this exposed someplace else? Maybe on another pin?



At present, the IR cut is controlled automatically. We use a photosensitive electron to sense the external environment to control IRcut. The default state of the infrared filter depends on the external environment.