Hey everyone. I’m running a Raspberry Pi 5 with an Arducam Sony IMX219 LS-1820 NOIR IR-CUT (8 MP, CS mount), using libcamera and the pi5_imx219_100d config. I’ve got two of these modules — one of them just died on me, the IR filter mechanism completely failed. The other one still works, but I’ve noticed the IR filter control seems really sensitive to metal objects nearby. I measured the photoresistor and it looks like the switching threshold is around 0.5 V. Is that expected behaviour?
Thanks for the details. Just to confirm the environment: Raspberry Pi 5 + libcamera, config file pi5_imx219_100d, correct? When you say it’s sensitive to metal objects, what exactly happens — does the filter flip back and forth, or stay stuck in one position? And what behaviour are you trying to get?
It flips unexpectedly when metal gets close to the sensor/photoresistor area. Since the threshold seems to be about 0.5 V, I was hoping it could be adjusted in a config file. Ideally I’d add some hysteresis — disable the IR filter below 0.4 V and only re-enable it above 0.7 V, so it isn’t flapping around the 0.5 V point.
I’ve checked the available options and there’s no config setting to change the IR filter switching threshold, so hysteresis like that (off below 0.4 V, on above 0.7 V) isn’t possible right now. Are you also looking for a minimum delay between switches, or manual control of the filter?
A delay would help too — can a minimum time between switching be configured? And separately, is there any way to send a command to turn the IR filter on/off manually, or read its current state from the camera?
For the Pi 4 and earlier models there were scripts for controlling the IR filter, but that same functionality hasn’t been implemented for the Pi 5 yet. So on the Pi 5 there’s currently no way to toggle the filter with a command or read its state, and no delay setting either. I’ll update if that becomes available.
Understood. One more thing — how do I change focus? I’ve tried a few libcamera commands for manual focus, but none of them seem to have any effect.
The focus on this module is manual and physical — there’s no software focus control in libcamera for it. You adjust it by screwing the lens in or out until the image is sharp. For reference, there’s documentation on IR filter control for the Pi 4 and earlier models here: Quick start - Arducam Wiki — but that covers the older boards, not the Pi 5.
Thanks, that clears up the focus side. So just to make sure I’ve got it right: the ~0.5 V threshold is fixed, no hysteresis or delay can be configured, and there’s no Pi 5 command/state read for the IR filter. Is there any chance this could be looked at for a future update?
Correct. To summarise: the IR filter switching threshold is about 0.5 V from the photoresistor, and there’s currently no user-configurable way to change it, add hysteresis (e.g. disable below 0.4 V and re-enable above 0.7 V), or set a switching delay. IR filter control scripts existed for Pi 4 and earlier models, but the Pi 5 equivalent isn’t available yet. I’ve passed the feature request for threshold/hysteresis/delay configuration to the development team. For focus, use the physical lens — screw it in or out until the image is sharp.