element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Problem with Aptina MT9M034 camera
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 6 replies
  • Subscribers 393 subscribers
  • Views 876 views
  • Users 0 members are here
  • problem
  • aptina
  • mt9m034
  • cam
  • sensor
  • aptina_imaging
Related

Problem with Aptina MT9M034 camera

Former Member
Former Member over 10 years ago

Hi everyone!

 

I'm having trouble with this chip MT9M034 from Aptina, I can communicate with it perfectly through I2C, set its registers, PLL, clock, etc. But the signs on the parallel bus and "FRAME_VALID" and "LINE_VALID" are dead. Just de PIXEL_CLOCK signal is working, and in the exactly frequency that I configured.


I've tried various registers settings and nothing happens, anyone can tell me if these Aptina chip have some trick to work? I'm about to give up, maybe I have damaged the chip while I was welding it on the PCB board image

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 10 years ago +1
    Here is a solution to your question - Yes, unlike other sensors, the default settings on the registers do not produce the required signals. And, after you set the registers in an intuitive way the following…
Parents
  • Former Member
    0 Former Member over 10 years ago

    Here is a solution to your question -

    Yes, unlike other sensors, the default settings on the registers do not produce the required signals.  And, after you set the registers in an intuitive way the following signals are still not active:  FRAME_VALID, LINE_VALID, DOUT[11..0].

     

    The following are the minimum set of registers that I have found that will activate the outputs (all in hex):

    Note - I am bypassing the PLL and just using the external clock (register 0x30B0), but the PLL works fine if you want to program it too.

    Note - The most unintuitive issue is that register 0x309E does not default to 0x0000 like it is supposed to.  Instead it defaults to 0x0196.  This appears to be the main reason there are no outputs from the part in its default settings.

     

    0     : Data at address 309E
    2     : Data at address 3002
    0     : Data at address 3004
    3C1     : Data at address 3006
    4FF     : Data at address 3008
    5300     : Data at address 30B0
    10DC     : Data at address 301A

     

    The following sequence is another minimum set of registers that will produce an output:

     

    58     : Data at address 301A
    2000     : Data at address 304C
    60     : Data at address 304A
    2     : Data at address 3002
    0     : Data at address 3004
    3C1     : Data at address 3006
    4FF     : Data at address 3008
    5300     : Data at address 30B0
    10DC     : Data at address 301A

     

    And, the following is a better set of registers that include:

    1. Setting 0x309E to the default of address of 0x0000 to get the outputs to work.

    2. Bypasses the PLL.

    3. Sets for 1280x960.

    4. Sets the pedestal up so that you do not have long strings of 0xA if you operate in 8 bit mode which caused problems.

    5. Turns the embedded data off which was showing up in the image on the first two lines of the active area.

    6. Sets up the row and column noise corrections.  

    7. Activates the parallel outputs and enables streaming.

     

    0     : Data at address 309E
    2     : Data at address 3002
    0     : Data at address 3004
    3C1     : Data at address 3006
    4FF     : Data at address 3008
    5300     : Data at address 30B0
    B8     : Data at address 301E
    1802     : Data at address 3064
    404     : Data at address 3044
    E007     : Data at address 30D4
    8     : Data at address 30BA
    11DC     : Data at address 301A
    11D8     : Data at address 301A
    10DC     : Data at address 301A

     

    The sensor works pretty well once you get past what is required to get it to output the required signals.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Former Member
    0 Former Member over 10 years ago

    Here is a solution to your question -

    Yes, unlike other sensors, the default settings on the registers do not produce the required signals.  And, after you set the registers in an intuitive way the following signals are still not active:  FRAME_VALID, LINE_VALID, DOUT[11..0].

     

    The following are the minimum set of registers that I have found that will activate the outputs (all in hex):

    Note - I am bypassing the PLL and just using the external clock (register 0x30B0), but the PLL works fine if you want to program it too.

    Note - The most unintuitive issue is that register 0x309E does not default to 0x0000 like it is supposed to.  Instead it defaults to 0x0196.  This appears to be the main reason there are no outputs from the part in its default settings.

     

    0     : Data at address 309E
    2     : Data at address 3002
    0     : Data at address 3004
    3C1     : Data at address 3006
    4FF     : Data at address 3008
    5300     : Data at address 30B0
    10DC     : Data at address 301A

     

    The following sequence is another minimum set of registers that will produce an output:

     

    58     : Data at address 301A
    2000     : Data at address 304C
    60     : Data at address 304A
    2     : Data at address 3002
    0     : Data at address 3004
    3C1     : Data at address 3006
    4FF     : Data at address 3008
    5300     : Data at address 30B0
    10DC     : Data at address 301A

     

    And, the following is a better set of registers that include:

    1. Setting 0x309E to the default of address of 0x0000 to get the outputs to work.

    2. Bypasses the PLL.

    3. Sets for 1280x960.

    4. Sets the pedestal up so that you do not have long strings of 0xA if you operate in 8 bit mode which caused problems.

    5. Turns the embedded data off which was showing up in the image on the first two lines of the active area.

    6. Sets up the row and column noise corrections.  

    7. Activates the parallel outputs and enables streaming.

     

    0     : Data at address 309E
    2     : Data at address 3002
    0     : Data at address 3004
    3C1     : Data at address 3006
    4FF     : Data at address 3008
    5300     : Data at address 30B0
    B8     : Data at address 301E
    1802     : Data at address 3064
    404     : Data at address 3044
    E007     : Data at address 30D4
    8     : Data at address 30BA
    11DC     : Data at address 301A
    11D8     : Data at address 301A
    10DC     : Data at address 301A

     

    The sensor works pretty well once you get past what is required to get it to output the required signals.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 9 years ago in reply to Former Member

    Thanks a lot! Setting 0x309e to 0 solved my problem that was the same. All other things work fine.

     

    It's quite a shame having not the default value in the chip. Above all because the register is something like an undocumented internal one.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • 100asdf
    0 100asdf over 6 years ago in reply to Former Member

    Dear All, could someone help me how to make reset and standby pins operate ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube