FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5892 Discussions

DE0-nano - interface OV7670 and VGA monitor

Altera_Forum
Honored Contributor II
2,149 Views

Hello 

I'm having hard times finding how to interface 18 pin OV7670 with DE0-nano board, ive managed to print something (red square) on monitor, but i cant even move with camera. If You guys know anything about my issue please response :D 

 

Imekxus 

 

@edit 

and yes, ive checked google, ive stuck for 2 days now, wasting a lot of time wouthout even making a little step ;/
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
1,065 Views

By the way, i cant see my first post so im writing it again: 

"Hello I'm having hard times finding how to interface 18 pin OV7670 with DE0-nano board, ive managed to print something (red square) on monitor, but i cant even move with camera module, if you know anything about my issue please answer 

 

Imekxus 

 

and yes, ive searched google for 2days now, havent even made a little step ;/"
0 Kudos
Altera_Forum
Honored Contributor II
1,065 Views

Hi, 

I searched the OV7670 and found the web page regarding OV7670,but I am not quite sure on which board he used 

http://www.codeforge.com/article/237099 

 

Hope this will help.
0 Kudos
Altera_Forum
Honored Contributor II
1,065 Views

This didnt help at all because i have to get some weird points to download from that site... 

 

edit 

Ive managed to get following images: https://youtu.be/_uttmrgzhea 

Problems: 

- i have to reapply ov7670 registers setup after uploading it to device (it should be also done after startup); 

- colours are terrible, almost cant see anything; 

- resolution should be like 640x480 but after a while after upload solid colors appear at the bottom of the screen (can see it in video), moreover when im moving camera around some of the bottom pixels are changing too =( 

 

Here is screenshoot of my top file (in brd to be more clear than only vhdl files): 

http://www.alteraforum.com/forum/attachment.php?attachmentid=12838&stc=1  

And design files are atteched. 

My RGB DAC is 5bits per color so im using only the oldest bits for colors (i have RGB 332, so im using 3 oldest bits of red, 3 oldest of green and 2 oldest of blue, rest are set to '0' (LSB's).
0 Kudos
Altera_Forum
Honored Contributor II
1,065 Views

Ok little improvement comparing to previous version, now borders are looking better than before and images are much more stable (can even read letters from calculator :D), now colors are the issue and registers setup, my predictions are that something in controller is not working properly. 

https://youtu.be/i4o3kaw0pjy 

 

edit 

ahh and what ive done to improve image: ive moved ground ov7670 pin from GPIO pin that was set to GND by gnd symbol in quartus to real gnd pin next to 3V3 power supply pin O.o (anyone know why this helped so much?)
0 Kudos
Altera_Forum
Honored Contributor II
1,065 Views

Hello Imekxus 

Did you finish the interface? I would like to do the same and I need some advice 

 

Thanks in advance
0 Kudos
Reply