Hey everyone, I’m trying to get the autofocus and zoom working on my Arducam IMX477 PTZ camera module hooked up to a Raspberry Pi 4. I’ve already got the camera preview displaying fine on both my Pi 4 and a Jetson Nano, so the basic video pipeline is good. But I can’t for the life of me figure out how to actually control the autofocus and zoom — there doesn’t seem to be any obvious Python API or command-line tool for it. I’ve dug around but I’m not sure which drivers or libraries I even need for this. Anyone know what configuration steps, specific libraries, or tools are required to drive the PTZ features (autofocus/zoom in particular) on the Pi 4?
Yeah, the ArduCAM IMX477 PTZ is fully compatible with the Raspberry Pi 4, so you’re good on the hardware side. There’s actually a comprehensive setup guide on GitHub that covers exactly what you’re looking for — it walks through all the required software and steps including autofocus and zoom control. The official resource is the ArduCAM PTZ-Camera-Controller repository, specifically the B016712MP directory. That’s where all the Pi 4 integration stuff lives. Follow the guide here: PTZ-Camera-Controller/B016712MP at master · ArduCAM/PTZ-Camera-Controller · GitHub — it should get your autofocus and zoom controls sorted.
Thanks for the pointer! Just to confirm before I dive in — the B016712MP directory has everything I need for the autofocus and zoom APIs specifically? Is it command-line based or Python, or both?
That directory covers the full setup — drivers, software dependencies, and control interfaces for the PTZ features including autofocus and zoom. The controller tools in that repo give you both command-line access and there are Python examples in there as well, so you can script it however you prefer. Just work through the setup steps in order and you should have full control over focus and zoom once everything is configured.