Difference between revisions of "StereoPi v2 Camera Kit Guide"

From StereoPi Wiki
Jump to navigation Jump to search
m (Tripod mount installation)
m (Screen and shot button installation)
 
(40 intermediate revisions by the same user not shown)
Line 13: Line 13:
  
  
2. Install the spacer to the hole in each corner and fix it with the nut
+
2. Install the spacer to the hole in each corner and secure it with the nut
  
 
[[File:Stereopi-v2-camera-kit-3-1.jpg|none|800px|10mm spacers installation]]
 
[[File:Stereopi-v2-camera-kit-3-1.jpg|none|800px|10mm spacers installation]]
Line 33: Line 33:
 
[[File:Stereopi-v2-camera-kit-4-2.jpg|none|800px|Camera installation step 1]]
 
[[File:Stereopi-v2-camera-kit-4-2.jpg|none|800px|Camera installation step 1]]
  
Fix the camera using 4 nuts and 4 bolts:
+
Secure the camera using 4 nuts and 4 bolts:
  
 
[[File:Stereopi-v2-camera-kit-4-3.jpg|none|800px|Camera installation step 2]]
 
[[File:Stereopi-v2-camera-kit-4-3.jpg|none|800px|Camera installation step 2]]
Line 83: Line 83:
 
[[File:Stereopi-v2-camera-kit-6-2.jpg|none|800px|Camera mounting plate installation]]
 
[[File:Stereopi-v2-camera-kit-6-2.jpg|none|800px|Camera mounting plate installation]]
  
After that, fix the board using four 20mm stand-offs. Here is the result of this step:
+
After that, secure the board using four 20mm stand-offs. Here is the result of this step:
  
 
[[File:Stereopi-v2-camera-kit-6-3.jpg|none|800px|Camera mounting plate installed]]
 
[[File:Stereopi-v2-camera-kit-6-3.jpg|none|800px|Camera mounting plate installed]]
Line 107: Line 107:
 
[[File:Stereopi-v2-camera-kit-8-1.jpg|none|800px|Tripod mount installation, step 2]]
 
[[File:Stereopi-v2-camera-kit-8-1.jpg|none|800px|Tripod mount installation, step 2]]
  
Install the StereoPi assembly keeping the cameras facing the metal part of the GoPro mount, and fix the assembly using the metal screw included.
+
Install the StereoPi assembly keeping the cameras facing the metal part of the GoPro mount, and secure the assembly using the metal screw included.
  
 
[[File:Stereopi-v2-camera-kit-8-2.jpg|none|800px|Tripod mount installed]]
 
[[File:Stereopi-v2-camera-kit-8-2.jpg|none|800px|Tripod mount installed]]
Line 114: Line 114:
  
 
In this section, we'll review a few cameras installation options, as well as 2" IPS screen installation and a shot button. This assembly is suitable for the SLP2 image and stereoscopic photo/video capture.
 
In this section, we'll review a few cameras installation options, as well as 2" IPS screen installation and a shot button. This assembly is suitable for the SLP2 image and stereoscopic photo/video capture.
 +
 +
=== Elevated installation of the cameras ===
 +
 +
In the first section of the assembly guide, we considered the simple approach of the camera mounting:
 +
 +
[[File:Stereopi-v2-camera-kit-9.jpg|none|800px|Simple assembly]]
 +
 +
If you are planning to experiment with different cameras and want to be able to replace them without the full disassembly, it is better to use the "elevated" camera installation, like this one:
 +
 +
 +
[[File:Stereopi-v2-camera-kit-9-1.jpg|none|800px|Elevated installation of the cameras]]
 +
 +
To do this assembly, use four 6mm spacers and four bolts.
 +
 +
[[File:Stereopi-v2-camera-kit-10.jpg|none|800px|Camera, spacers and bolts]]
 +
 +
Secure the spacers using the bolts:
 +
 +
[[File:Stereopi-v2-camera-kit-10-1.jpg|none|800px|Elevated camera assembly]]
 +
 +
Then install both cameras to the mounting plate:
 +
 +
[[File:Stereopi-v2-camera-kit-10-2.jpg|none|800px|Elevated cameras installed]]
 +
 +
=== Recessed installation of the cameras ===
 +
 +
This method is useful with the StereoPi Slim edition. You can also use it in some specific cases, when you have to hide the cameras' PCB and ribbons behind the mounting plate.
 +
 +
Attach the spacers by nuts this way:
 +
 +
[[File:Stereopi-v2-camera-kit-10-3.jpg|none|800px|Recessed camera installation]]
 +
 +
Install both cameras to the mounting plate:
 +
 +
[[File:Stereopi-v2-camera-kit-10-4.jpg|none|800px|Recessed installation of the cameras]]
 +
 +
 +
=== Installation of Pi Cameras V1 and V2 ===
 +
 +
We recommend using the elevated installation of the V1 or V2 cameras.
 +
 +
Since these cameras have another position of the holes, you should use additional holes of the mounting plate.
 +
 +
To simplify the installation difference indication, let us show you both versions of the cameras installed on the same plate.
 +
 +
''Caution: using two cameras with different sensors will cause raspistill/raspivid issues. Please access the cameras using low-level system methods if you really need this mix of sensors for your experiments. In our photo, we are using v1 camera and M12 both equipped with OV5647 sensors, so this couple will work with the raspistill/raspivid without issues.''
 +
 +
[[File:Stereopi-v2-camera-kit-11.jpg|none|800px|v1 and M12 installation difference]]
 +
 +
 +
[[File:Stereopi-v2-camera-kit-11-1.jpg|none|800px|V1 and M12 installation difference, part 2]]
 +
 +
 +
[[File:Stereopi-v2-camera-kit-11-2.jpg|none|800px|V1 and M12 installation difference, bottom view]]
 +
 +
 +
=== Screen and shot button installation ===
 +
 +
==== Connecting the TFT screen ====
 +
 +
[[File:Stereopi-v2-camera-kit-12.jpg|none|800px|Screen installation]]
 +
 +
Push the screen's wires through the hole:
 +
 +
[[File:Stereopi-v2-camera-kit-12-1.jpg|none|800px|Screen installation: step 1]]
 +
 +
For simplicity of future assembly make a knot, but do not tighten too tight!
 +
 +
[[File:Stereopi-v2-camera-kit-12-2.jpg|none|800px|Cable management]]
 +
 +
 +
'''ATTENTION!'''
 +
'''The color of wires may vary! Please use the name of the pins to connect, and ignore the colors!'''
 +
 +
Connect the screen wires to the StereoPi v2 GPIO according to this diagram:
 +
 +
[[File:Stereopi-v2-screen-and-button-pinout.png|none|800px|Screen and button connection diagram]]
 +
 +
Secure the screen using four bolts from the kit.
 +
 +
[[File:Stereopi-v2-camera-kit-12-4.jpg|none|800px|Secure the screen]]
 +
 +
Here is the backside view of the backplate with the screen attached:
 +
 +
[[File:Stereopi-v2-camera-kit-12-3.jpg|none|800px|Screen attached, backside view]]
 +
 +
And our assembly looks like this now:
 +
 +
[[File:Stereopi-v2-camera-kit-12-5.jpg|none|800px|Screen attached]]
 +
 +
 +
 +
'''<><><> IMPORTANT <><><>'''
 +
 +
 +
# If your screen sows upside-down image, you can either assemble your setup using another slot for the cables of the backplate or do this simple rotation trick shown in [[https://youtu.be/PPkERBPHNAg this 26-seconds YouTube video]].
 +
# After installation of the screen, do not forget to enable it in [[StereoPi_v2_Camera_Kit_Guide#Turn_on_TFT_screen_support_in_SLP2 | SLP2 settings]].
 +
 +
 +
==== Connecting the button ====
 +
 +
Now let's install the shot button. As an example, we'll connect it to the GPIO 20. Please use this GPIO 20 in the SLP2 setting to enable this button functionality.
 +
 +
[[File:Stereopi-v2-camera-kit-13.jpg|none|800px|The Button]]
 +
 +
Install the button into the hole:
 +
 +
[[File:Stereopi-v2-camera-kit-13-1.jpg|none|800px|Install the button into the hole]]
 +
 +
Secure the button from the bottom side by the metal nut included:
 +
 +
[[File:Stereopi-v2-camera-kit-13-2.jpg|none|800px|Secure the button]]
 +
 +
Connect the button's wires to pins 38 and 39 according to this diagram:
 +
 +
[[File:Stereopi-v2-screen-and-button-pinout.png|none|800px|Screen and button connection diagram]]
 +
 +
And we have this connection:
 +
 +
[[File:Stereopi-v2-camera-kit-13-3.jpg|none|800px|Button pins (GPIO20)]]
 +
 +
Now install the backplate to the main assembly with the StereoPi:
 +
 +
[[File:Stereopi-v2-camera-kit-13-4.jpg|none|800px|The screen and the button are installed]]
 +
 +
And a side view of our assembly:
 +
 +
[[File:Stereopi-v2-camera-kit-13-5.jpg|800px|The screen and the button are installed, side view]]
 +
 +
==== Turn on TFT screen support in SLP2 ====
 +
 +
[[File:Device-settings-display-tft-display.png|none|800px|Device settings, Display, TFT display tab]]
 +
 +
After this, please turn on the display support in the SLP. This process is described here: [[SLP2_(StereoPi_Livestream_Playground_v2)#TFT_display | SLP2 /TFT display]]
 +
 +
==== Turn on button support in SLP2 ====
 +
 +
[[File:Device-settings-recording-buttons.png|800px|Device settings, Recording, Buttons tab]]
 +
 +
Please turn on the button support in the SLP. This process is described here: [[SLP2_(StereoPi_Livestream_Playground_v2)#Buttons | SLP2 /Recording/Button]]

Latest revision as of 09:34, 13 October 2021

Basic assembly

Following this section of the guide, you can assemble the basic camera setup without a screen and a button. This assembly is useful for the OpenCV experiments.

StereoPi v2 Camera Kit Basic Assembly

Camera mounting plate preparation

1. Prepare the camera mount plate, four nuts, and four 10mm spacers

Front plate, 10mm spacers and nuts


2. Install the spacer to the hole in each corner and secure it with the nut

10mm spacers installation


3. You should get this assembly as a result:

10mm spacers installed

Installation of the cameras

Please prepare two cameras, eight nuts, and eight bolts. You will also need the front camera plate assembled in the previous step.

Cameras, nuts and bolts


Each camera has two metal nuts on the backside of the PCB. Put the camera onto the mounting plate keeping these bolts inside the hole:

Camera installation step 1

Secure the camera using 4 nuts and 4 bolts:

Camera installation step 2

Install the second camera the same way. You should get this assembly as a result:


Both cameras are installed

CM4 installation

CM4 installation
  1. Disconnect all external equipment and power.
  2. Put the board upside down so that the USB C port is facing to the left.
  3. Take the CM4 module so that the triangle PCB antenna and the power circuit (a group of 5 black components) are faced to the left.
  4. Put the CM4 module on the connectors and gently press the bottom until you hear a click. After that, do the same with the top part of the CM4.

After this step you should get this result:

CM4 installation result

StereoPi v2 power jumper installation

Power switch pins

Install a jumper to the pins near the USB C connector.

Connecting cameras to StereoPi v2

For the next step you'll need all items you've just assembled, and also four 20mm spacers.

StereoPi v2 installation

While connecting camera ribbons, the first step is gently PULLING black the fixator up 4-5 mm. After that insert camera ribbon by BLUE side to BLACK fixator. Check that the cable is fully inserted at a 90-degree angle. After that push the black fixator down to secure the ribbon.

Camera ribbon installation

After this step you should get this result:

Camera ribbon cables connection

StereoPi v2 installation

You can use camera ribbon cables of different lengths, so this step may vary.

Choose the most appropriate ribbon cables' position for your assembly, and put StereoPi v2 board to the spacers, attached to the camera mount plate. Here is how we did it for the 10cm cables:

Camera mounting plate installation

After that, secure the board using four 20mm stand-offs. Here is the result of this step:

Camera mounting plate installed

Back plate installation

Please prepare the assembly from the previous step, backplate, and four nylon bolts:

Backplate installation

Attach the backplate to the stand-offs using four bolts. The result should look like this:

Backplate installed

Tripod mount installation

Prepare the GoPro mount add-on and the black acrylic circle from the kit.

Tripod mount installation

Install the acrylic circle near the metal part of the GoPro mount first:

Tripod mount installation, step 2

Install the StereoPi assembly keeping the cameras facing the metal part of the GoPro mount, and secure the assembly using the metal screw included.

Tripod mount installed

Advanced assembly

In this section, we'll review a few cameras installation options, as well as 2" IPS screen installation and a shot button. This assembly is suitable for the SLP2 image and stereoscopic photo/video capture.

Elevated installation of the cameras

In the first section of the assembly guide, we considered the simple approach of the camera mounting:

Simple assembly

If you are planning to experiment with different cameras and want to be able to replace them without the full disassembly, it is better to use the "elevated" camera installation, like this one:


Elevated installation of the cameras

To do this assembly, use four 6mm spacers and four bolts.

Camera, spacers and bolts

Secure the spacers using the bolts:

Elevated camera assembly

Then install both cameras to the mounting plate:

Elevated cameras installed

Recessed installation of the cameras

This method is useful with the StereoPi Slim edition. You can also use it in some specific cases, when you have to hide the cameras' PCB and ribbons behind the mounting plate.

Attach the spacers by nuts this way:

Recessed camera installation

Install both cameras to the mounting plate:

Recessed installation of the cameras


Installation of Pi Cameras V1 and V2

We recommend using the elevated installation of the V1 or V2 cameras.

Since these cameras have another position of the holes, you should use additional holes of the mounting plate.

To simplify the installation difference indication, let us show you both versions of the cameras installed on the same plate.

Caution: using two cameras with different sensors will cause raspistill/raspivid issues. Please access the cameras using low-level system methods if you really need this mix of sensors for your experiments. In our photo, we are using v1 camera and M12 both equipped with OV5647 sensors, so this couple will work with the raspistill/raspivid without issues.

v1 and M12 installation difference


V1 and M12 installation difference, part 2


V1 and M12 installation difference, bottom view


Screen and shot button installation

Connecting the TFT screen

Screen installation

Push the screen's wires through the hole:

Screen installation: step 1

For simplicity of future assembly make a knot, but do not tighten too tight!

Cable management


ATTENTION! The color of wires may vary! Please use the name of the pins to connect, and ignore the colors!

Connect the screen wires to the StereoPi v2 GPIO according to this diagram:

Screen and button connection diagram

Secure the screen using four bolts from the kit.

Secure the screen

Here is the backside view of the backplate with the screen attached:

Screen attached, backside view

And our assembly looks like this now:

Screen attached


<><><> IMPORTANT <><><>


  1. If your screen sows upside-down image, you can either assemble your setup using another slot for the cables of the backplate or do this simple rotation trick shown in [this 26-seconds YouTube video].
  2. After installation of the screen, do not forget to enable it in SLP2 settings.


Connecting the button

Now let's install the shot button. As an example, we'll connect it to the GPIO 20. Please use this GPIO 20 in the SLP2 setting to enable this button functionality.

The Button

Install the button into the hole:

Install the button into the hole

Secure the button from the bottom side by the metal nut included:

Secure the button

Connect the button's wires to pins 38 and 39 according to this diagram:

Screen and button connection diagram

And we have this connection:

Button pins (GPIO20)

Now install the backplate to the main assembly with the StereoPi:

The screen and the button are installed

And a side view of our assembly:

The screen and the button are installed, side view

Turn on TFT screen support in SLP2

Device settings, Display, TFT display tab

After this, please turn on the display support in the SLP. This process is described here: SLP2 /TFT display

Turn on button support in SLP2

Device settings, Recording, Buttons tab

Please turn on the button support in the SLP. This process is described here: SLP2 /Recording/Button