ArduCAM / Arduino

This is ArduCAM library for Arduino boards
MIT License
473 stars 349 forks source link

Followed Arducam instructions to wire OV2640 mini camera to arduino Mega 2650 Board, followed instructions, nothing's working.. #551

Open sparkls0 opened 2 years ago

sparkls0 commented 2 years ago

Hello there, I've followed thoses instructions, put on exact same pins on my board : https://www.arducam.com/docs/spi-cameras-for-arduino/hardware-connection-for-mega2560/.

I have modified the memorysaver.h file like this :


#ifndef _MEMORYSAVER_
#define _MEMORYSAVER_

//Only when using raspberry,enable it
//#define RASPBERRY_PI

//There are two steps you need to modify in this file before normal compilation
//Only ArduCAM Shield series platform need to select camera module, ArduCAM-Mini series platform doesn't

//Step 1: select the hardware platform, only one at a time
#define OV2640_MINI_2MP
//#define OV3640_MINI_3MP
//#define OV5642_MINI_5MP
//#define OV5642_MINI_5MP_BIT_ROTATION_FIXED
//#define OV2640_MINI_2MP_PLUS
//#define OV5642_MINI_5MP_PLUS
//#define OV5640_MINI_5MP_PLUS

//#define ARDUCAM_SHIELD_REVC
//#define ARDUCAM_SHIELD_V2

//Step 2: Select one of the camera module, only one at a time
#if (defined(ARDUCAM_SHIELD_REVC) || defined(ARDUCAM_SHIELD_V2))
    //#define OV7660_CAM
    //#define OV7725_CAM
    //#define OV7670_CAM
    //#define OV7675_CAM
  #define OV2640_CAM
  //#define OV3640_CAM
    //#define OV5642_CAM
    //#define OV5640_CAM

    //#define MT9D111A_CAM
    //#define MT9D111B_CAM
    //#define MT9M112_CAM
    //#define MT9V111_CAM
    //#define MT9M001_CAM
    //#define MT9V034_CAM
    //#define MT9M034_CAM
    //#define MT9T112_CAM
    //#define MT9D112_CAM
#endif

#endif  //_MEMORYSAVER_

And I get this error that other people have got as I can see so far out here. But I did edit the file correctly, or atleast as I think, and did add library Arducam folder containing modifier memorysaver.h file to my Arduino sketch. Good port, good board. That should work.. I don't get it. That is why I am coming for a little help..

The error when uploading :


Arduino: 1.8.19 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

ArduCAM_Mini_2MP_OV2640_functions:16:4: error: #error Please select the hardware platform and camera module in the ../libraries/ArduCAM/memorysaver.h file

error Please select the hardware platform and camera module in the ../libraries/ArduCAM/memorysaver.h file

^~~~~

exit status 1

error Please select the hardware platform and camera module in the ../libraries/ArduCAM/memorysaver.h file

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.


Can't make work the camera neither in Arducam_Host software. No OV2640 is detected.

What am I doing wrong?

Thanks in advance

IMG_3519

IMG_3520

5

Screenshot 2022-04-29 at 13 37 30