MAx FPS on Raspberry Pico and OV2640 module

1.Which seller did you purchase the product(s) from?
The Pi Hut
2.The Model number of the product(s) you have purchased?
Arducam Mini 2MP Plus OV2640 SPI
3.Which Platform are you using the product(s) on?
Raspberry Pico
4.Which instruction are you following?
Streaming Example
5.Has your product ever worked properly?
Always works
6.What problems are you experiencing?
Hello,

I’ve built the examples in the PICO_SPI_CAM repository, and I am building a program starting from the Arducam_MINI_2MP_Plus_Videostreaing.cpp file.

So far I am able to get images from the sensor and display them on a small display attached to the Pico.

Even without copying bytes to the display, the Framerate is around 2FPS.

I am using RAW format and the QVGA resolution (320x240). This should be the best resolution for me, I don’t need anything higher.

Does anybody know if it is possible to reach around 10FPS with this camera/setup on a Raspberry Pico.

I am writing in C++.

Thanks

Z

 

PS I’ve tried running without debugging and more or less the FPS is the same
7.What attempts at troubleshooting have you already made?
I’ve put a counter and with the debugger I’ve seen the FPS stored in some variables.
8.How would you like us to help you?

Hi,Using ov2640, JPEG format and 320 * 240 resolution on Pico platform can realize 10fps

Hello,

thanks. How are you testing the FPS, by streaming to someplace or checking via ArduCAM Host?

And besides, what code are you using? Can you show the relevant C instructions?

Unfortunately I don’t think I can use JPEG, because I need to display image on an external display and I would need to decode it on board, too much I think for the Pico

Thanks anyway

Z

Hi,

Please don’t worry, I will try my best to solve the problem for you.

Q1:You can get the frame speed using our Host app and Arducam_ov2640_videoStreaming demo, For the detail code, please refer to https://github.com/ArduCAM/PICO_SPI_CAM/tree/master/Examples/Arducam_MINI_2MP_Plus_Videostreaing

Host v2: https://github.com/ArduCAM/Arduino/tree/master/ArduCAM/examples/host_app/ArduCAM_Host_V2.0_Windows.

but notice, the software only supports Jpeg and Bmp data formats.

About you need to decode image on your pico board, which does exist difficult. But, our camera supports and raw8 format. I think which is what you need.

https://github.com/ArduCAM/RPI-Pico-Cam/blob/master/tflmicro/Arducam/src/arducam.c

Feel free to let me know if you need more help.

 

 

Hello @ljp, thanks

At the moment I am using this setup:

myCAM.set_format(RAW); // it also setsQVGA -> 320/240 //set myCAM.InitCAM(); //set byte swap //https://www.uctronics.com/download/cam_module/OV2640DS.pdf myCAM.wrSensorReg8_8(0xda, 0x08 | 0x01);
But the total throughput is 2.1 FPS without doing anything..

the rest of the “C” code is copied from “arducam_2mp_streaming.cpp” also the call to “read_fifo_burst”

Thanks

Z

Hi,

Please don’t worry, I will try my best to solve the problem for you.

Sorry, we do not have a configuration for OV2640 RAW format. If you are interested, you can go to the link we provide to download the user document.
https://www.arducam.com/ov2640/

Feel free to let me know if you need more help.