Arduino Nano 33 BLE sense OV7675 problem

Hello everyone,

Today i was trying to make an object recognition tinyml using my arduino nano 33 BLE sense when i ran into a problem. I was deploying the model using the flash_windows.bat file and it looked all okay until i typed “edge-impulse-run-impulse” in command prompt. after a few seconds of letting the model run it gave me the error
“OV7676x camera not attached or failed to init
ERR: Failed to initialize image sensor”
I currently have the OV7675 connected instead of OV7676. Is there a way to fix this or should i buy the other version.

Regards,
Stef

@Gezwegen

Can you run edge-impulse-run-impulse --debug and share the log output.
Does it first classify correctly before it dies?

Hi when i run edge-impulse-run-impulse --debug it just gives me this

[SER] Connecting to COM8
[SER] Serial is connected, trying to read config…
Failed to parse snapshot line [ ]
[SER] Retrieved configuration
[SER] Device is running AT command version 1.7.0
Want to see a feed of the camera and live classification in your browser? Go to http://192.168.1.11:4915
[SER] Started inferencing, press CTRL+C to stop…

And then i just freezes and does nothing but when i run edge-impulse-run-impulse it gives me this error

[SER] Connecting to COM8
[SER] Serial is connected, trying to read config…
Failed to parse snapshot line [ ]
[SER] Retrieved configuration
[SER] Device is running AT command version 1.7.0
[SER] To get a live feed of the camera and live classification in your browser, run with --debug
[SER] Started inferencing, press CTRL+C to stop…
LSE
Inferencing settings:
Image resolution: 96x96
Frame size: 9216
No. of classes: 6
Starting inferencing in 2 seconds…
Taking photo…
OV7676x camera not attached or failed to init
ERR: Failed to initialize image sensor

@rjames

From your logs I can tell the camera never gets initialized.

Can you try deploying the Arduino library and use nano_ble33_sense_camera.ino example to debug the camera initialization. It fails around:

    if (!Cam.begin(QQVGA, RGB565, 1)) { // VGA downsampled to QQVGA (OV7675)
        ei_printf("ERR: Failed to initialize camera\r\n");
        return false;
    }

Could this be a hardware issue? Can you also try another simple sketch that initializes the camera to eliminate any camera interface issue.