Difference between revisions of "DIGILENT MIPI-CSI Camera Set"
Jump to navigation
Jump to search
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | [[Category:iMX93 Industrial Development Kit]] | ||
[[Category:iMX8M Industrial Development Kit]] | [[Category:iMX8M Industrial Development Kit]] | ||
[[Category:iMX8M Industrial Peripherals]] | [[Category:iMX8M Industrial Peripherals]] | ||
| Line 4: | Line 5: | ||
<div style="float:right">__TOC__</div> | <div style="float:right">__TOC__</div> | ||
| − | + | [[image:Pcam-5C.png|800px]]<br /> | |
| − | + | Digilent Pcam 5C is a MIPI-CSI interface, 5 MP Fixed-Focus color camera connected to iMX Development Baseboard | |
| − | |||
| + | |||
| + | == Kernel detection == | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
| − | root@ | + | root@imx93-voipac:~# dmesg | grep ov56 |
[ 2.383324] ov5640_mipi 1-003c: No pin available | [ 2.383324] ov5640_mipi 1-003c: No pin available | ||
[ 2.387976] ov5640_mipi 1-003c: No sensor pwdn pin available | [ 2.387976] ov5640_mipi 1-003c: No sensor pwdn pin available | ||
| Line 23: | Line 25: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| + | == I2C detection == | ||
| + | <syntaxhighlight lang="bash"> | ||
| + | root@imx93-voipac:~# i2cdetect -y 1 | ||
| + | 0 1 2 3 4 5 6 7 8 9 a b c d e f | ||
| + | 00: -- -- -- -- -- -- -- -- -- -- -- -- -- | ||
| + | 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | ||
| + | 20: -- -- -- UU -- -- -- UU -- -- -- -- -- -- -- -- | ||
| + | 30: -- -- -- -- -- -- -- -- -- -- -- -- UU UU -- -- | ||
| + | 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | ||
| + | 50: -- UU -- UU -- -- -- -- -- -- -- -- -- -- -- -- | ||
| + | 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | ||
| + | 70: -- -- -- -- -- -- -- -- | ||
| + | root@imx8mq-voipac:~# | ||
| + | </syntaxhighlight> | ||
| − | + | ==Gstreamer== | |
| − | + | ===Capture single JPEG picture=== | |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
| − | root@imx8mq-voipac:~# gst-launch-1.0 v4l2src num-buffers=1 device=/dev/ | + | root@imx8mq-voipac:~# gst-launch-1.0 v4l2src num-buffers=1 device=/dev/video0 ! jpegenc ! filesink location=sample_image_digi.jpeg |
Setting pipeline to PAUSED ... | Setting pipeline to PAUSED ... | ||
Pipeline is live and does not need PREROLL ... | Pipeline is live and does not need PREROLL ... | ||
| Line 43: | Line 59: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| − | + | The image stored in local media with name sample_image_digi.jpeg | |
| − | + | ||
| + | ===Video preview=== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
| − | root@ | + | root@imx93-voipac:~# gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,framerate=30/1' ! autovideosink |
Setting pipeline to PAUSED ... | Setting pipeline to PAUSED ... | ||
Pipeline is live and does not need PREROLL ... | Pipeline is live and does not need PREROLL ... | ||
Setting pipeline to PLAYING ... | Setting pipeline to PLAYING ... | ||
New clock: GstSystemClock | New clock: GstSystemClock | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
[ 1576.002044] skip frame 1 | [ 1576.002044] skip frame 1 | ||
| Line 65: | Line 77: | ||
Setting pipeline to PAUSED ... | Setting pipeline to PAUSED ... | ||
Setting pipeline to READY ... | Setting pipeline to READY ... | ||
| − | |||
| − | |||
| − | |||
Setting pipeline to NULL ... | Setting pipeline to NULL ... | ||
Total showed frames (78), playing for (0:00:08.249372377), fps (9.455). | Total showed frames (78), playing for (0:00:08.249372377), fps (9.455). | ||
| Line 74: | Line 83: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| − | Video should be displayed on | + | Video should be displayed on lvds display |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Latest revision as of 08:14, 4 July 2025
![]()
Digilent Pcam 5C is a MIPI-CSI interface, 5 MP Fixed-Focus color camera connected to iMX Development Baseboard
Kernel detection
root@imx93-voipac:~# dmesg | grep ov56 [ 2.383324] ov5640_mipi 1-003c: No pin available [ 2.387976] ov5640_mipi 1-003c: No sensor pwdn pin available [ 2.393683] ov5640_mipi 1-003c: No sensor reset pin available [ 2.399479] ov5640_regulator_enable: cannot get io voltage error - err:-517 [ 3.018132] ov5640_mipi 1-003c: No pin available [ 3.033972] ov5640_mipi 1-003c: No sensor pwdn pin available [ 3.046488] ov5640_mipi 1-003c: No sensor reset pin available [ 3.062091] ov5640_mipi 1-003c: 1-003c supply DVDD not found, using dummy regulator [ 3.072436] ov5640_mipi 1-003c: 1-003c supply AVDD not found, using dummy regulator [ 4.325257] mxc-mipi-csi2_yav 30b60000.mipi_csi: Registered sensor subdevice: ov5640_mipi 1-003c [ 4.337288] ov5640_mipi 1-003c: Camera is found
I2C detection
root@imx93-voipac:~# i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- UU -- -- -- UU -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- UU UU -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- UU -- UU -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@imx8mq-voipac:~#
Gstreamer
Capture single JPEG picture
root@imx8mq-voipac:~# gst-launch-1.0 v4l2src num-buffers=1 device=/dev/video0 ! jpegenc ! filesink location=sample_image_digi.jpeg Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock [ 1023.907274] ov5640_mipi 1-003c: s_stream: 1 [ 1024.609769] skip frame 1 Got EOS from element "pipeline0".[ 1026.497200] ov5640_mipi 1-003c: s_stream: 0 Execution ended after 0:00:03.075026264 Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... Freeing pipeline ...
The image stored in local media with name sample_image_digi.jpeg
Video preview
root@imx93-voipac:~# gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,framerate=30/1' ! autovideosink Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock [ 1576.002044] skip frame 1 CAPTURE INTERRUPTION: [ 1582.847027] ov5640_mipi 1-003c: s_stream: 0 Execution ended after 0:00:08.249177743 Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... Total showed frames (78), playing for (0:00:08.249372377), fps (9.455). Freeing pipeline ...
Video should be displayed on lvds display