Using the Raspberry Pi Autofocus Camera Module 3 as HDMI camera

More than two years ago, I blogged about the use of the Raspberry Pi as an HDMI camera for the ATEM Mini. Although I have been using such a camera since then as my main Zoom camera, I wasn’t always happy with the image quality. The main problem was that the previous Raspberry Pi cameras had a fixed focus and it was quite hard to find the perfect focus.

But with the new version 3 camera module with auto-focus, this should all be solved… and… it is!

TL;DR; Yes, you can build your own Raspberry Pi camera to use as an HDMI source for the ATEM Mini, and the auto-focus version is an amazing improvement!!!

About the V3 camera

In January 2023, Raspberry Pi announced the 12 megapixel Camera Module 3. Starting from 25$, there are four different variants with both visible-light and infrared-sensitive options, and with either a standard or wide field of view. But the most important improvement is powered autofocus for crisp images of objects from around 5cm out to infinity.

To give you an idea of the difference between normal and wide, check these two pictures taken with both version standing next to each other:

And these are comparisons of the V2 camera, and both versions of the V3. Sorry for the messy room.

As you may notice, the V3 also seems to have better light sensitivity and a better color balance. Sorry again for the crappy photo model ;-)


Because there are no Raspberry Pi Zero 2 boards available at any official dealer, and they are sold for ridiculous prices on other websites, I tried with the original Raspberry Pi Zero. Check the installation instructions of the original post for the full description, but use the following service script, that contains one additional line to delay the start of the camera. Without this delay, the service can’t start as the camera is not detected yet.

Description=Start the camera fullscreen

ExecStartPre=/bin/sleep 30
ExecStart=libcamera-hello --viewfinder-width 1920 --viewfinder-height 1080 -f -t 0 &


With a Zero 2, the camera is started within 20 seconds after powering the board, with the original Zero and the required delay, you have to wait just above one minute before the camera is available.

Important note: the camera modules come with a cable to connect them to the standard Raspberry Pi boards, but the Raspberry Pi Zero has a smaller connector! Make sure to order a “Raspberry Pi Zero Camera Adapter”, for instance, this is a link to product page on The PiHut.

3D Housing

On I found the perfect housing for a Raspberry Pi Zero with this new camera. I had to adapt the front cover as V3 has a different type of camera that doesn’t fit. Unfortunately, the license of the original model doesn’t allow me to share the modified file.


Camera Module 3 with auto-focus is a great improvement! And in combination with the Raspberry Pi Zero this is a great and affordable HDMI camera you can use as inputs for the ATEM Mini.

I hope to share some videos here soon, made with my improved setup.