-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for OV5640 #2162
Comments
Did you try if it works? AFAIK there is no pinout configuration, we simply use the ESP library which provides the support for the different cameras. |
Compared to the currently used camera (OV2640), it has a higher resolution, thus memory might be an issue! ( |
@caco3 looks like its supported by the underlying library, but I need to be able to define the pins its connected to, I forked and had a go at this but I am pretty bad at code... |
It could possibly work with some modifications: Camera pinouts are defined here: AI-on-the-edge-device/code/include/defines.h Line 201 in 933215c
Additionally this flag needs to set: AI-on-the-edge-device/code/sdkconfig.defaults Line 135 in 933215c
Be aware, that for other peripherals pins needs to be adpated as well:
Only testing can tell you, if more modifications are necessary. |
I'd say according to the table shown earlier there's no flashlight soldered but the table states that pin GPIO25 is the right one, as long as not attaching a TFT which would occupy that IO port. |
keep in mind that we don't have RAM to support a higher camera resolution! |
@CountParadox could you figure out a solution for this camera? |
Negative, I just purchased a supported board |
can you recommend one? |
I managed to get my OV5640 to work on my local build. I just needed to enable ov5640 in SDK config, added guards around ov2640 specific code because they are not compatible to ov5640. Zoom mode is also working on ov5640 after very slight modification in the zoom handling code in For anyone who's interested, I'm using this OV5640 module: https://www.ebay.com.au/itm/304414545614 @caco3 I would create a PR if I can get the html working but create reference image html on rolling branch appears to be broken? What is the state of rolling branch now? Sorry I haven't looked into this for a few months. |
I am not aware of any recent changes on the Web UI. Can you try the latest rolling and describe your problem a bit more in detail? |
@caco3 sorry, turns out that it was just my web browser caching the previous version of the web interface causing problem with the new firmware on rolling branch. I just need to clear my browser cache. I've created a PR to support OV5640. |
Has anyone tried the OV5640 camera with autofocus? Just need to solder 2 wires on the ESP32cam CSI connector to power the autofocus control. The first 2 pins are not connected at the moment. Connect AF-VCC to 2.8V (pin 21 of this CSI connector), AF-GND to GND. This is the OV5640 with autofocus pinout. Here's an open source project that demonstrates the autofocus feature. Here's the application note for controlling the autofocus function. |
The esp32cam OV5640 autofocus aliexpress listing that I mentioned above does indeed have the autofocus AF-VCC and AF-GND connected on the CSI connector, so no soldering required. |
@SybexX Just a quick update on my progress on autofocus:
|
@jasaw. Like on this photo, does it working? Did u checked this in real? Or only in the serial monitor? |
@alekseyprisekin Yes auto focus works (I checked the captured image), but requires additional code to enable auto focus. I haven't shared my auto focus code on github yet because it's still work in progress. On my photo, the white wire is soldered on U1 pin2, which is the 2.8V LDO output. There are 3 different variants of OV5640 with auto focus and they require 2.8V and/or GND to be connected to different pins. |
@jasaw https://github.com/0015/ESP32-OV5640-AF/tree/main/src |
@alekseyprisekin I have not tried the project that you mentioned, but I started my auto focus code based on that project and had to make changes for auto focus to work on my camera. There are 3 different datasheets floating around the Internet, but I got time to investigate further. |
The Feature
Hi guys,
I have this module:
https://www.aliexpress.com/item/1005004521039608.html?aem_p4p_detail=20230311200737107046978822230007724708&algo_exp_id=973ada50-63fc-40e0-91c3-87db4e401cd5-2&pdp_ext_f=%7B%22sku_id%22%3A%2212000031106421469%22%7D&pdp_npi=3%40dis%21AUD%2136.52%2123.0%21%21%21%21%21%40211bf3f716785940569804937d06c0%2112000031106421469%21sea%21AU%212214764457&curPageLogUid=fhcmfz3jOSwK&ad_pvid=20230311200737107046978822230007724708_3&ad_pvid=20230311200737107046978822230007724708_3
I think the inclusion of USB-C is very convenient.
I think it should be quite simple to support, maybe just changing the pinouts defined in the code?
I was able to get it working with ESPhome very easily by doing this.
What are others opinion?
Thanks
The text was updated successfully, but these errors were encountered: