Sorry, you need to enable JavaScript to visit this website.

Adding a 640x480 camera to your Zedboard

Unsolved
24 posts / 0 new
hamster's picture
hamster
Junior(0)
Adding a 640x480 camera to your Zedboard

Hi all.

I've adapted a low-cost VGA camera module to interface with the Zedboard over PMODA and PMODB. About $15 worth of hardware and no soldering to give your Zedboard eyes!

As the PL has four PMODs you should even be able to give it stereo vision.

It is currently showing a picture on the Zedboards Analogue VGA out, but I want to test and polish it just a little more before I release the code - tweak some of the camera's registers values and so on.

I've added a community project, and will put the code up as soon it is ready. If in the short term you would like the code, just email or message me.

Kind regards

Mike

Mangibu's picture
Mangibu
Junior(0)
This is a very interesting

This is a very interesting project. Thanks for sharing.
Michael

cgabri's picture
cgabri
Junior(0)
AXI bus

Are you also developing a module to transfer the image to DDR memory via AXI HP ?

hamster's picture
hamster
Junior(0)
An update on the project

The project is pretty much complete - I would like to add a way to store the image in the DDR memory, but that is beyond my skills at the moment.

I've also discovered that the cameras I am using do not have infra-red filters, so the colours are all mixed up.

Also, although the cameras are 640x480 on a 25MHz clock they are only 30 frames per second, as a pixel requires two clocks to transfer.

hamster's picture
hamster
Junior(0)
A big thanks to Chris WIlson...

Chris put in the time to work out what was wrong with the colours, and has produced an excellent result (see sample on project page at http://hamsterworks.co.nz/mediawiki/index.php/Zedboard_OV7670).

I'll updated the project archive as soon as I get a chance, but for now the updated source is available on the page too.

Mike

roman3017's picture
roman3017
Junior(0)
zedboard ov7670 + zedboard hdmi

i have combined these two projects of yours. got it working but quality is rather low. are you planning to display camera over hdmi in the future?

hamster's picture
hamster
Junior(0)
zedboard ov7670 + zedboard hdmi

I would like to, but I don't really have the time/need to build the skills required to store the frame buffer in DDR memory...

Maybe one day when I have more time on my hands!

shrivats001's picture
shrivats001
Junior(0)
zedboard ov7670 + zedboard hdmi

Hi
I have used Zedboard Ov7670 project successfully. I want to use the Zedboard Hdmi project along with the Zedboard Ov7670. Can u please help me to merge both. It will be helpful for my Master's project. Any changes required to be done in the vhdl part for the camera interface in zedboard and hdmi display.
Please guide me. Thanks
My email id is shrivats001@e.ntu.edu.sg

hamster's picture
hamster
Junior(0)
Got a PCB made.

I've made a little PCB to mate the camera module to the PMODs. The minimum order was 10, so I have a few left over. If you would like the bare PCB send me an email (hamster at snap dot net dot nz).

If you want I can also send you the design files - it cost me US$15 to get 10 PCBs made.

rem870's picture
rem870
Junior(0)
convert usb to pmod

hi
can you explain how can i attach a usb camera to a pmod.
or if is possible to use the micro usb to connect the camera directly to zedboard

Umair.razzaq's picture
Umair.razzaq
Junior(0)
usb camera interface

have you found any answer to your question coz i am also for somehting similar i.e usb camera interfaced to zedboard.

hamster's picture
hamster
Junior(0)
How to connect the camera.

Check out the picture at the top of http://hamsterworks.co.nz/mediawiki/index.php/Zedboard_OV7670. I am just using wire jumpers, and some male/male pins that came with a PMOD.

I do have a PCB I made up, which is a much better idea. The PCB design files are on the web page too. It cost me US$10 to get ten boards made.

daynekemp's picture
daynekemp
Junior(0)
vivado project

Hi. Has anyone successfully implemented this project in Vivado? Please message me if you have. Thanks.

anorster's picture
anorster
Junior(0)
640x480

I grabbed the project and ported it to Vivado but now I'm wondering how did you ever have 640x480 working? There isn't enough BRAM in the Zedboard to store the whole image(256k rather than the necessary ~307k), so it throws an error.

akp21041991's picture
akp21041991
Junior(0)
what is capturing frequency

what is capturing frequency of camera ov7670?

akp21041991's picture
akp21041991
Junior(0)
work of btnc in code

work of btnc in code

lozuwa's picture
lozuwa
Junior(0)
I cannot get the right colors

Hello everyone, i am currently trying to work with the camera. The program showed in the hamsterworks page does work. But the colors are not okay. Does anybody know how to fix it? Help is appreciated.

tomsld's picture
tomsld
Junior(0)
Camera config

Something is wrong with camera configuration in the last project version. Signal "config_finished" never reaches logic one.

delfy's picture
delfy
Junior(0)
How about high speed camera

Dear Michael,
Can we use PMOD interface to capture high speed video? about 100fps.

Thanks,

hazzaz's picture
hazzaz
Junior(0)
Adding a 640x480 camera to your Zedboard using simulink.

Hello Mike,
Can your project also be done in matlab simulink? If yes, then how Can pmod be configured for this?

biomaynard's picture
biomaynard
Junior(0)
constraints format is not supported on vivado

hello all
anyone got it to work on vivado? the ucf file is not supported and i get errors.
Although i couldnt get it to work on ise either.
could anyone here share his working project and the version of vivado/ise used

thanks
any suggestions are deeply appreciated

mmdsaifudn's picture
mmdsaifudn
Junior(0)
zedboard ov7670

friends,When I tried it,It can't simulate it since it showing many problems...
will any one provide me [as email (mmdsaifudn@gmail.com) or here] the steps to use hamster's files..
thanks...

BEN RHOUMA's picture
BEN RHOUMA
Junior(0)
implémenting a ov7670 on ZedBord

Hello Friends
I'm trying with the OV7670 and ZedBoard on an academic Project, and I'm having some problems to turn on the hall project, could some one please send me a mail explaining me the steps that i need to follow in order to get into a result at the end.
i'm working with the project that i find on : http://hamsterworks.co.nz/mediawiki/index.php/Zedboard_OV7670#The_full_p...
my mail is benrhoumayacine@gmail.com
Thanks...

JFoster's picture
JFoster
Moderator(48)
Hi BEN,

Hi BEN,

I am going to suggest that you ask your question over at Digilent as they are the main contact for educational support.

Thanks,

Josh