Skip to content

Reduce reset time for OV5640 #822

@AxelLin

Description

@AxelLin

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • Provided a clear description of your suggestion.
  • Included any relevant context or examples.

Issue or Suggestion Description

When test OV5640 on ESP32S3, I notice the esp_camera_init() call takes 670ms which is much longer than I expect.
The reset() function in sensors/ov5640 has very long delay in:

  1. 100ms delay before software reset
  2. 100ms delay before write regs to sensor_default_regs
  3. 100ms delay after write regs to sensor_default_regs

I'm wondering if these delays are required.
Is there anything mentioned these delays requirement in datasheet?
Test by removing all above delays, I cannot see any difference.
So I'm wondering if the is can be improved.
IMHO:

  1. is not necessary.
    If it really needs delay for 2/3, 10ms should be enough (100ms is quite long period from h/w's point of view).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions