Arduino and camera module ov7670 installation problems

Hello everyone,

A few days ago I started a project to make video images. For doing this, i use a Arduino Uno controller + an ethernet-shield + SD-cars + camera OV7670. I have read many topics to installate the camera module. I use a example program, before I go on the hardcore programming. The source is: http://www.elecfreaks.com/projects/how-to-use-ov7670-camera-module-with-arduino/

I tried to installate the library files, but when i try to upload this code, i get the following error:

C:\Users\E. Van der Wal\Documents\Arduino\libraries\camera_VC0706\camera_VC0706.cpp:63:9: error: prototype for 'uint8_t camera_VC0706::setMotionStatus(uint8_t, uint8_t, uint8_t)' does not match any in class 'camera_VC0706'
uint8_t camera_VC0706::setMotionStatus(uint8_t x, uint8_t d1, uint8_t d2) {

  • ^*
    In file included from C:\Users\E. Van der Wal\Documents\Arduino\libraries\camera_VC0706\camera_VC0706.cpp:10:0:
    C:\Users\E. Van der Wal\Documents\Arduino\libraries\camera_VC0706\camera_VC0706.h:78:11: error: candidate is: boolean camera_VC0706::setMotionStatus(uint8_t, uint8_t, uint8_t)
  • boolean setMotionStatus(uint8_t x, uint8_t d1, uint8_t d2);*
  • ^*
    Fout bij compileren.

I have tried to install this folder under: C:\Program Files (x86)\Arduino\libraries
and: C:\Users\E. Van der Wal\Documents\Arduino\libraries

Nothing seems to work and I can't open the VC0706.h file to look where the error occurs. What am I missing, or have I done wrong?

This is my first topic so don't be hard on me :-[

Thanks for the comments and replies :D!!!!!

Camera_OV0706_TEST.ino (2.64 KB)

The header file says that the setMotionStatus() method returns a boolean. The source file says that it returns a uint8_t. While a boolean and a uint8_t are the same size, they are not the same type. The source file MUST match the header file.

Thanks for the reply PaulS!

It has been a while when I got the time to program the Arduino. I tried to rewrite the code, but it doesn't seem to work. Now I have found another program on the internet it seems to work, but I can't get an image from my camera. I'll try to update this post when I figured the problem in the code.

Thanks so far!

...and I can't open the VC0706.h file to look where the error occurs.

You downloaded and installed it on your PC. Why can't you open it?