Skip to main content

ArmSoM Camera 4K

1. Camera Introduction

Armsom uses a high-performance ultra clear 4K camera ov13850.

The OV13850 module has the following characteristics:

  • Pixel size: 1.12 millimeters x 1.12 millimeters
  • 13 million pixels, 30fps
  • Supports image sizes of 13.2MP (4224 x 3136), 10MP (4224 x 2376), 2K (2112 x 1568), EIS1080P (2112 x 1188), EIS 720P (1408 x 792), etc Dual Wire Serial Bus Control (SCCB)
  • Up to 4-channel MIPI serial output
  • Working temperature range: 0 ℃~60 ℃, storage temperature range: -30 ℃~80 ℃

Pinout​

PIN NOSYMBOLDescription
1GNDGround
2CSI_RX_D3NChannel 3 differential negative signal
3CSI_RX_D3PChannel 3 differential positive signal
4GNDGround
5CSI_RX_D2NChannel 2 differential negative signal
6CSI_RX_D2PChannel 2 differential positive signal
7GNDGround
8CSI_RX_CLK1NOutput clock differential negative signal
9CSI_RX_CLK1Poutput clock differential negative signal
10GNDGround
11CSI_RX_D1NChannel 1 differential negative signal
12CSI_RX_D1PChannel 1 differential positive signal
13GNDGround
14CSI_RX_D0NChannel 0 differential negative signal
15CSI_RX_D0PChannel 0 differential positive signal
16GNDGround
17CSI_RX_CLK0Noutput clock differential negative signal
18CSI_RX_CLK1Poutput clock differential positive signal
19MIPI_VSYNCFrame synchronization signal
20MIPI_CLKOUTclock signal
21MIPI_HSYNCLine synchronization signal
22MIPI_CLKOUTclock signal
23MIPI_CSI_PDNcontrol signal
24I2C_SCLI2C clock signal
25I2C_SDAI2C data signal
26MIPI_CSI_PDNcontrol signal
27RESETGlobal reset signal
28-29VCC_RX2VCCIO
30-31VCC_5V0VCCIO
32GNDGround
33GNDGround

2. Enable Camera Overlay

2.1 Ubuntu22.04 image to enable camera overlay​

  • Use nano to open the /boot/firmware/ubuntuEnv.txt file:
sudo nano /boot/firmware/ubuntuEnv.txt
  • Find the "overlays=" keyword in the file, and add the following:
overlays=armsom-sige7-camera-imx415-4k

Shortcut keys: Ctrl + S to save, Ctrl + X to exit

After editing and saving, restart the device to change the Overlays settings to support the camera.

2.2 Armbian image to enable camera overlay​

  • Use nano to open the /boot/armbianEnv.txt file:
sudo nano /boot/armbianEnv.txt
  • Find or add the "overlays=" keyword in the file.
overlays=armsom-sige7-camera-imx415-4k 

Shortcut keys: Ctrl + S to save, Ctrl + X to exit

After editing and saving, restart the device to change the Overlays settings to support the camera.

3. Use the Camera

You can download cheese and then use the camera with the following commands:​

armsom@armsom: sudo apt update
armsom@armsom: sudo apt install cheese
armsom@armsom: ./cheese

Or you can also preview the camera using terminal commands:​

  • Preview camera 1:
gst-launch-1.0 v4l2src device=/dev/video22 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! videoconvert ! autovideosink
  • Preview camera 2:
gst-launch-1.0 v4l2src device=/dev/video31 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! videoconvert ! autovideosink