Pages: [1] 2   Go Down
Author Topic: Any experience with OV7670  (Read 6793 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Sr. Member
****
Karma: 1
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.


* OV7670.jpg (49.12 KB, 500x500 - viewed 74 times.)

* SD Reader.JPG (79.25 KB, 1600x1200 - viewed 75 times.)
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 443
Posts: 23835
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Sr. Member
****
Karma: 1
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How did you interface the Camera to the Arduino?
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 443
Posts: 23835
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have not seen that camera before, hence the request to a link for its spec.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

up?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 240
Posts: 24449
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Still waiting for a link.
Logged

"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.

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Somebody can help? Plz
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 240
Posts: 24449
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

"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.

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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/
Logged

Offline Offline
Sr. Member
****
Karma: 1
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Norfolk UK
Offline Offline
Edison Member
*
Karma: 52
Posts: 2214
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Handle every stressful situation like a dog. If you can't eat it or hump it. Piss on it and walk away.

Pages: [1] 2   Go Up
Jump to: