Camera for iMX6UL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Camera for iMX6UL

Jump to solution
5,559 Views
almarto
Contributor IV

Dear all,

I would like to add a camera as a new interface to the imx6ulevk for demonstration purposes.

I have been reviewing the documentation (IMX6ULEVKHUG) and some threads in the community () Camera module for iMX6UL-EVK  but haven't been able to find a solution.

I can not find anyway to buy the CMOS module and don't know how to go on.

There are lot of modules that use a 24-pin connector with MIPI interface for video data (instead of parallel, as in the imx6ulevk) and I wonder whether it is possible to use any of them ... could anybody at NXP suggest where to buy the recommended module (at Verical it is not available) or propose a solution based on how to adapt any existing module to the kit?

Thank you very much for your kind cooperation.

BR

Labels (3)
1 Solution
2,225 Views
art
NXP Employee
NXP Employee

Seems that the recommended module is temporarily out of stock, but you can place a back order for it, for example at Arrow:

https://www.arrow.com/en/products/ov05640-mrfl-aa0s/omnivision-technologies

The i.MX6UL processor only supports 8-bit parallel Digital Video Port interface, not MIPI.

Anyway, you have to use the Hirose FX12B-40S-0.4SV connector to adapt any sensor to the i.MX6UL EVK board.


Have a great day,
Artur

View solution in original post

13 Replies
2,225 Views
matifineschi
Contributor I

Hi Alvaro, this camera is also compatible with the module, but you will need to build a custom cable or adaptor (if it's not pin compatible, the signals are the same though).

Camera Module - pcDuino V3 (5MP) - SEN-13249 - SparkFun Electronics

Besides this, how are you planning to get the images from the camera.

Is there any software module for it?

Have you finally made it work?

Regards,

0 Kudos
2,225 Views
almarto
Contributor IV

Hi Matias,

I was considering to buy the module that you mention, but I finally decided to buy a similar one which I think is also compatible:

5MP: OV5640 | Arduino Based Camera

I will begin to work with it as soon as I will receive it.

Regarding your technical questions, I have no previous experience dealing with linux, cameras and video and, so, have no idea where to begin with ....

Could anybody at FSL/NXP guide us on how to begin with?

BR

0 Kudos
2,225 Views
matifineschi
Contributor I

Great! Let's be in touch and see how it goes.

I'll start next week too.

0 Kudos
2,225 Views
LuisCasado
NXP Employee
NXP Employee

Hello,

You can use gstreamer to play with the camera sensor.

You need to use the csi enable device tree file: imx6ul-14x14-evk-csi.dtb

And then use gstreamer, for example, to put the camera image into display:

gst-launch-1.0 imxv4l2src device=/dev/video1 ! imxv4l2sink

or with caps:

gst-launch-1.0 -v imxv4l2src device=/dev/video1 ! "video/x-raw, format=(string)YUY2, width=(int)640, height=(int)480, framerate=(fraction)15/1" ! imxv4l2sink

You could process the image with opencv, etc... Camera will be a standard V4l device.

Luis

2,225 Views
Danube
Contributor IV

Hi

0 Kudos
2,225 Views
LuisCasado
NXP Employee
NXP Employee

Hi,

Any of them. Better the latest.

Luis

0 Kudos
2,225 Views
Danube
Contributor IV

Hi

I using 3.14.52_110 to test it.

It don't see and "imxv4l2src" and "imxv4l2sink" in gst-inspect-0.10 and gst-inspect-1.0

root@imx6ulevk:/# gst-inspect-0.10 | grep "imx"

root@imx6ulevk:/# gst-inspect-1.0 | grep "imx"

And OV5640 driver already mount. (/dev/video0)

root@imx6ulevk:/# lsmod

Module                  Size  Used by

mx6s_capture           14577  0

ov5640_camera          20096  0

evbug                   1875  0

Could you please check again ?

0 Kudos
2,225 Views
LuisCasado
NXP Employee
NXP Employee

Hello,

Gtsreamer-0.10 is not supported anymore. You should use gstreamer-1.0.

What image are you building? Does it include FSL codecs?

Luis

0 Kudos
2,225 Views
Danube
Contributor IV

Hi

3.14.52_110 BSP

My command

DISTRO=fsl-imx-x11 MACHINE=imx6ulevk source fsl-setup-release.sh -b 20151218_imx6ulevk_build-x11-qt5

bitbake fsl-image-qt5

Apollo Chang.

0 Kudos
2,224 Views
LuisCasado
NXP Employee
NXP Employee

Hello Apollo Chang

I have it in the same QT image:

root@imx6ulevk:~# gst-inspect-1.0 | grep 'imx'

beep.imx: ac3: [Invalid UTF-8] \x80z\xb9s

beep.imx: 3ca: [Invalid UTF-8] \x80z\xb9s

beep.imx:  beepdec: Beep universal decoder

imxv4l2.imx:  imxv4l2sink: IMX Video (video4linux2) Sink

imxv4l2.imx:  imxv4l2src: IMX Video (video4linux2) Source

imxcompositor.imx:  imxcompositor_pxp: IMX pxp Video Compositor

imxvideoconvert.imx:  imxvideoconvert_pxp: IMX pxp Video Converter

aiur.imx: webm: [Invalid UTF-8] \x0c\xf2\xa2t

aiur.imx:  aiurdemux: Aiur universal demuxer

imxmp3enc.imx:  imxmp3enc: imx mp3 audio encoder

Try to add:

IMAGE_INSTALL_append = " gst1.0-fsl-plugin" in your conf/local.conf

Luis

2,224 Views
Danube
Contributor IV

Hi

0 Kudos
2,226 Views
art
NXP Employee
NXP Employee

Seems that the recommended module is temporarily out of stock, but you can place a back order for it, for example at Arrow:

https://www.arrow.com/en/products/ov05640-mrfl-aa0s/omnivision-technologies

The i.MX6UL processor only supports 8-bit parallel Digital Video Port interface, not MIPI.

Anyway, you have to use the Hirose FX12B-40S-0.4SV connector to adapt any sensor to the i.MX6UL EVK board.


Have a great day,
Artur

2,224 Views
almarto
Contributor IV

Thank you very much Artur.

Happy New Year!

BR

0 Kudos