cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 Discovery OV9655 Color Problem.

ferhatyol-23
Senior
Posted on March 11, 2014 at 11:36

The original post was too long to process during our migration. Please click on the attachment to read the original post.
7 REPLIES 7
ferhatyol-23
Senior
Posted on March 12, 2014 at 21:57

Hi.

Do not anyone's idea?
Posted on March 13, 2014 at 03:16

Do not anyone's idea?

Evidently, do you not understand how forums work? Honestly there aren't that many people attaching this camera, to this display, on this board. Even fewer on the forum and participating.

You'll likely need to decompose the problem into smaller pieces, and verify that each of those pieces is functioning in the manner your expect, and with a data format that is compatible throughout.

So isn't the format you've chosen a 14-bit mode? How does the camera send that? Is the way the camera sends the data coherent with the way the display expects to receive the data?

What if you capture the data and analyze it on a PC. Does the data look correct, is the byte/bit formatting and alignment right? Do you have a test bitmap in the correct format for the display that you can send to the screen? Does that look right?

If the data formats are not immediately compatible you might have to transcode from one to the other in order to display the image as desired.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ferhatyol-23
Senior
Posted on March 13, 2014 at 11:26

clive1 Sorry

I can not understand forum yet. I'm a new member. 

I am sending a picture to the LCD. Picture looks correctly in the LCD.

In the camera, I see only red and blue primary color. Looks to be purple or pink a white colors. 

I think have problems in green color. Green colors will never appear or little seems.

How can I test the camera on the PC?

Regards

Mucit23

frankmeyer9
Associate II
Posted on March 13, 2014 at 12:54

Obviously, the camera sends another colour format than your picture is encoded in.

In other words, you need to reshuffle the camera to the correct format/encoding.

Posted on March 13, 2014 at 17:13

I can not understand forum yet. I'm a new member.

This is a truth for all forums, the pool is pretty shallow, the lack of any response is feedback in-and-of itself.

How can I test the camera on the PC?

I'm not telling you to test the camera on a PC, I'm telling you to take the frame(s) you capture on the STM32, and analyze that data on a PC, and confirm the colour data matches the format you expect, and the one the display needs. Use the debugger to read a region of memory out to a file on the PC side, or use a USART to transmit it, or any number of other methods.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
michaelmccartyeng
Associate II
Posted on March 16, 2014 at 02:15

Hello All,

  think I might be able to help with this one, least I hope.

PE 0/1 is tied into the accelerometer interrupt on the stm32 discovery board. So if you are using them in your camera this will not work. I had the same issue and it took me over a year to solve ! In short change the pe 0 and 1 to c8 and c9. You can read my post for more info.

https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=https%3a%2f%2fmy.st.com%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fSTM32Discovery%2fDCMI%20ov2640%20JPEG%2c%20not%20working&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F...

ferhatyol-23
Senior
Posted on March 18, 2014 at 20:55

Hello 

Thank you for your answer. I solved the problem. Ov9655 had problems in the setup settings. 

Camera is working now. 

Here's the test video 

http://www.youtube.com/watch?v=z7-FOgELcbE