Go Down

Topic: Any experience with OV7670 (Read 9486 times) previous topic - next topic

RandallR

Has anyone successfully interfaced an Arduino with an OV7670 or any of it siblings (OV7725, OV9650, OV2640, OV3640, OV5642).  It is my understanding that the interface is the same for all of them.

I am interested in using the Arduino to grab periodic frames (every second, minute, or hour) and saving them to an SD card.

My hope is that I can use a cheap camera and SD card interface to do it all.

CrossRoads

Got links to any specs?

That SD card appears to have its own 3.3V regulator, which is good, but then use resistor voltage dividers for the control & data lines, which could be problematic with newer, higher speed SD cards.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

RandallR

How did you interface the Camera to the Arduino?

CrossRoads

I have not seen that camera before, hence the request to a link for its spec.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

niko37

Hello,

i know this thread is old, but there were no satisfying reply and I'm in the same situation.

I got an Arduino mega2560 and a OV7670 camera module.

I hooked it up correctly (at least I think I did) for I2C communication.

Despite many trials, I can't successfully read the camera registers. I don't know what I'm doing wrong but here are some hunches:

- The integrated pull up of the arduino pull the I2C lines to 5V when the camera works with 3.3V. So maybe I burnt it?
- The address of the device is 42/43 according to the datasheet. It doesn't say if it's hex or not, although i've tried both. I've also tried without the MSB because the wire.h lib uses only 7bit address
- My code sequence is bad. I couldn't find any example with this module and an arduino on google

Has anyone succeeded in using one of these modules?

Thank you


AWOL

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

niko37

Ha sorry, here it is:
http://www.cutedigi.com/pub/sensor/Imaging/OV7670-Datasheet.pdf

Habibi

Hi. I bought same hardware and want to do same things (grab frames and save it to sd card). Anybody did it? Can't find information in web. Please help

Habibi


AWOL

The data sheet says the device has a minimum clock speed of 10MHz.
It isn't a device I'd choose to interface to a slow processor with limited memory.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

ardufans

Hi RandallR,
This is exactly what you are needed.


http://www.arducam.com/
They have tutorial here:
http://www.arducam.com/tutorial/
The firmware source code is here:
http://www.arducam.com/download/

RandallR

This may be a solution.  I will look at it some more.

However, it seems to be over-kill.  The interface board costs more than the Arduino and camera combined.  I was hoping to keep the cost much lower.

It may be that a solution does not exist with an Arduino and OV7670.  The solution may be with a Raspberry Pi and a cheap web-cam.  The Raspberry Pi costs about twice as much as an Arduino but has a lot of memory and power.  The nice thing about the Arduino is that once you have a solution working with, say an Uno, you can move the design to a bare ATMega chip very easily.  And the bare chips are only a couple dollars each.

tsuriyathep

Hi I'd like to get the 5MP OV5642 just grab an image and FTP it.  I took a look at the Arducam code for the OV5642 but it seems they only get a 320x240 image and I'm not sure where to set it to go to 5MP.  Also in Arducam it requires the shield and LCD to grab the image.  Is there documentation on how and where to connect the cam directly to the Arduino?  I don't need video just the image, time is not an issue for me either, if it takes 10 seconds to send it, I don't mind.

Riva


Hi I'd like to get the 5MP OV5642 just grab an image and FTP it.  I took a look at the Arducam code for the OV5642 but it seems they only get a 320x240 image and I'm not sure where to set it to go to 5MP.  Also in Arducam it requires the shield and LCD to grab the image.  Is there documentation on how and where to connect the cam directly to the Arduino?  I don't need video just the image, time is not an issue for me either, if it takes 10 seconds to send it, I don't mind.

I have also been looking at this camera and the general idea I got was you need some form of external memory to buffer the camera image into as the data needs to be read quite quickly. Then the arduino can read and process this data at leisure as the arduino does not have the memory to store the image and process it quick enough. As your using a higher resolution camera I would assume your going to need a larger buffer memory than the Arducam has.

Go Up