Difference between revisions of "MT9M111"

From ArmadeusWiki
Jump to: navigation, search
(New page: MT9M111 is an xxx 1,3 Mpixels sensor that can be found in the following commercial camera modules: * * ==Connecting the XXX module to the APF27== * ===Description=== * CSI port (8 bit...)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
MT9M111 is an xxx 1,3 Mpixels sensor that can be found in the following commercial camera modules:
+
MT9M111 is an Aptina 1,3 Mpixels sensor that can be found in the following commercial camera modules:
*  
+
* http://www.elechouse.com/elechouse/index.php?main_page=product_info&cPath=168_169&products_id=804
*  
+
* other ?
  
 
==Connecting the XXX module to the APF27==
 
==Connecting the XXX module to the APF27==
Line 12: Line 12:
  
 
===Adaptation board===
 
===Adaptation board===
* (Preliminary) Schematics and layouts (for [http://kicad.sourceforge.net/wiki/index.php/Main_Page KiCAD]) of an APF27 adaptation board are available [http://dl.free.fr/opT0rvWWZ here].
+
* (Preliminary) Schematics and layouts (for [http://kicad.sourceforge.net/wiki/index.php/Main_Page KiCAD]) of an APF27 adaptation board are available [here].
[[Image:22T1_adapt.png|center|thumb|600px|]]
+
[[Image:MT9M111_adapt.png|center|thumb|600px|]]
  
 
{|border=0 summary=""
 
{|border=0 summary=""
 
|---
 
|---
[[Image:camera_system_with_22T1_adapt_pluggedin.jpg|thumb|320px|Camera system with 22T1 and LCD]]
+
[[Image:apf27dev_with_MT9M111_adapt_pluggedin.jpg|thumb|320px|APF27Dev with MT9M111 camera and LCD]]
 
||
 
||
[[Image:22T1_adapt_pluggedin.jpg|thumb|320px|22T1 montage (I2C cable: Green on J8 pin 8 and Blue on J8 pin 10)]]
+
[[Image:MT9M111_adapt_pluggedin.jpg|thumb|320px|MT9M111 montage (I2C cable: Green on J8 pin 8 and Blue on J8 pin 10)]]
 
|---
 
|---
 
|}
 
|}

Latest revision as of 19:04, 21 January 2014

MT9M111 is an Aptina 1,3 Mpixels sensor that can be found in the following commercial camera modules:

Connecting the XXX module to the APF27

Description

  • CSI port (8 bits data + 4 bits control signals) is used to transmit images. (10 bits mode not usable on i.MX). These signals are available on the APF27Dev J9 connector (2,5V logic).
  • I2C bus is used to configure the sensor. This bus is available on the APF27Dev J8 connector.
  • Sensor core/IO power supply (2,5V) comes directly from J9 2,5V.

Adaptation board

  • (Preliminary) Schematics and layouts (for KiCAD) of an APF27 adaptation board are available [here].
File:Apf27dev with MT9M111 adapt pluggedin.jpg
APF27Dev with MT9M111 camera and LCD
File:MT9M111 adapt pluggedin.jpg
MT9M111 montage (I2C cable: Green on J8 pin 8 and Blue on J8 pin 10)

Usage

  • Bring module out of powerdown by driving SSI3_TX (pin 30 of port C) & SSI3_CLK (pin 31 of port C) as GPIOs (through GPIOlib):
echo 94 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio94/direction
echo 0 > /sys/class/gpio/gpio94/value; usleep 100000
echo 95 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio95/direction
echo 0 > /sys/class/gpio/gpio95/value; usleep 100000
  • Load corresponding drivers:
# modprobe mx27_camera
Linux video capture interface: v2.00
mx27-camera mx27-camera.0: initialising
mx27-camera mx27-camera.0: Camera clock frequency: 33250006
mx27-camera mx27-camera.0: Using EMMA

# modprobe mt9m111
camera 0-0: Camera driver attached to camera 0
mx27-camera mx27-camera.0: mclk_get_divisor not implemented. Running at max speed
camera 0-0: Detected a MT9M11x chip ID 143a
camera 0-0: Camera driver detached from camera 0

Test

  • You can then use Armadeus "capture" demo tool to get images from the camera.
  • First time you will have to set the camera module registers correctly (not done by the driver yet) by using a custom script ov9653_regs.sh available [here]. Here is how to proceed:
# capture & usleep 400000 ; ./ov9653_regs.sh

Links