ArduCAM / Arduino

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

Changing Mini-5MP-Plus FPS #242

Open DallonTG opened 7 years ago

DallonTG commented 7 years ago

Hi,

I have several Arducam Mini-5MP-Plus units. I want to capture images until the frame buffer is full, but I want to have some control over when each frame is captured.

It seems to me that I just need to change the fps settings of the OV5642 in order to do this. Is this assumption correct? What registers do I need to change over I2C to change the fps?

I am on a tight schedule so I would really appreciate some help with this. Thanks.

Edit: To clarify, I am talking about the camera's FPS. I am not concerned with how quickly I can stream the image data back to a computer. I am only concerned with the rate at which the camera is taking pictures.

supprot commented 7 years ago

The continuous capture mode until the buffer is full is useful for video clip recording. So it is not suggested to use it as time elapsed capture. Tunning the OV5642 register is not easy to change the fps settings, you have to add dummy lines and cause over exposure and motion blur. You'd better capture a image a time if you take time elapse images.

DallonTG commented 7 years ago

Capturing a single frame at a time is not an option. The problem is that I need to capture several frames and then read them out from the buffer at a later time.

I tried to do this, but for reasons that do not make sense to me, your CPLD automatically resets the FIFO write pointer before every new capture. Because of this, each new frame capture overwrites the previous frame.

Unless there is a way to stop the CPLD from resetting the FIFO write pointer automatically, I need to change the sensor's FPS.

supprot commented 7 years ago

I'm afraid that the default CPLD firmware can't do that way. You might need customized design for that purpose, contact us: admin at arducam dot com if you needed.

DallonTG commented 7 years ago

Unfortunately, I simply do not have time to wait for you to change the firmware on the CPLD so I need to change the FPS. can you provide any assistance on this?

DallonTG commented 7 years ago

Can you tell me what frequency you are driving XVCLK (the system input clock) with is?

supprot commented 7 years ago

The XVCLK now is 25MHz. We upload a debug tool to adjust the sensor register on the fly, please check the following link: www.arducam.com/downloads/app/ArduCAM_CMD_debug.rar