Hi, I’ve been playing with an HQ Camera (IMX477) on a UC733 Rev3 USB shield, driving it through video4linux2. The problem is that the controls I get back don’t include things like horizontal/vertical flip or the frame rate. When I connect the same camera to a Pi4 using the camera ribbon cable I seem to have access to more camera controls.
So two questions really:
Are controls like horizontal/vertical flip and frame rate actually supported with the UC733 Rev3?
Do I need to use some Arducam drivers rather than video for linux 2 in order to get more controls out of the camera and the USB shield?
If anyone can point me at a guide or some libraries that expose more controls for the HQ Camera (IMX477) + UC733 Rev3 combination that would be great.
The short version is that the extra controls (flip, frame rate, etc.) mostly come from the libcamera + Arducam IMX477 driver path on the Pi, not from the generic v4l2 controls you get through the USB shield on an arbitrary host. Let me check a couple of details and get back to you.
One thing I should probably have mentioned up front - the setup where the controls look limited is running on an Odroid XU4, on 32-bit Ubuntu, not on a Pi. That may well explain the difference in available controls between the two setups, now that I think about it.
My plan is to plug the setup into a Pi4 and see whether the controls differ from when it’s connected through the camera ribbon cable. I believe they were different in the past, but I want to confirm it properly. I’ll also read through the driver and libcamera docs you linked and report back what I find.
That Odroid XU4 detail is likely the key here. On the XU4 you’re at the mercy of its v4l2 stack and whatever the USB bridge in the UC733 Rev3 exposes, so you generally get a fairly basic control set - brightness, exposure, gain and the like - and not the full sensor control list. Flip and frame rate in particular tend to be handled by the ISP/driver stack (libcamera on the Pi), so they won’t necessarily show up as v4l2 controls on a non-Pi host.
Worth comparing directly when you get the Pi4. On the XU4 side you can dump the current set with something like:
v4l2-ctl --list-ctrls -d /dev/video0
and then run the same command on the Pi4, both through the USB shield and via the ribbon cable, and see what changes. That will tell you whether it’s the host platform, the interface, or both. My expectation is the Pi4 + ribbon cable + the Arducam IMX477 driver/libcamera path gives you the missing controls, while the XU4 does not. Let me know what the comparison shows.
That makes sense - I’ll run v4l2-ctl --list-ctrls on the XU4 first so I have a baseline, then do the same on the Pi4 with the USB shield and again with the ribbon cable. I’ll also go through the IMX477 driver docs and the libcamera page properly before I test, so I know what I should be expecting.
Might take me a day or two to get the Pi4 test set up. I’ll post back with the control lists from each configuration.
Sounds good, that comparison should make it clear.
To summarise where we are for anyone following the thread:
The missing horizontal/vertical flip and frame rate controls are almost certainly a host/driver-stack thing rather than the camera itself. The UC733 Rev3 + IMX477 works, but the controls exposed depend on the platform.
On a non-Pi host like the Odroid XU4 (32-bit Ubuntu), you’re limited to what the UC733’s USB/v4l2 path provides, which doesn’t include the flip and frame rate controls.
The full control set on Raspberry Pi comes via the Arducam IMX477 driver plus libcamera, which is why the Pi4 + ribbon cable behaves differently. Docs to read are: Redirecting... Redirecting...
So the working assumption is: if you want those extra controls, use the Pi4 with the Arducam driver/libcamera path rather than relying on plain v4l2 on the XU4. We haven’t confirmed it yet though - please post the --list-ctrls output from the XU4, the Pi4 over USB, and the Pi4 over ribbon cable, and we can take it from there.