Template: IMX219-Jetson-Stereo-Camera-User-Guides

From Waveshare Wiki
Jump to: navigation, search

Working With Jetson Nano

Hardware Connection

  • Please use two camera cables, facing their metal sides to Jetson Nano's heatsink and insert them to the CSI interfaces.
  • Boot the Jetson Nano.

Software setting

  • Power on Jetson Nano and open the Terminal (Ctrl+ALT+T)
  • Check the video devices with command:
ls /dev/video*
Check if both video0 and video1 are detected
  • Test video0
DISPLAY=:0.0 nvgstcapture-1.0 --sensor-id=0
  • Test video1
 DISPLAY=:0.0 nvgstcapture-1.0 --sensor-id=1
  • If the camera's imaging is too red, you can operate as below:

1. Download the "camera-override.isp" file and unzip it to the specified file folder.

wget https://files.waveshare.com/upload/e/eb/Camera_overrides.tar.gz
tar zxvf Camera_overrides.tar.gz 
sudo cp camera_overrides.isp /var/nvidia/nvcam/settings/
  • Install the file:
sudo chmod 664 /var/nvidia/nvcam/settings/camera_overrides.isp
sudo chown root:root /var/nvidia/nvcam/settings/camera_overrides.isp

【Note】
- 12 of NV12 is a number, not a letter.
- The test screen is output to the HDMI or DP screen, so the screen must be connected to the Jetson Nano when testing.

  • Test the camera, and then respectively connect the SDA and SCL pins to the Pin3 and Pin5 of the Jetson Nano.
  • Open the terminal and download the sample demo, then test:
wget https://files.waveshare.com/upload/e/eb/Camera_overrides.tar.gz
tar zxvf Camera_overrides.tar.gz 
sudo cp camera_overrides.isp /var/nvidia/nvcam/settings/
sudo chmod 664 /var/nvidia/nvcam/settings/camera_overrides.isp
sudo chown root:root /var/nvidia/nvcam/settings/camera_overrides.isp

Please try to rotate the camera, and you can see the change of the output value.