StereoPi v2

by StereoPi

The open-source stereoscopic camera based on Raspberry Pi with Wi-Fi, Bluetooth, and an advanced powering system

View all updates Mar 19, 2021

CNC Machining & Other Features of the HQ-Camera Housing

by Eugene Pomazov

Why Metal?

HQ housing and Raspberry Pi HQ camera

Last year, the Raspberry Pi foundation unveiled their new device, the Raspberry Pi HQ camera. It has a more powerful sensor, with 12-Mpix resolution, and is working with C/SC lenses (1" diameter). In comparison with the 1.5 mm diameter optics in the V1 and V2 cameras, this is absolutely another level! We wrote about HQ camera advantages in our previous update.

These advanced lenses are heavy-weight. For example, this 16 mm lens weights 175 grams! And you need two for the stereoscopic setup! If you install a pair of HQ cameras with this kind of optics using the plastic camera enclosure, you can run into some trouble. The main problem is that you can’t keep the cameras’ axes parallel. This issue is critical for computer vision, to prevent your setup from loosing its calibration. And if you are recording stereoscopic video, the last thing you want is for your axes to shift while you’re recording.

That’s why we developed this robust, light-weight, metal housing for a pair of HQ cameras.

CNC Magic

StereoPi HQ housing before and after processing

We choose the CNC machining approach for our first batch. In the image above, you can see the original aluminum plate on the bottom and the result on the top. CNC machining is a great technique for small batches (hundreds of pieces), and it allows us to fix design issues on the go. Ideally, we will switch metal casting at some point, as it’s more suitable for batches that involve thousands of pieces.

Here’s what the CNC-machining process looks like:

Fun fact: CNC machines use water cooling, so the whole protective-glass enclosure is covered with water droplets. To keep the viewing window clear, a rotating glass removes the droplets by centrifugal force!

For our prototypes we used 7075T6 aluminum (which is also used for aircraft). That’s right, StereoPi is ready to fly! :) We plan to use the same material (or perhaps 6061) in the production batch.

By the way, all of our images and photos shows non-coated aluminum. The production version will be anodized and black. This is not just for aesthetic purposes but to reduce light reflections in the space between the lens and the sensor. As you may have noticed, the original HQ-camera housing was also black. This was not an accident!

IR-Filter Feature

All modern camera sensors are able to see more that the human eye. They can capture ultra-violet light and a portion of the infrared range. But if you look at the result, you won’t like it.

To remove this effect, manufacturers add special glass filters that suppress light in ranges that are invisible to the human eye. Here is the IR filter, used in HQ camera:

IR filter CM500 installed

So, Houston, we have a problem. If we disassemble an HQ camera and put it into our HQ housing, we’ll have no UIR filter. It’ll still be sitting there inside the original HQ-camera setup! You can, of course, use brute force to remove the original IR filter. Raspberry Pi even has a recommendation and precaution for this in their HQ camera guide:

CM500 removal caution

After carrying out this procedure, you would be unable to re-assemble your HQ camera. But don’t worry, we came up with a better technique. We contacted the Raspberry Pi Foundation, and they introduced us to the HOYA corporation, which produce these filters. We ordered the same CM500 filters for our HQ setup.

HOYA CM500 tray

You get a couple of these filters with your HQ housing, which means your original HQ camera will remain in good shape with it’s original filter. You can always remove the guts from our housing and re-assemble the stock version!

Vertical-Adjustment Trick

No two things in this world are identical. If you take two sensors or two cameras, they are bound to have some assembly differences—usually at the scale of a tenth (or even a thousandth) of a millimeter. But for a 12-Mpix camera sensor with a 1/2" diagonal, such tiny differences translate to real pixels on in your stereoscopic photo! Look at this image:

Vertical misalignment example

Sure, you could post-process this image (using StereoPhoto Maker, for example), but you’d lose a portion of the image after cropping. And besides, one of the most important use-cases here involves real-time, livestreamed video to a VR helmet, which means you can’t necessarily count on professional-quality hardware for on-the-go image processing.

To address this challenge, we added a simple-but-effective feature that allows you to calibrate the vertical alignment of each camera. As a result, you don’t need to use a powerful desktop computer or hard-core production equipment to fix your vertical alignment in realtime.

To explain how this works, we made the following short video without cameras installed.

Essentially you have a regular screw on top and a ball plunger—a tiny steel ball with a spring under it—on bottom. This allows your cameras to remain stable when you use the top screw to make delicate adjustments to your camera’s vertical alignment.

And, of course, we’ve included all necessary screws and ball plungers in the HQ housing kit! :)

Stay tuned!

About the Author

Eugene Pomazov

StereoPi  ·  Realizator  ·   St. Petersburg

$78,775 raised

of $35,000 goal

225% Funded! Order Below

Product Choices


StereoPi v2 Slim

Perfect for DIY ninjas and those wanting to embed StereoPi in a tight space. This board is the same as the standard edition, but without all the bulky connectors - the Ethernet RJ45 jack, GPIO header, and dual USB Type-A connector have not been populated. To use this board, you will need your own Raspberry Pi Compute Module, cameras, and camera ribbon cables. Two short power cables and three jumpers already included.


StereoPi v2 Standard

The world of stereoscopic video awaits! This board is the ultimate interface between two cameras and a Raspberry Pi Compute Module. It comes with all the bells and whistles, including Ethernet, dual USB ports, GPIO header, microSD slot, HDMI output, and more. To use this board, you will need your own Raspberry Pi Compute Module, cameras, and camera ribbon cables. Two short power cables and three jumpers already included.


StereoPi v2 Camera Kit

Everything you need to assemble your camera! Includes StereoPi Standard, CM4 + external antenna, 2 cameras (IMX219, 160 FOV), a TFT screen, a shot button, camera-mount plates, nuts & bolts, 3 jumpers, a 15 cm tripod, and 2 microSD cards with pre-written SLP and OpenCV images!


StereoPi PoE HAT

This board adds Power over Ethernet option to your StereoPi


StereoPi HQ Metal Housing

Metal housing for a couple of HQ cameras with advanced adjustments features. Includes StereoPi HQ housing base + carriages, 2 x HOYA CM500 filters (8.9 x 8.9 x 1 mm), a set of nuts/bolts/washers for assembly, and a tripod. To use this kit you need a couple of HQ cameras and a couple of C or CS lenses.



We are a small team of geeks who have been making remote-controlled things with livestreaming video since 2010. We've done everything from boats and planes, to robots, copters, and VR helmets. If we can't find the right tools for our projects, we build them ourselves.


Sergey Serov



Full-service Manufacturer

See Also

Subscribe to the Crowd Supply newsletter, highlighting the latest creators and projects: