How to Use Jetson Nano and Xavier NX Cameras (MIPI CSI-2)

  1. Home
  2. Docs
  3. How to Use Jetson Nano and Xavier NX Cameras (MIPI CSI-2)
  4. IMX298 (16MP)
  5. Jetvariety Argus 16 Tutorial

Jetvariety Argus 16 Tutorial

Before we start

Camera modules need a driver to work. More specifically, we need to integrate the driver for the camera to the kernel to work.

The default IMX219 is of on exception. Its camera driver is shipped with every Jetson kernel update, so you don’t have to install the drivers.

And that’s the only camera driver shipped. If you want to use an image sensor other than the IMX219, you need to patch the driver to the kernel.

When you update your system, the old patched kernel will be overridden by the newly shipped one. That means if the kernel gets updated, the driver needs to be patched again.

The following tutorial is based on L4T 32.4.4 (JetPack 4.4.1).

Connect the camera module

Refer to the official guide on how to connect the camera module:

https://developer.nvidia.com/embedded/learn/jetson-nano-2gb-devkit-user-guide#id-.JetsonNano2GBDeveloperKitUserGuidevbatuu_v1.0-Camera

Driver Installation

Check L4T version

Check your L4T (Linux4Tegra) Version with the following command:

cat /etc/nv_tegra_release
l4t version jetson nano arducam driver installation

Get the driver matching your IMX298 image sensor and L4T version at https://github.com/ArduCAM/MIPI_Camera/releases/tag/v0.0.1-nano-isp

Install the .deb file

dpkg --list | grep nvidia-l4t-kernel
sudo dpkg -i arducam-nvidia-l4t-kernel_4.9.140-32.4.4-xxxxxxxxx_arm64.deb

Reboot

sudo reboot

Use the Camera

Test the camera

gst-launch-1.0 nvarguscamerasrc sensor-id=0 ispdigitalgainrange="1 1" ! "video/x-raw(memory:NVMM),width=4656,height=3496,framerate=11/1" ! nvvidconv ! nvoverlaysink

Press Ctrl+C to exit.

Was this article helpful to you? Yes No