One Arducam IMX219 NOIR camera module IR filter failed; threshold/delay config on Pi 5?

Hi, I’m running a couple of Arducam IMX219 LS-1820 NOIR IR-CUT modules on a Raspberry Pi 5 with libcamera (config pi5_imx219_100d). One of the modules stopped working because the IR-CUT mechanism failed, so I’m testing the remaining one. The IR filter switching seems very sensitive to nearby metal objects. From what I can measure, the photoresistor threshold for switching is fixed at about 0.5 V. Is there any way to adjust that via a config file? I’d want hysteresis, e.g. disable the IR filter below 0.4 V and only enable again above 0.7 V, or at least a configurable delay between switching events. I’m also trying to figure out how to control the IR filter / get its status, and how manual focus works on this module.

Thanks for the details. Can you confirm the exact module revision and the platform/setup? If you have any logs or the libcamera commands you’ve tried, please share those too.

Sure, it’s the Arducam Sony IMX219 LS-1820 NOIR IR-CUT. Platform is a Raspberry Pi 5 running libcamera, and I’ve been using the pi5_imx219_100d config. I don’t have code or logs saved — I just tried a few libcamera commands and watched the behavior. The ~0.5 V threshold I mentioned was measured with a multimeter on the photoresistor while the filter flipped.

For IR-CUT control, there were scripts for the Pi 4 and earlier models, but I’m not aware of equivalent functionality implemented for the Pi 5 yet. The Pi 4 instructions are here: Quick start - Arducam Wiki. As for focus, this camera uses manual focus — you adjust it by screwing the lens in or out until the image is sharp.

I saw that page, but it only covers the Pi 4 path. Do those scripts work on Pi 5, or is there a libcamera control I’m missing? The main problem is still the switching threshold. I can reproduce it: the IR-CUT changes state right around 0.5 V from the photoresistor. I’d like to set hysteresis (disable below 0.4 V, enable only above 0.7 V) or at least a minimum delay between switches so it doesn’t chatter near metal objects. Is there a config parameter for that?

Checking on our side: the IR filter switching threshold is fixed and not user-configurable on this module. There’s no configuration option for hysteresis or for a required delay between switching events. The Pi 4 control scripts don’t map cleanly to Pi 5 because the underlying control path hasn’t been implemented there yet. I’ll pass the threshold/hysteresis/delay request to the development team for consideration in a future update.

Thanks, that’s what I suspected. So for now there’s nothing I can tweak in pi5_imx219_100d or elsewhere to change when it flips? And just to confirm on manual focus: it’s purely turning the lens until the image is sharp, no autofocus controls exposed in libcamera?

Correct — no configurable threshold, hysteresis, or delay is available at this time. The IR-CUT switches at the fixed photoresistor level you measured (~0.5 V). IR filter control scripts existed for Pi 4 and earlier, but the Pi 5 equivalent has not been implemented yet. For manual focus, yes: turn the lens in or out until focus is achieved; there’s no autofocus on this module. I’ve noted the threshold/hysteresis/delay request for the dev team.