Skip to main content

Working with RDK

RDK X series boards (RDK X3 / RDK X5) provide MIPI camera example programs for quickly testing the camera data path.

note

Please use the latest version of the system for testing.

Hardware Connection​

RDK X5

Connected to RDK X5

  • Connect the camera ribbon cable to the MIPI CSI interface on the RDK board, paying attention to the orientation of the metal contacts. Refer to the corresponding board hardware documentation for the exact interface location.
  • Connect the development board to a monitor via an HDMI cable to display the camera feed.
tip

The images above are for demonstration purposes only. This product does not include the above mainboards or kits.

Running the Official Example​

The RDK system comes with a pre-installed MIPI camera test example mipi_camera.py, located in the /app/pydev_demo/03_mipi_camera_sample/ directory.

  1. (Optional) If you are using the Desktop version of the system, you can first run the following command to release display resources by stopping the desktop service:

    sudo systemctl stop lightdm
  2. Log in to the development board via SSH, navigate to the example directory, and run:

    cd /app/pydev_demo/03_mipi_camera_sample/
    sudo python3 ./mipi_camera.py

    After the program starts, the monitor will display the camera feed and object detection results in real time.

IR-CUT Filter Switching Control​

This module supports both manual switch control and external GPIO control: IMX477_IR-CUT_Camera_B-1

  1. Manual switch control (① in the figure): Manually switch the filter state using the onboard switch. IR-D is day mode. IR-N is night vision mode.
  2. External GPIO control (② in the figure): Connect the GPIO output of the host device to the IR-GPIO interface on the module. The host device switches to day mode by outputting a high level and to night mode by outputting a low level. DuPont wires can be used for the connection.
note

The module uses onboard switch control by default. When external GPIO control is connected, GPIO control takes priority over the onboard switch, and the filter state is determined by the GPIO input level.

Precautions​

  • For more information on using MIPI cameras with RDK X series boards, refer to the official documentation:
    RDK X5 MIPI Camera Usage