High Definition Camera Application Examples Using M1126

High Definition Camera Application Examples Using M1126
The Internet of Things has developed rapidly in recent years, leading to an increasing number of scenarios requiring cameras. This article discusses the high-definition camera solution paired with the M1126-EV-Board and MIPI camera-demo-6188, to meet users’ demands for high-definition recording.
The M1126-EV-Board evaluation board is carefully launched by Guangzhou Zhiyuan Electronics, integrating industrial control and evaluation into one. This evaluation board can be paired with the M1126-L LGA series core board, providing a wealth of peripheral interfaces for evaluation and expansion based on the selection of the core board, making it convenient and flexible. The evaluation board provides 2 channels of 4-channel MIPI camera interfaces, 1 channel of 4-channel MIPI display interfaces, 1 MiniPCIE socket for evaluating wide area and local wireless modules, 1 SIM card socket, 1 TF card socket, 1 Gigabit Ethernet interface, 1 USB Type C interface, and 2 expansion IO interfaces (including 1 SPI, 5 UART, 1 I2C, 1 CAN, 1 PDM, 9 GPIO, 5 ADC), 1 headphone socket with microphone, and 1 UART debugging interface, meeting the interface evaluation of the M1126-L core board, and can also be directly used in medical electronics, industrial control, face recognition, artificial intelligence, and other applications.

The M1126-EV-Board introduces 1 channel of 4-channel MIPI-CSI digital camera, using a 0.5mm 32Pin FFC connector for digital signal communication, as shown in Figure 1, with signal definitions as shown in Table 1.

High Definition Camera Application Examples Using M1126

Figure 1 MIPI-CSI Camera Interface

Table 1 MIPI-CSI Camera Interface Pin Definitions
High Definition Camera Application Examples Using M1126

This article will use the MIPI camera-demo-6188 camera as an accessory for the M1126-EV-Board evaluation board. This camera supports 1 to 4 channels of serial camera input and 1 channel of MIPI CSI output, as shown in Figure 2.

High Definition Camera Application Examples Using M1126

Figure 2 MIPI camera-demo-6188 Camera Accessory

The nvp6188 supports two resolutions: 1920×1080 and 1280×720, with a default of 1920×1080. You can set the resolution using the following commands:

$ media-ctl -vvv -d /dev/media0 --set-v4l2 '"m01_b_nvp6188 3-0030":0[fmt:YUYV8_2X8/1280x720]'$ media-ctl -vvv -d /dev/media0 --set-v4l2 '"m01_b_nvp6188 3-0030":0[fmt:YUYV8_2X8/1920x1080]'
You can use the following command to preview the image on the board:
$ gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV12,width=1280,height=720,framerate=25/1 ! queue ! videoconvert ! waylandsink

The preview image is shown in Figure 3:

High Definition Camera Application Examples Using M1126
Figure 3 M1126&NVP6188 Preview Image

The preview image requires a screen. When the AHD analog camera is not connected, the output will show the test color bar from the nvp6188. If the AHD analog camera is connected, the camera image should be seen under normal conditions. The corresponding 4 video device nodes for the nvp6188 are: /dev/video0, /dev/video1, /dev/video2, /dev/video3.

If no screen is connected, you can also record video data and then copy it to a PC for playback:

$ v4l2-ctl -d /dev/video1 --set-fmt-video=width=1920,height=1080,pixelformat=NV12 --stream-mmap=5 --stream-skip=3 --stream-to=/userdata/myvideo.nv12 --stream-count=250 --stream-poll # dffplay -i myvideo.nv12 -f rawvideo -pixel_format nv12 -s 1920x1080 /* Execute in Ubuntu terminal */
High Definition Camera Application Examples Using M1126 Technical Exchange Group
Long press to recognize the following QR code to join the “Industrial Control Board/Core Board Technical Exchange Group“, to communicate with like-minded friends, and have professional technical personnel to answer your questions. If you have any questions, you can consult Xiaozhi WeChat: zlgmcu-888.
High Definition Camera Application Examples Using M1126

High Definition Camera Application Examples Using M1126

High Definition Camera Application Examples Using M1126

High Definition Camera Application Examples Using M1126
High Definition Camera Application Examples Using M1126
High Definition Camera Application Examples Using M1126
High Definition Camera Application Examples Using M1126
High Definition Camera Application Examples Using M1126
High Definition Camera Application Examples Using M1126

Leave a Comment

×