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.
- 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
- 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
- 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 0and
MIPI CAM 1port on the stereo camera HAT.
- 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.
- Complete the connection for stereo camera HAT
Now you’ve finished the connection and the whole setup should like the following image.
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
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
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
The following steps are the same as that on the Raspberry Pi. You can refer to this page to proceed.