Skip to content

Trouble consistently timing flash with fully exposed frame. #4

@hendrikvg

Description

@hendrikvg

First off, cool project you've worked on!

I've been trying to recreate your results on an ESP32-CAM (also the AI Thinker model), but using the ESP-IDF framework instead of Arduino. I also use the RMT peripheral, with a 20 ms delay and a 0,1 ms flash. I learnt that the exposure setting dictates the maximum number of rows that are exposed simultaneously, as my vertical resolution consists of 600 rows (cropped) I set the exposure >600.
A major difference is that I'm not using the web interface, and I would like it to synchronize the flash with a fully exposed frame at ~10 fps. At the moment 1/5 of my pictures are completely exposed while using the flash.

There seems to be some oddities:

  • The only real way to know when it is capturing a frame is by emptying the frame buffer with .fb_count = 1, it will take a single picture after this.
  • Capturing a frame may take anywhere between 20 to 90 ms.

Especially the last item makes it difficult to consistently time the flash with a fully exposed frame.

Did I miss something about your approach? Would you happen to know any workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions