Arduino Forum

Using Arduino => Project Guidance => Topic started by: RandallR on Apr 18, 2012, 08:17 pm

Title: Any experience with OV7670
Post by: RandallR on Apr 18, 2012, 08:17 pm
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.
Title: Re: Any experience with OV7670
Post by: CrossRoads on Apr 18, 2012, 08:22 pm
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.
Title: Re: Any experience with OV7670
Post by: RandallR on Apr 18, 2012, 08:25 pm
How did you interface the Camera to the Arduino?
Title: Re: Any experience with OV7670
Post by: CrossRoads on Apr 18, 2012, 08:27 pm
I have not seen that camera before, hence the request to a link for its spec.
Title: Re: Any experience with OV7670
Post by: niko37 on Oct 03, 2012, 11:41 pm
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
Title: Re: Any experience with OV7670
Post by: niko37 on Oct 08, 2012, 08:59 pm
up?
Title: Re: Any experience with OV7670
Post by: AWOL on Oct 08, 2012, 09:00 pm
Still waiting for a link.
Title: Re: Any experience with OV7670
Post by: niko37 on Oct 08, 2012, 09:05 pm
Ha sorry, here it is:
http://www.cutedigi.com/pub/sensor/Imaging/OV7670-Datasheet.pdf
Title: Re: Any experience with OV7670
Post by: Habibi on Nov 13, 2012, 02:01 pm
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
Title: Re: Any experience with OV7670
Post by: Habibi on Nov 15, 2012, 07:56 pm
Somebody can help? Plz
Title: Re: Any experience with OV7670
Post by: AWOL on Nov 15, 2012, 08:48 pm
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.
Title: Re: Any experience with OV7670
Post by: ardufans on Dec 18, 2012, 02:51 pm
Hi RandallR,
This is exactly what you are needed.
(http://www.arducam.com/wp-content/uploads/2012/09/Arducam_1.jpg)
(http://www.arducam.com/wp-content/uploads/2012/09/Arducam_2.jpg)
http://www.arducam.com/
They have tutorial here:
http://www.arducam.com/tutorial/
The firmware source code is here:
http://www.arducam.com/download/
Title: Re: Any experience with OV7670
Post by: RandallR on Dec 27, 2012, 11:29 pm
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.
Title: Re: Any experience with OV7670
Post by: tsuriyathep on Jan 07, 2013, 11:23 pm
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.
Title: Re: Any experience with OV7670
Post by: Riva on Jan 08, 2013, 08:11 am

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.
Title: Re: Any experience with OV7670
Post by: ardufans on Jul 02, 2013, 03:54 am
To use ov5642 module,you can got 1080p JPEG with Arducam shield. If you need the code, please leave me an email address.
Title: Re: Any experience with OV7670
Post by: xKoldFuzionx on Nov 08, 2013, 03:06 pm
I'm in the same boat.  I know that Mr. Arduino has gotten the ov7670 up and running and with a library, but I'm looking for more of a tutorial as I'm quite new to all this still.  I have an ov7670, and just bought an ov5642, but wiring it all up and knowing how to send the code to the camera module are what I'd need help with.

As for the ArduCam, I have no need for a screen that shows me the pictures.  I am trying to come up with a trail camera for hunting.  All I need to do is be able to save the pictures to an SD card and I'd be good.
Title: Re: Any experience with OV7670
Post by: holmes4 on Nov 08, 2013, 03:53 pm
The Arduino Yun will take a web cam and has the legs to deal with a single frame and maybe video. But forget the OV's at best its going to be very very slow. Just look at the the best data rate the AVR's can handle the amount of data.

Mark
Title: Re: Any experience with OV7670
Post by: ep0490 on Dec 04, 2013, 10:54 pm
Hello,
I got this camera to work and store images in the sd card:
http://learn.adafruit.com/ttl-serial-camera

Is this process the same for the OV5640 camera module? I am working on my graduation project and need to control 6 cameras with the arduino. Can more than one camera be connected to the arducam shield? I plan on using the fastest arduino, i've read its the Due.
Title: Re: Any experience with OV7670
Post by: MukhtarKrim on Sep 13, 2015, 02:57 pm
hi iam suffering the same problem,any suggestion
Title: Re: Any experience with OV7670
Post by: Merl1n on Feb 03, 2016, 08:09 am
Here is my experience: http://privateblog.info/peredacha-kartinki-s-ov7670-cherez-arduino-uno-na-android-telefon/