My camera module

Hi Guys!

I'm currently trying to operate my camera module (OV5642) with my Arduino Yun but I cant seem to get it to work..

For my source codes, I keep on getting this error,

ArduCAM_Mini_Video_Streaming:36:1: error: narrowing conversion of '240' from 'int' to 'char' inside { } [-Wnarrowing]

};

^

ArduCAM_Mini_Video_Streaming:36:1: error: narrowing conversion of '196' from 'int' to 'char' inside { } [-Wnarrowing]

ArduCAM_Mini_Video_Streaming:36:1: error: narrowing conversion of '196' from 'int' to 'char' inside { } [-Wnarrowing]

ArduCAM_Mini_Video_Streaming:36:1: error: narrowing conversion of '248' from 'int' to 'char' inside { } [-Wnarrowing]

ArduCAM_Mini_Video_Streaming:36:1: error: narrowing conversion of '224' from 'int' to 'char' inside { } [-Wnarrowing]

exit status 1
narrowing conversion of '240' from 'int' to 'char' inside { } [-Wnarrowing]

and i can't seem to find any resources to get with my pin connection. Any help would be greatly appreciated. ^^

The char data type can represent values in the range -128 to +127.

240 lies outside this range, which is what the compiler is telling you.

Wow it worked XD Thanks!

Yup but now I can't access the camera thru the app though.

" Request fail!
SPI interface Error! END "

Any Ideas?

Any Ideas?

No, none at all.

Any code?

I'm currently using the ArduCAM host V2 app so no codes sadly..

FYI, "narrowing conversion" was upgraded from a warning to error with the new avr-gcc compiler version used by Arduino AVR Boards 1.6.22/Arduino IDE 1.8.6. It will be downgraded back to a warning in Arduino AVR Boards 1.6.23:

You might find code that was written for an earlier Arduino AVR Boards version and the author didn't have warnings turned on or ignored them, which resulted in their code no longer compiling.

The codes work now but the SPI interface seem to be having issues.

I'm guessing it has something to do with my connection pinout? :confused: