In “First Steps with the NXP i.MX RT1064-EVK Board” I mentioned that the board kit came with a camera module, but it was unclear to me which module was included in the kit. I know it now: it is the ON Semiconductor MT9M114 :-).
The MT9M114 is a camera module from ON Semiconductor with an image resolution of 1296×976 Pixels.
I searched the usual sellers, but that MT9M114 camera module is rather expensive (~$60 from Mouser).
That camera module reminded me that I had ordered weeks ago a OV7725 from Aliexpress. The OV7725 has an image resolution of 640×480 pixels and is available for less than $10 from Aliexpress or other sources.
This camera has a longer cable:
The i.MX RT1052 and RT1064 boards have a 24pin connector where the camera cable fits in:
💡 Be careful with the cable latch: it easily can be ripped of the connector.
The NXP MCUXpresso SDK includes two CSI (CMOS Sensor Interface) demos:
They need the LCD attached to the i.MX RT board. I had a LCD attached to my i.MX RT1052 board, but because it is very difficult to connect the LCD to the board, I decided not to move the LCD to the RT1064, but using the RT1052 instead.
Using the SDK examples, I was able to get the sensor which was included in the the RT1064 board kit working on the RT1052 board:
The camera is working, but the image is not very ‘crisp’ and kind of smoothed. But that might be a setting thing. The note in the NXP application note mentions that finding the correct settings can be very hard.
For getting the OV7725 camera to work, I had to change the driver. The camera type is configured in the demo using the APP_CAMERA_TYPE macro:
That worked with a more ‘crisp’ video, but the image had some ‘artifact lines’:
I’m not sure if this is because of the module (long cable?) or because the demo application does not configure things in an ideal way. Because I’m not sure if the long camera cable is affecting the image quality, I just ordered today another OV7725 module from AliExpress with a shorter cable:
Well, I have to try out that one if this makes it better (or not). And I have to see if I can tweak the settings for the OV7725 camera, as this one has a lower resolution, but is very cheap.
UPDATE: I finally have received that ä5.30 OV7725 camera from Aliexpress:
And indeed: with the shorter camera cable the image is better now:
As a result: use a camera with a short cable if possible to avoid image artefacts.
Happy Imaging 🙂
Links
- Developing a camera application with i.MX RT: https://www.nxp.com/docs/en/application-note/AN12110.pdf
- MT9M114 data sheet: https://www.onsemi.com/pub/Collateral/MT9M114-D.PDF
- OV7725 data sheet: https://cdn.sparkfun.com/datasheets/Sensors/LightImaging/OV7725.pdf
- First Steps with the NXP i.MX RT1064-EVK Board
- Adding a Rocktech Capacitive Touch LCD to the NXP i.MX RT1052 EVK
Hi, Etich!
Nice 1! Basing on your post it looks like it is soft artefacts – in 1st case you had blurred picture but no artifacts. And in both cases same length of cable was used.
LikeLike
the first picture (‘Image from the MT9M114’) was with the short cable and the
The one with the artifact (‘OV7725 Image’) is with the OV7725 and a longer cable.
But I kind of doubt that it is really the long cable/connection, probably more a camera setting thing.
LikeLike
Hi,
Very helpful post!
But I would like to ask you a question:
We are interested in developing a camera application based on the RT 1064 microcontroller.
Could you tell me whether the two camera modules, which are mentioned by you, are the only ones supported with necessary drivers etc.?
Because, sadly both doesn’t fulfil our requirements (especially regarding temperature range).
It would be great if you could help us out on this or if you could provide us with a link where we can find this information.
LikeLike
I think you can use any camera as long it is one of the supported types. The ones I have used are for normal temperature range, so this was fine for me. But I’m sure you could find a vendor which could provide you a higher rated one?
LikeLike
That’s exactly the point. How do I find out, which are the supported types?
I’m sorry, I’m quite new to this topic.
LikeLike
Check the board manual. It has a section about the cameras supported, e.g.
“i.MX RT1060 supports one parallel CSI (Camera Sensor Interface). There is a camera module connector (J35) on the MIMXRT1060 EVK board. The CA031C based on OV7725 and CA111C based on MT9M114 are used directly.”
I hope this helps,
Erich
LikeLike
Hi,
Can you provide the mouser or any vendor link to buy the MT9M114 camera module alone?
I am already having the MXRT1060 EVK kit, so please don’t suggest the NXP link to buy camera module along with EVK.
Thanks,
Sathish
LikeLike
Hi Sathish,
Search on mouser.com for MT9M114. You should be find the sensor chip plus eval boars using it (e.g. the Pixy). The sensor module as shown in the picture was listed, but seems be out of stock. If you want exactly that module, you might be able to find it from a different distributor.
LikeLike
Hi,
I am also searching MT9M114 module to purchase for SLN-VIZN-IOT KIT. I got a camera module in this link http://kailaptech.com/product.aspx?id=1383&l1=1381 Is it suitable for that kit? Could you share any purchase link?
LikeLike
Your link does not work for me. But you can go to http://www.mouser.com and search for MT9M114 and you should be able to find some modules.
LikeLike
The information, related to camera interface, is very very helpful. What about LCD interface ? Pls. help me, by providing part number of compatible LCDs with SPI interface for ION-VIZN-IOT vision board.
LikeLike
I don’t know such a ION-VIZN-IOT board, never used that, sorry.
LikeLike
Hi
Please refer this links for LCD with SPI interface for SLN-VIZN-IOT board
https://www.mikroe.com/riverdi-35-res
https://www.mikroe.com/riverdi-35-no-touch
LikeLike