1. Home
  2. Docs
  3. Camera for Jetson Nano
  4. Multiple cameras on the Jetson Nano
  5. Arducam Stereo Camera HAT on the Nano

Arducam Stereo Camera HAT on the Nano

1.Wiring and connection

The whole setup consists of four parts: The Jetson Nano Developer Kit, the Jetvariety adapter board, the Arducam Stereo Camera HAT, and the Arducam Stereo Camera Board. We will connect them together.

  1. Connect the Jetvariety adapter board to the Jetson Nano

    Get a 15-pin ribbon cable, with one end connected to the camera slot on the Nano, and the other end connected to the CSI camera slot on the Jetvariety adapter board marked To Board.Connect the Jetvariety adapter board to the Jetson Nano

  2. Connect the Jetvariety adapter board to the stereo camera HAT

    Get a 15-pin to 22-pin ribbon cable, with on end connected to the camera slot on the Jetvariety adapter board marked To camera, and the other end connected to 22-pin slot on the stereo HAT marked MIPI output.Connect the Jetvariety adapter board to the stereo camera HAT

  3. Connect the stereo camera HAT to the stereo camera board

    Use two 22-pin ribbon cables to connect the stereo board to the MIPI CAM 0 and MIPI CAM 1 port on the stereo camera HAT.Connect the stereo camera HAT to the stereo camera board

  4. Connect the Stereo camera HAT to the Jetson Nano

    Insert the stereo camera HAT to the GPIO pins of the Jetson Nano as the picture shows. This step is to power the stereo camera HAT, so you can also connect a micro USB power cable to the HAT if you don’t want to use the GPIO pins.Connect the Stereo camera HAT to the Jetson Nano

  5. Complete the connection for stereo camera HAT

    Now you’ve finished the connection and the whole setup should like the following image.Complete the connection for stereo camera HAT 1

2. View the stereo image on Jetson Nano

Please refer to this page for a camera demonstration.

3. Depth mapping with the Jetson Nano and Arducam Stereo Camera HAT

Here we present a demo of how to use the stereo image with the example of depth mapping.

3.1 Install the latest image of Jetson Nano

You can download from the Jetson Download center or directly get it here.

3.2 Install the camera driver

Always make sure you have installed the camera driver before you start, following the tutorials here.

3.3 Download the demo code

git clone https://github.com/ArduCAM/MIPI_Camera.git
cd MIPI_Camera/Jetson/Jetvariety/stereo_depth_demo

3.4 Install Dependency for Python2.7

wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
sudo pip install stereovision
sudo apt install libpng-dev
sudo apt install libfreetype6-dev
sudo apt install python-gi-cairo

3.5 Install Dependency for Python3.x

wget https://bootstrap.pypa.io/get-pip.py && sudo python3 get-pip.py
sudo pip3 install stereovision
sudo apt install libpython3-dev
sudo pip3 install matplotlib 

4. Run the programs

1.Capture images

python 1_test.py

Help message:

run example jetvariety help python

Example:

run example jetvariety help python example

The following steps are the same as that on the Raspberry Pi. You can refer to this page to proceed.

Was this article helpful to you? Yes No