Forum: FPGA, VHDL & Verilog DE0nano + OV7670 - managed to get image but its weird

Author: Szymon Szymonowski (Company: Student) (imekxus)
Posted on:
Attached files:

Rate this post
0 useful
not useful
Im having problems, trying to interface OV7670 with my de0 nano using 
this project: 
After few days of trying im getting images, VIDEO:
- 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 =(
Have anyone been doing this project on his fpga? (i have included my 
quartus files as attachment) - any ideas what might be the cause of 
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).
Also in attachments ive added a screenshoot of TOP of the project (made 
it in brd because wanted it to be more clear in reading than just only 
vhdl files).

Author: Szymon Szymonowski (Company: Student) (imekxus)
Posted on:

Rate this post
0 useful
not useful
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 

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?)

: Edited by User


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig