Image is not getting saved!



  • After uploading camera example through arduino IDE, the pictures are not getting saved. The device gets stuck after camera.take picture()
    Please help ASAP.


  • DeveloperWorld

    @Vishwas-Navada said in Image is not getting saved!:

    After uploading camera example through arduino IDE, the pictures are not getting saved. The device gets stuck after camera.take picture()
    Please help ASAP.

    Hi @Vishwas-Navada

    Could you please provide a log when you run the sketch?

    BR
    Karl



  • @TE-KarlKomierowski This what I'm getting on serial monitor
    Start streaming
    Set Auto white balance parameter
    Start streaming
    call takePicture()
    call takePicture()
    call takePicture()
    call takePicture()
    call takePicture()

    Images are not saved also. I have connected the camera properly. Only thing that can go wrong is the camera itself.


  • DeveloperWorld

    Hi @Vishwas-Navada

    I have tested the sketch that is available in the Arduino IDE under File->Examples->Camera
    I mounted a SD card in the extension board.

    Flashed the sketch and in the log I get:

    Prepare camera
    Start streaming
    Set Auto white balance parameter
    Image data size = 153600 , buff addr = D03AA40
    Start streaming
    Image data size = 153600 , buff addr = D03AA40
    Image data size = 153600 , buff addr = D03AA40
    Image data size = 153600 , buff addr = D03AA40
    Image data size = 153600 , buff addr = D03AA40
    Image data size = 153600 , buff addr = D03AA40
    Image data size = 153600 , buff addr = D03AA40
    Image data size = 153600 , buff addr = D03AA40
    Image data size = 153600 , buff addr = D03AA40
    Image data size = 153600 , buff addr = D03AA40
    Image data size = 153600 , buff addr = D03AA40
    Image data size = 153600 , buff addr = D03AA40
    Image data size = 153600 , buff addr = D03AA40
    Image data size = 153600 , buff addr = D03AA40
    call takePicture()
    Save taken picture as PICT000.JPG
    

    I powered off the board, took the SD card out, put it in my computer and the pictures were there.
    Can you verify that your camera is correctly mounted?
    Can you verify that your main and extension board are correctly mounted?

    https://developer.sony.com/develop/spresense/developer-tools/introduction#_spresense_camera_board