ESP32-OV5640-AF icon indicating copy to clipboard operation
ESP32-OV5640-AF copied to clipboard

Progress on manual focus?

Open leoshmu opened this issue 2 years ago • 3 comments

Thank you for this wonderful project. I'm wondering if there are particular challenges with enabling manual focus. It should consist of sending a command via i2c to the proper register right? Are there registers for setting the position of the lens that are known?

leoshmu avatar Aug 25 '23 02:08 leoshmu

Looking a little more closely at this, I see you are using the 0x3022 register to get the autofocus started, which is what the arducam ov5640 lists as the register for starting autofocus However, I found this: https://cdn.sparkfun.com/datasheets/Sensors/LightImaging/OV5640_datasheet.pdf

And in they suggested in section 7-11 that 0x3602 is a register with default value of 0x50 that controls the VCM position. Do you think this could work to allow manual control of the vcm position?

leoshmu avatar Aug 25 '23 03:08 leoshmu

@leoshmu As I mentioned in my channel comment, I tried to create firmware for manual focus control, but I couldn't produce the desired result. No updates have been made since then. If you modify and test my code and make a pull request, I will test it myself.

0015 avatar Aug 28 '23 05:08 0015

Thanks so much, I will do my best. If you wouldn't mind sharing what you tried even though it didn't work that would be much appreciated. If you don't have time I understand

leoshmu avatar Aug 28 '23 14:08 leoshmu