Skip to main content
jeno
Associate II
July 21, 2013
Question

STM32F4Discovery + DCMI + OV7660 (OV7670)

  • July 21, 2013
  • 20 replies
  • 4841 views
Posted on July 21, 2013 at 18:42

The original post was too long to process during our migration. Please click on the attachment to read the original post.
    This topic has been closed for replies.

    20 replies

    Tesla DeLorean
    Guru
    July 22, 2013
    Posted on July 22, 2013 at 22:19

    Not much into cameras and DCMI, but the screen shot seems to suggest you have the horizontal scan settings wrong, and not a multiple of the actual pixel count.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    jeno
    jenoAuthor
    Associate II
    July 31, 2013
    Posted on July 31, 2013 at 08:53

    Thank you for the suggestion! I managed to get picture from the camera, the fault was in the python script, the picture resolution. But now I have another problem, the left side of the picture is black, but not solid black (maybe sensor problem?) and the resolution from the sensor seems to be not correct.

    0690X00000602kwQAA.jpg

    Tesla DeLorean
    Guru
    July 31, 2013
    Posted on July 31, 2013 at 17:31

    Look at horizontal blanking, and sync settings, or perhaps those for the front/back porch on the horizontal line signal.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    jeno
    jenoAuthor
    Associate II
    August 1, 2013
    Posted on August 01, 2013 at 08:57

    I found out, that if I didn't change the resolution from the default 640*480 there is no black line, and the resolution is also ok. When I change the resolution to cif I receive 2 picture in 640 pixel width side-by-syde with black line. Maybe the camera did not crop the image, and sends windowed picture? The second attached picture's resolution is ok if I widen it to 2 picture.

    I'll try to crop it with DCMI.

    jeno
    jenoAuthor
    Associate II
    August 3, 2013
    Posted on August 03, 2013 at 13:29

    The problem was with hstart hstop registers. I corrected them, and the image is fine now. Thank you for your help!

    muhammet
    Associate II
    August 14, 2013
    Posted on August 14, 2013 at 10:53

    Can you send true form of code.

    yesil_kaya76
    Associate
    August 15, 2013
    Posted on August 15, 2013 at 14:53

    i will be happy if can you send your true code. thanks 0690X0000060Mm9QAE.gif

    Tesla DeLorean
    Guru
    August 15, 2013
    Posted on August 15, 2013 at 18:16

    What's the relationship between you two?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    yesil_kaya76
    Associate
    August 16, 2013
    Posted on August 16, 2013 at 14:43

    we are working at alike project

    ngochoibk13
    Visitor II
    November 18, 2013
    Posted on November 18, 2013 at 03:13

    Kocsis.jeno,can you send me the correct code? thank....