Quick Start
Hardware
Connect the Camera Module to Jetson with Ribbon Cable
-
Locate the camera connector (CSI). It’s on the side of the carrier board, opposite to the GPIO pins.
-
Pull up on the plastic edges of the camera port. Do it gently to avoid pulling it off.
- Push in the camera ribbon. Make sure the contacts are facing the heatsinks. Do not bend the flex cable, and make sure it’s firmly inserted into the bottom of the connector.
Ribbon Cable Contacts – 15pin-15pin
Silver Contacts facing inside to the heatsinks
Ribbon cable fully inserted to the bottom of the CSI connector
- Push the plastic connector down. Do it while holding the flex cable until the connector is back in place.
Connect the Servo Motors
The metal base with servos and jumper wire are not included in the package.
Connect the 3-pin plug of the servo motors to the two sockets of the driver controller board.
-
The left socket is for the pan servo, and the right socket is for the tilt servo.
-
Note the color of the 3-pin plug. It’s brown, red and yellow from left to right.
Servo plug connection:
Connect the driver controller board jumpers
The metal base with servos and jumper wire are not included in the package.
The jumpers of the driver controller board can be separated into 3 pairs, and they are mainly for two purposes: I2C control signals and power supplies.
- The 1st pair connects to external power, with Pin#1 being Servo VCC and Pin#2 GND.
- The 2nd pair connects to the RPi’s GPIO pins for power, with Pin#3 being 5V and Pin#4 GND.
- The 3rd pair also connects to the Jetson’s GPIO pins for I2C, with Pin#5 being SCL and Pin#6 SDA.
Driver controller board jumpers connection:
Please note that In this illustrator, the different colors of the jumper wires are just to make it easier to distinguish them from each other. The order of those colors varies from item to item, so it may not match the one you’ve received. Therefore, instead of its color, you should rely on the position of the wire to correctly connect the jumpers.
After you finish the hardware assemble process, refer to Picture 3 to review the connections you’ve made.
Connection Overview:
Software
For IMX219 PTZ Camera
- Download the demo code
- Install Dependency
- Enter the folder
- Run the demo code
Focus Eample Demo
- Focuser.py
- zoom-lens basic control component.
- AutoFocus.py
- Provide two autofocus methods are available, depending on Focuser.py, opencv, picamera
- Use the sudo apt-get install python-opencv command to install opencv.
- AutoFocusExample.py
- Example of using autofocus, depending on AutoFocus.py
- FocuserExample.py
- zoom-lens controller.
For IMX477 PTZ Camera
Demo
Driver Installation
You can refer to Driver-for-imx477 to install driver.