Note, the lenses can make a significant difference in noise, especially if they have different f-stops. I don't think the two sensors have significantly different noise (SNR) figures.
Since the condition of the OV2640 used in this test is poor, maybe just show more noise. Not sure about it. Anyway, there may be no difference between the two SNR figures.
The FPS tests is dependent on camera shutter speed as well, which is automatic in most cases and pointing down onto desk will be slow. Give cameras lots of light and do test again and you will get better numbers from both cameras.
Thankyou for helping me with a nice close up shot of the correct method of insertion....! Of all the videos and diagrams of the ESP-CAM board I have referred to, it was not until your vid that I witnessed the proper method to insert the OV2640 into the so called FFC or FPC connector. I have plenty of experience with micro processor, small modules, flight controllers, laptop and cell phone teardowns that also have plenty of ribbon cable connections. But of all the irritating tasks I have had to do recently, it was to try to guess as to how that damned FPC connector worked. I never got it right. I spent ages and nearly lost my temper. The game is over as soon as you pull the delicate clamping device out of the base. I think that the SMD components that share the PCB in the vicinity are a pain in the asset. A nearby hammer eased the tension. And I am buying a new one.
Hi! I've just seen your other video testing the auto focus version of the OV5640 camera and I'm impressed by the minimum object distance you can get focused on! (~5cm it's very good for my use case :)) In this video, you don't talk about the minimum focus distance, do you have an idea what it is for the normal version (withou af) of the OV5640? Thanks for your videos!
Great video thank you for sharing , I saw a video for changing only the lense not the sensor which make better quality images with same resolution (board mount lenses),just fix the lense base firmly the rotate the top part of the esp32 lense to release it then put the other lense on top of the esp32 sensor
What is the code that you use to obtain the CameraWebServer for OV5640 Camera Setting demonstrated in this video ? Could you share or explain it to us...thank you
CameraWebServer is a basic ESP32 example. You can try it through Arduino IDE>Examples>ESP32>Camera>CameraWebServer If you are using the OV5640 you will see the extra options.
It seems that the OV2640 and OV5640 cannot be used for macro photography. There is no aperture control, and even with manual control of the focal length, it's difficult to focus on objects that close.
@@ThatProject I'm programming with ESP32 CAM OV2620 Arduino ide. The config is set to ESP32 Can axes poit, pixel format is JPEG, but the image is too slow, the resolution is set to SVGA, but the image hangs a lot. I think MJPEG format can give a more fluid image. Can you help me access MJPEG codes?
Hello, thanks for the very useful videos. If you have a moment, I wonder if you would perhaps provide a recommendation. I am looking to create a camera system with micro-SD storage (no WiFi or Bluetooth) and USB-C interface. I am looking at the OV2640 and OV5640 as possible cameras. What I am having trouble with is finding the right microcontroller. My biggest constraint is that the entire camera system must fit in a thin tube that is only ~12mm in diameter. Any thoughts? Thanks in advance.
Need to capture high-quality images and then stream them? If so, please take a look at AMB82-Mini. ua-cam.com/video/FEs1RIjfO3Y/v-deo.htmlsi=ngXisHCiaMbP6xt1
Great video thank you. I have some questions: 1) what does 'FBS' stands for and what does it mean 2) How come the OV5640 has less angle of view than the OV2640, I thought that OV5640 has higher resolution and greater andle of view.
1) You meant FPS? FPS is the frame per second. This is about how many times the screen refreshes per second. Typically, a screen without delay is 30fps. 2) The difference in angle of view depends on the lens attached to the front. You can purchase lenses of various angles of view.
Hi! thanks for sharing your experience i have a question, what about esp32-s3 does it get too hot? any difference at all better speed or higher frame rate?
Hi, thanks for the video. Why is the minimum frame rate in 1080p 30fps written in dataset OV5640, but your video does not have 5fps? Are there OV4689 tests on this module and will it run on it?
As far as I know, the OV4689 is not supported by the ESP32-CAM board. There could be several reasons for the OV5640 to have a slower FPS than the datasheet. One thing is the Pixel Clock, which synchronizes all the bits on the port. PCLK must also be satisfied to meet the maximum FPS, but a clock of 96/192 MHz is required to obtain 60 fps at 720p resolution on the OV5640.
To use this, you must use PSRAM. Lowering XCLK from 20MHz to 10MHz has been shown to have an FPS boost effect at VGA resolution, but this is experimental.
@@ThatProject A recent experience that I had with some ESP-CAM modules were very laggy and intermittent at 20MHz with the OV2640 camera which was fixed by changing to 24MHz after checking the datasheet
@@ThatProject One other thing that I found in the datasheet, It looks like the IO level for the OV5640 is 2.8V max instead of 3.3V, I don't know if that would affect the performance of that camera or if the ESP is just overdriving inputs a little bit on that camera module?
@@16aroth6 Well, I don't know about the issue at the IO Level. I thought there was no issue in this part because the OV2640 also uses the same 2.8V. For the issue regarding the Core voltage in the OV5640, check this out. ua-cam.com/video/yzWiicnv-f8/v-deo.htmlsi=he45Lo7UWChzgwAD
I have a OV8865 8MP sensor, similar in nature to the OV5640, I bought the sensor from Terasic. I'm accessing a Rev. 1D document, and there is nothing explaining almost all the registers. Is there a companion document or user manual describing all the register definitions and what they do? Terasic is being tight-lipped, i'm sure there is a NDA ?
Perhaps they will only open it to their partners. (I don't know why they don't share it either.) By the way, is there any reason you chose Terasic OV8865?
Lovely work, 2:48 you mentioned that the example code have been updated , how can I find the new code , on the espressif system library still te old one
Just update the ESP board version. Currently, the latest version is 2.0.1. Please refer to this page. docs.espressif.com/projects/arduino-esp32/en/latest/installing.html
I think it came out more yellow because I adjusted the brightness of the OV5640. The image before brightness adjustment is closer to real light in my office.
One of my followers said that the pinout of the Chinese clone of OV5640 is different. Are you using a product from Waveshare like the OV5640 I used? www.waveshare.com/ov5640-camera-board-b.htm
@@ThatProject yes, it's waveshare one. Also I noticed I can't get max resolution out of OV5640, I think,I'll just make my own board to try it out again.
Hi I have some problems with OV2640, I can't use this camera connected to another ESP32 and use the IP address to see the high quality video as well. Can I transfer the high quality video without any problem? How? Regards
Wouldn't it be too heavy to attach devices including batteries to the kite? Still, it's difficult to achieve fast frame rates at high resolutions. Additionally, transmitting data through ESP32 also has a bottleneck.
Can you compare the temperature from the ESP32 Module when using both modules? Is the OV5640 causing a lot of stress to the EPS32 which causes a higher heat?
nice, you know you can screw/unscrew the lens to adjust the focus, it seems they use a bit of superglue and it needs a bit of force at first. you can take the lens off and possibly swap them. *edit: i noticed in my setup you get more line noise at 20mhz than 10mhz. so i will set default 10mhz from now on. do you get any benefit at 20mhz? for slower connections (bandwidth) adjust the jpeg quality to higher quantization values.
For OV2640, it shows faster FPS and less noise at 10 MHz, VGA resolution. It seems that more tests are needed for speed and quality with changing XCLK.
@@ThatProject for very low light conditions you can go down to 2 MHz. who knew that XCLK affects exposure time!!! that was the source of my quality degradation problem after the v1.0.4.
@@ThatProject External antenna and good power will improve image quality for OV2640, seems bad schematic for this module. With external antenna I have not color lines anymore.
@@kDnZP Totally agree with you. The problem is that the same problem occurs even if I use the PCB I made, not the AI-Thinker board. Of course, no external antenna was used here either. Anyway, thanks for the comment.
Hi, awesome video. I also have a waveshare 5640 cam but I cannot figure out what settings to put in a custom arduino sketch. Do you use "#CAMERA_MODEL_AI_THINKER"? or a different set. Appreciate your video and any hep
Hello! Thank you for your video. I have some issues to develop the Camera Web Server for OV5640 and I saw in the video that you already have the interface working well. Could you share me your code, please?
Sorry, but I didn't get what time is required to take (and store or transfer) 5 Mpix *still* photo on ESP32 with OV5640 sensor. I need to know how fast I can take photos with it.
@@igg5589 According to the OV5640 datasheet, it says that you can get 15 fps at QSXGA (2592x1944), but this is not possible in the ESP32 environment. You mentioned a still photo, why is it important to acquire the image quickly in this case?
@@ThatProject I want to try making HDR photos (set of slightly underexposed, normally exposed and overexposed). So if subject/camera will move a lot I'll get blur.
Hey, can you advise on how can i manage to build a camera to run at 480p90? or anything smooth in the range of 80-90fps (i'm trying to build a low cost IR Tracking, so i need a high fps build, resolution isnt important)
Well honestly, 60fps at 720p is not possible with ESP32CAM. 25 fps at VGA resolution is the maximum. It's recommended to do your project based on the Raspberry Pi.
Hi Eric. Im having a problem. The example sketch is still giving me the Toggle OV2460 settings UI even though the sketch is identifying the camera as OV5640 (PID 86) and isn't giving me the advanced options and resolutions.
The PID of the OV5640 is 0x5640. I have two OV5640's and both are recognized properly and I can access all UI interfaces. They have no problems at all. Where did you buy it from? FYI, I'm using Waveshare's OV5640.
@@ThatProject I added "Serial.print(s->id.PID);" to the sketch after "esp_camera_sensor_get" and it prints 86. 0x56 in hexadecimal. Under sensor.h in the example sketch has "#define OV5640_PID (0x56)" so the board can see the 5640, but loads the 2640 interface anyway. Maybe there was an update somewhere that broke the code? I am a hobby programmer and quickly get lost in code. I bought the Taidacent OV5640 from amazon and it seems like a true ov5640. Edit: I realized I posted a duplicate comment with a link, so sorry if it went under review and sent two notifications :)
@@rileyjones7231 I put the same PID checking code as you and tested it. sensor_t * s = esp_camera_sensor_get(); Serial.print("Show me PID: "); Serial.println(s->id.PID); *Serial Monitor Show me PID: 22080 Decimal(22080) -> Hex(5640) My OV5640 outputs 22080. Sorry I have no idea why you got 86.
@@ThatProject Strange, sounds like I have a different version of the sketch that uses different pids, I might try forcing the code to use 5640 as the pid instead of letting it discover it. Or looking around in different board versions for the same sketch that uses the camera model as the pid Thank you for all your help! Love the channel
Hi, as you suggested i have used ov5640 from waveshare but when trying models from 2 other suppliers they were overheating and the picture was gradually turning white/green. Any ideas?
Hey Domen, Where did you get those? Are you sure they're genuine products of Waveshare? I have 2 of them and I didn't have any issues when I make the OV5640 library for the auto-focus mode.
At 1:30 you show installing the OV5640 onto a ESP32 Cam board. Do you have to install different cam software to support it? Are there any other changes made to the ESP32 Cam board to get the much better quality of the OV5640?
@@ThatProject I finally got it working. The OV5640 shows up with much higher speed and resolution available but the video quality is much worse than OV2640 so far. Grainy and colours are off. I used Board: "AI Thinker ESP32-CAM" and #define CAMERA_MODEL_AI_THINKER.
@@ThatProject An Ebay supplier I have bought many other devices from. I think it's a OV5640 software setting problem. That's why I asked about your settings. OV2640 on the same board is fine. I tried a second OV5640. Same thing.
@@NN-rd3mk No, I didn't do any settings for the video quality. Please note that WaveShare's OV5640 and Chinese clone products are not perfectly identical.
Hey man thanks for this helpful video, i want abit of your help and thoughts on something i want to start and work on , which is a little home security cam using maybe one of the cams you mentioned in this video, i want to run 2 esp32 LAN one capturing the image and being able to check it through the network and the other esp32 being connected to a display to have a easier way of seeing whos at the door, what im thinking of doing is connecting the security esp32 cam with a battery and making a enclosure for it to protect it from the dust but it will just sit right on a window above the front door. Any thoughts on this project and maybe abit of your help? Thanks in advance
ESP32-CAM can be used on battery power, but if you continue acquiring images, battery consumption will be very high. Like a typical door camera product, have you thought about any triggering? For example, the camera could turn on by motion recognition.
Hey man , i want the setup to be more clean and dont want to run a cable through the ceiling you know , thats why im looking at how to make such little system energy efficient, so do you think have some sort of sensor is good? To kinda wake the cam up and the esp32 from deep sleeping , by the way i got at the moment a motion sensor home , loads of esp32's @ThatProject
@@alixmichael-yv4go What I just want to say is that the ESP32-CAM cannot continue to run when running on batteries. This consumes a lot of battery power. It may be effective to use some external sensor to wake the ESP32-CAM from deep sleep. It can save more power through minimal battery consumption.
@@alixmichael-yv4go I don't have a 5640 to test but the 2640 with esp32-s together consume 200mAh when idle (not sleeping) and 300mAh when capturing and transmitting via WiFi, so you'd need 4000mAh battery to keep it transmitting for 24h if you have a good quality 3.3v voltage regulator or 5000mAh if you use a USB power bank (double voltage regulation from ~3.7 -> 5 and 5 ->3.3v). With a PIR motion sensor though, you can hook up the "motion detected" pin to an IRQ pin and keep the esp in deep sleep, which allows the same battery to last for weeks. However, after coming out of deep sleep it takes a few seconds to establish the network connection so you'd have to buffer the images right away and use a separate task on the second core to handle the networking and upload the images afterwards to not miss any action.
Hi, i have a question. Im using TTGO T-Call ESP32 SIM800L and i want to use esp32CAM camera to the TTGO board. Can you teach me how to connect it and generate a simple code to test it out? tq sir
Image data can be transmitted via serial or Bluetooth LE, but requires detailed work. If you have to use the SIM module with image acquisition, wouldn't it be more convenient to use this? ua-cam.com/video/kOYJ-4oZ8Ws/v-deo.html
Its interface is SCCB. Please check this out www.waveshare.com/w/upload/1/14/OmniVision_Technologies_Seril_Camera_Control_Bus%28SCCB%29_Specification.pdf
I bought the OV5640 module and it sees it on the esp32cam and it works but it doesn't make a connection, but when I try it with the ov2640 it makes a connection. What should the PID settings be for ov5640 or where should I enter them? please urgent 😭😭😭😭😭😭😭😭
In what environment does ESP32-CAM run? ESP-IDF? Arduino? OV5640_PID is checked automatically, so you do not need to check it. Looking at the CameraWebServer example, it automatically distinguishes between OV2640, OV3660, and OV5640 and displays the required screen to the user. It would be a good idea to double-check the connection between your ESP32-CAM and OV5640.
I can take images with another example, but when I use it with the CameraWebServer example, it does not connect. It only connects when I plug in the ov2640. When I plug in the ov5640 there is no connection. @@ThatProject
Is the slow fps due to the data being transfered over wifi? If so, if i connect it to a sd card module and record the data on it instead, will i be able to get the full fps that's on the datasheet?
Good point. I would say yes or no. When transmitting via WiFi, a bottleneck occurs in the process of taking and sending photos. This is the biggest cause of low FPS. As a result of my testing in another video, showed similar results to the datasheet in obtaining the image frame buffer only without saving or transferring. When continuously writing images to an SD card, you will be able to get a sufficiently good FPS if there is no delay. The cause of the bottleneck is that the process of obtaining the image frame buffer and writing or sending the file is not processed in parallel. Unless this fundamental issue is resolved, I believe that saving images externally will inevitably result in frame drops.
you changed the xclk on the camera and reduced by 50% you did not mention why. from my experince a higher clock produced much faster fps and much cleaner moving objects. more heat is produced and im sure its a battery drain, tho I would assume it depends on your use case. it is also possible to change lens creating differnt results.
Of course, you're right. You can usually get faster fps with higher clocks. But there are other cases. Changing XCLK is a kind of old story. I've also mentioned this in one of my ESP32CAM videos. Anyway, check this out. github.com/espressif/esp32-camera/issues/15
Hey dude, I need a camera that can accurately read text(like english paragraphs) and mathematical notations off of textbooks. Is the ov5640 capable of that? if not, which camera should I purchase? I'd prefer it to be compatible with esp32 cam board
I have recently been using the AMB82-Mini camera module and it is very useful. Check this out. ua-cam.com/video/TGqOUVhQQY8/v-deo.htmlsi=U5CVZZWozqhmZcMy
Nice and useful video! Thnx, bro! Too bad that OV5640 cannot perform at least 25-30 fps at decent resolution... :( Do u know any other (not too expensive) and (pretty small) way to get 720P@25-30FPS via wi-fi? IP-cams are pretty big. Greetings from Russia :) And sry for not the best english.
Please check this post. Seems like there is a way to get more FPS. www.reddit.com/r/esp32/comments/vndbh7/how_to_increase_fps_on_esp32cam/ If it doesn't work, you need to use other platforms like Raspberry Pi.
This is an ESP32CAM basic example. You can find it from, Examples>ESP32>Camera>CameraWebServer. And your installed ESP32 version should be 2.0.x not 1.0.6.
Hello great explanation btw. I have a doubt I'm currently working on a project which require physical approach. I have a DL code in my pc and im using pc webcam to work on it. But now i need to use some physical thing. I'm thinking of using ESP 32. I have tp send the direct video stream to the pc where the code is and i need to detect the object how can i proceed please anyone help me..
I'm just using the example source code. You can try it through Arduino IDE>Examples>ESP32>Camera>CameraWebServer If you are using the OV5640 you will see the extra options.
It is possible to take high-resolution images, but sending them through streaming will be very slow due to the large size of the images. This is not a good solution if your project requires high-resolution continuous images.
You can simply change the exposure level. To manually change the exposure time, you need to modify the register. I'm very interested in the exposure part, so I'll try a new project about this when I get a chance.
CameraWebServer is a basic ESP32 example. You can try it through Arduino IDE>Examples>ESP32>Camera>CameraWebServer If you are using the OV5640 you will see the extra options.
@@ThatProject several different modules bought off amazon and ali I'll get a waveshare and try it. What is the base code you are using for the project? I have noticed I get a high frequency humming from my board when the camera are running and wonder if there is a problem with my code base
@@AaronVanTassle I used the example source of the ESP32 Camera for testing. Arduino > Examples > ESP32 > Camera > CameraWebServer By checking the PID and VID of the OV5640, you can automatically check more functions compared to the OV2640.
@@kilojoules490-wp3bo I think it would be possible to use it by additionally installing a microscope lens on top of this. I'm also looking into this, but it seems difficult to mount it perfectly on the OV2640/OV5640.
@@ThatProject thank you for the reply I'm actually making this as a thesis project using the esp 32 camera module attached on the lens of a biological microscope 🔬, and paired it to the phone wirelessly via WiFi and controlled the fine and coarse adjustment knob of the microscope using stepper motor. Can u do a test video of the microscope attach the esp32 cam. autofocus.
I think so. Please check this post. www.arducam.com/docs/cameras-for-raspberry-pi/native-raspberry-pi-cameras/5mp-ov5647-standard-camera-modules/#ov5647-full-datasheet
To be honest, it's not easy in an ESP32 environment. Buffer->MCU->WiFI->WebServer As the image data moves, bottlenects occur and the FPS drops. But pretty sure you can get at least 20fps at VGA res.
The problem seems to be that there are several different types of OV5640. You will need to purchase after confirming that it works on the ESP32-CAM AI Thinker board.
I think that’s rude to talk about people’s accent, as all individual have our own. Further more, this gentleman is so generously sharing his projects, replaying the clip a few more time will soon get you adapt to his accent and learn something from him.
That Project's Channel - ua-cam.com/users/ThatProject
Join FB Group - facebook.com/groups/138965931539175
The camera quality is insane!
Thanks for your work, very informative for me as I’m looking at different lens/sensor options for my esp32 cam
The 5640 image quality is quite a bit better. Thanks for sharing this cool camera. 👍👍
Note, the lenses can make a significant difference in noise, especially if they have different f-stops. I don't think the two sensors have significantly different noise (SNR) figures.
Since the condition of the OV2640 used in this test is poor, maybe just show more noise. Not sure about it. Anyway, there may be no difference between the two SNR figures.
The FPS tests is dependent on camera shutter speed as well, which is automatic in most cases and pointing down onto desk will be slow.
Give cameras lots of light and do test again and you will get better numbers from both cameras.
Thanks for your comment. This helped me a lot. I think I will be able to do it more clearly the next time.
Thankyou for helping me with a nice close up shot of the correct method of insertion....! Of all the videos and diagrams of the ESP-CAM board I have referred to, it was not until your vid that I witnessed the proper method to insert the OV2640 into the so called FFC or FPC connector. I have plenty of experience with micro processor, small modules, flight controllers, laptop and cell phone teardowns that also have plenty of ribbon cable connections. But of all the irritating tasks I have had to do recently, it was to try to guess as to how that damned FPC connector worked. I never got it right. I spent ages and nearly lost my temper. The game is over as soon as you pull the delicate clamping device out of the base. I think that the SMD components that share the PCB in the vicinity are a pain in the asset. A nearby hammer eased the tension. And I am buying a new one.
@@chrisleech1565 oh… I hope you never have to experience this terrible thing again.
Great video man ! I got a lot of good pointers just bought 4 dorhea ones off Amazon before watching this and it comes with the ov2640
Thanks. I hope you try also OV5640.
What a nice project. Thank you for this.
thank you a lot, this is exactly what i wanted
Hi! I've just seen your other video testing the auto focus version of the OV5640 camera and I'm impressed by the minimum object distance you can get focused on! (~5cm it's very good for my use case :))
In this video, you don't talk about the minimum focus distance, do you have an idea what it is for the normal version (withou af) of the OV5640?
Thanks for your videos!
That's a good point. As far as I remember, it was at least 6-7cm away from the subject. I'll test it again in the next project.
@@ThatProject Thanks! I would really appreciate that :)
Great video thank you for sharing , I saw a video for changing only the lense not the sensor which make better quality images with same resolution (board mount lenses),just fix the lense base firmly the rotate the top part of the esp32 lense to release it then put the other lense on top of the esp32 sensor
If you open the OV2640 lens, you can see the CMOS sensor module inside it.
What is the code that you use to obtain the CameraWebServer for OV5640 Camera Setting demonstrated in this video ? Could you share or explain it to us...thank you
CameraWebServer is a basic ESP32 example.
You can try it through Arduino IDE>Examples>ESP32>Camera>CameraWebServer
If you are using the OV5640 you will see the extra options.
Hi
How are the macro shooting capabilities of the OV5640 and OV2640 in a well-lit environment? have you had a chance to try this?
It seems that the OV2640 and OV5640 cannot be used for macro photography. There is no aperture control, and even with manual control of the focal length, it's difficult to focus on objects that close.
@@ThatProject I'm programming with ESP32 CAM OV2620 Arduino ide. The config is set to ESP32 Can axes poit, pixel format is JPEG, but the image is too slow, the resolution is set to SVGA, but the image hangs a lot. I think MJPEG format can give a more fluid image. Can you help me access MJPEG codes?
Would you be able to compare the OV3640 or OV3660 with the OV5640?? this was a great video and id love to see more comparisons!
Hello, thanks for the very useful videos. If you have a moment, I wonder if you would perhaps provide a recommendation. I am looking to create a camera system with micro-SD storage (no WiFi or Bluetooth) and USB-C interface. I am looking at the OV2640 and OV5640 as possible cameras. What I am having trouble with is finding the right microcontroller. My biggest constraint is that the entire camera system must fit in a thin tube that is only ~12mm in diameter. Any thoughts? Thanks in advance.
Does the distance between this subject (thin tube) and the camera matter? Should it be capable of photo capture or image streaming?
I might need some of these in my projects. I need affordable and high mega pixels
Need to capture high-quality images and then stream them? If so, please take a look at AMB82-Mini. ua-cam.com/video/FEs1RIjfO3Y/v-deo.htmlsi=ngXisHCiaMbP6xt1
Great video thank you. I have some questions:
1) what does 'FBS' stands for and what does it mean
2) How come the OV5640 has less angle of view than the OV2640, I thought that OV5640 has higher resolution and greater andle of view.
1) You meant FPS? FPS is the frame per second. This is about how many times the screen refreshes per second. Typically, a screen without delay is 30fps. 2) The difference in angle of view depends on the lens attached to the front. You can purchase lenses of various angles of view.
Hi! thanks for sharing your experience i have a question, what about esp32-s3 does it get too hot? any difference at all better speed or higher frame rate?
Which device are you trying to use OV5640? Well, for the temperature issue, I'll make another video for it.
Hi, thanks for the video. Why is the minimum frame rate in 1080p 30fps written in dataset OV5640, but your video does not have 5fps? Are there OV4689 tests on this module and will it run on it?
As far as I know, the OV4689 is not supported by the ESP32-CAM board.
There could be several reasons for the OV5640 to have a slower FPS than the datasheet. One thing is the Pixel Clock, which synchronizes all the bits on the port. PCLK must also be satisfied to meet the maximum FPS, but a clock of 96/192 MHz is required to obtain 60 fps at 720p resolution on the OV5640.
1. Did the ESP modules you used have PSRAM enabled?
2. Can you change the XCLK to better match the required input clock to get a better fps?
To use this, you must use PSRAM. Lowering XCLK from 20MHz to 10MHz has been shown to have an FPS boost effect at VGA resolution, but this is experimental.
@@ThatProject A recent experience that I had with some ESP-CAM modules were very laggy and intermittent at 20MHz with the OV2640 camera which was fixed by changing to 24MHz after checking the datasheet
@@16aroth6 Oh, that's interesting. Let me try it too.
@@ThatProject One other thing that I found in the datasheet, It looks like the IO level for the OV5640 is 2.8V max instead of 3.3V, I don't know if that would affect the performance of that camera or if the ESP is just overdriving inputs a little bit on that camera module?
@@16aroth6 Well, I don't know about the issue at the IO Level. I thought there was no issue in this part because the OV2640 also uses the same 2.8V. For the issue regarding the Core voltage in the OV5640, check this out. ua-cam.com/video/yzWiicnv-f8/v-deo.htmlsi=he45Lo7UWChzgwAD
I have a OV8865 8MP sensor, similar in nature to the OV5640, I bought the sensor from Terasic. I'm accessing a Rev. 1D document, and there is nothing explaining almost all the registers. Is there a companion document or user manual describing all the register definitions and what they do? Terasic is being tight-lipped, i'm sure there is a NDA ?
Perhaps they will only open it to their partners. (I don't know why they don't share it either.) By the way, is there any reason you chose Terasic OV8865?
Lovely work,
2:48 you mentioned that the example code have been updated , how can I find the new code , on the espressif system library still te old one
Just update the ESP board version. Currently, the latest version is 2.0.1.
Please refer to this page. docs.espressif.com/projects/arduino-esp32/en/latest/installing.html
Very nice. The room was more yellowish on the OV5640 than the OV2640, which camera was more correct in terms of color?
I think it came out more yellow because I adjusted the brightness of the OV5640. The image before brightness adjustment is closer to real light in my office.
You should calibrate colors depending on the environment light, see this video for a tutorial ua-cam.com/video/PYKp4RN4Was/v-deo.html
did you noticed any heating issue in Camera Sensor(OV5640)? my board become toasty after 4-5min use. (Mostly because of LDO and Camera heating.)
One of my followers said that the pinout of the Chinese clone of OV5640 is different. Are you using a product from Waveshare like the OV5640 I used? www.waveshare.com/ov5640-camera-board-b.htm
@@ThatProject yes, it's waveshare one. Also I noticed I can't get max resolution out of OV5640, I think,I'll just make my own board to try it out again.
@@punit_patel Oh, you're using a custom board. I look forward to the good news.
Hi
I have some problems with OV2640, I can't use this camera connected to another ESP32 and use the IP address to see the high quality video as well.
Can I transfer the high quality video without any problem? How?
Regards
these look cool! could be used for mounting cameras on a kite? can several be used in parallel to capture higher resolution or higher frame rate?
Wouldn't it be too heavy to attach devices including batteries to the kite? Still, it's difficult to achieve fast frame rates at high resolutions. Additionally, transmitting data through ESP32 also has a bottleneck.
Can you compare the temperature from the ESP32 Module when using both modules? Is the OV5640 causing a lot of stress to the EPS32 which causes a higher heat?
I was thinking about that too. I don't know when, but I will make a comparison video. Thank you.
@@ThatProject great thanks :)
nice, you know you can screw/unscrew the lens to adjust the focus, it seems they use a bit of superglue and it needs a bit of force at first.
you can take the lens off and possibly swap them.
*edit: i noticed in my setup you get more line noise at 20mhz than 10mhz. so i will set default 10mhz from now on. do you get any benefit at 20mhz?
for slower connections (bandwidth) adjust the jpeg quality to higher quantization values.
For OV2640, it shows faster FPS and less noise at 10 MHz, VGA resolution. It seems that more tests are needed for speed and quality with changing XCLK.
@@ThatProject for very low light conditions you can go down to 2 MHz. who knew that XCLK affects exposure time!!! that was the source of my quality degradation problem after the v1.0.4.
@@ThatProject External antenna and good power will improve image quality for OV2640, seems bad schematic for this module. With external antenna I have not color lines anymore.
@@docwhogr OMG. That's a crazy idea. Two thumbs up. I'll try it sooner or later.
@@kDnZP Totally agree with you.
The problem is that the same problem occurs even if I use the PCB I made, not the AI-Thinker board. Of course, no external antenna was used here either. Anyway, thanks for the comment.
Hi, awesome video. I also have a waveshare 5640 cam but I cannot figure out what settings to put in a custom arduino sketch. Do you use "#CAMERA_MODEL_AI_THINKER"? or a different set. Appreciate your video and any hep
All pins are the same as the AI-THINKER board. You need to use it #CAMERA_MODEL_AI_THINKER.
Hello, can you share the PCB design or link for the carrier board? The "That Project By Eric Nam". Thank you!
Unfortunately, this is not the PCB I made. I just bought it and used it.
Hello! Thank you for your video. I have some issues to develop the Camera Web Server for OV5640 and I saw in the video that you already have the interface working well. Could you share me your code, please?
As mentioned in the video, this is a built-in example of the ESP32 Arduino. If the ESP32 version is 2.0.X, you can see the same screen as me.
My OV5640 is only showing a res of 1600x1200? What else do I have to do to get full res? Thanks
Do you use CameraWebServer? Are you sure it recognized your OV5640? It should display OV5640 in the title of your web browser.
@@ThatProject after reinstalling it now works but gets very hot and shows higher res images white or pink if at all. :-(
@@MONKEY-vi7hx That's not a good sign. Unfortunately, seems your OV5640 is not the same as mine. For reference, I'm using WaveShare's product.
Sorry, but I didn't get what time is required to take (and store or transfer) 5 Mpix *still* photo on ESP32 with OV5640 sensor. I need to know how fast I can take photos with it.
@@igg5589 According to the OV5640 datasheet, it says that you can get 15 fps at QSXGA (2592x1944), but this is not possible in the ESP32 environment. You mentioned a still photo, why is it important to acquire the image quickly in this case?
@@ThatProject I want to try making HDR photos (set of slightly underexposed, normally exposed and overexposed). So if subject/camera will move a lot I'll get blur.
@@igg5589 I don't know about dynamic range, but exposure control is possible at the registry level.
Hey, can you advise on how can i manage to build a camera to run at 480p90? or anything smooth in the range of 80-90fps (i'm trying to build a low cost IR Tracking, so i need a high fps build, resolution isnt important)
Unfortunately on ESP32, you can't get more than 30fps at 640x480 resolution. It's recommended to look for other platforms (Like Raspberry Pi).
Hello, great video Sir.
But i have a question, do we can also remove the IR filter in OV5640?
i once removed the IR filter from OV2640 160 angel cam
Since it is very similar to the OV2640, I think you can force it to remove the IR Filter.
thank you for the answer Sir
Hi, what do you achieve by removing IR filter?
Could you advise on trying to build a small solution for 60fps camera at 720p. And transmit via IP
Well honestly, 60fps at 720p is not possible with ESP32CAM. 25 fps at VGA resolution is the maximum. It's recommended to do your project based on the Raspberry Pi.
Hi Eric. Im having a problem. The example sketch is still giving me the Toggle OV2460 settings UI even though the sketch is identifying the camera as OV5640 (PID 86) and isn't giving me the advanced options and resolutions.
The PID of the OV5640 is 0x5640.
I have two OV5640's and both are recognized properly and I can access all UI interfaces. They have no problems at all. Where did you buy it from? FYI, I'm using Waveshare's OV5640.
@@ThatProject I added "Serial.print(s->id.PID);" to the sketch after "esp_camera_sensor_get" and it prints 86. 0x56 in hexadecimal.
Under sensor.h in the example sketch has "#define OV5640_PID (0x56)" so the board can see the 5640, but loads the 2640 interface anyway. Maybe there was an update somewhere that broke the code? I am a hobby programmer and quickly get lost in code.
I bought the Taidacent OV5640 from amazon and it seems like a true ov5640.
Edit: I realized I posted a duplicate comment with a link, so sorry if it went under review and sent two notifications :)
@@rileyjones7231 I put the same PID checking code as you and tested it.
sensor_t * s = esp_camera_sensor_get();
Serial.print("Show me PID: ");
Serial.println(s->id.PID);
*Serial Monitor
Show me PID: 22080
Decimal(22080) -> Hex(5640)
My OV5640 outputs 22080. Sorry I have no idea why you got 86.
@@ThatProject Strange, sounds like I have a different version of the sketch that uses different pids, I might try forcing the code to use 5640 as the pid instead of letting it discover it. Or looking around in different board versions for the same sketch that uses the camera model as the pid
Thank you for all your help! Love the channel
Hi! I have just found a ESP32-Cam PLUS version in online market. Any experience with thia module? Thanks!
ESP32-CAM Plus???
Do you mean the TTGO T-Camera Plus?
Hi, as you suggested i have used ov5640 from waveshare but when trying models from 2 other suppliers they were overheating and the picture was gradually turning white/green. Any ideas?
Hey Domen, Where did you get those? Are you sure they're genuine products of Waveshare? I have 2 of them and I didn't have any issues when I make the OV5640 library for the auto-focus mode.
@@ThatProject hi, i've got them from some chinesse supplier. I also have one from waveshare and it works great, but it's just too pricy
At 1:30 you show installing the OV5640 onto a ESP32 Cam board. Do you have to install different cam software to support it? Are there any other changes made to the ESP32 Cam board to get the much better quality of the OV5640?
All you need is the latest version of ESP board. I tested this code 2.0.1 and 2.0.2 and it worked fine. Let me know if it has an issue.
@@ThatProject I finally got it working. The OV5640 shows up with much higher speed and resolution available but the video quality is much worse than OV2640 so far. Grainy and colours are off. I used Board: "AI Thinker ESP32-CAM" and #define CAMERA_MODEL_AI_THINKER.
@@NN-rd3mk That's weird. Where did you get your OV5640?
@@ThatProject An Ebay supplier I have bought many other devices from. I think it's a OV5640 software setting problem. That's why I asked about your settings. OV2640 on the same board is fine. I tried a second OV5640. Same thing.
@@NN-rd3mk No, I didn't do any settings for the video quality. Please note that WaveShare's OV5640 and Chinese clone products are not perfectly identical.
Nice explanation. May i know ESP32 Supports H.264 Encoding?
Not really doable on esp32. Not enough memory and processing power to encode into H.264. The mJPEG is probably the best you can get.
So you made custom pcb's for this demo?
ThatProject
I'm new to cams and this is interesting.
No, this is the ESP32 AI Thinker board currently on the market using OV5640 instead of OV2640.
Nice! Congrats to this video. Regards
Nice info, thanks :)
Hey man thanks for this helpful video, i want abit of your help and thoughts on something i want to start and work on , which is a little home security cam using maybe one of the cams you mentioned in this video, i want to run 2 esp32 LAN one capturing the image and being able to check it through the network and the other esp32 being connected to a display to have a easier way of seeing whos at the door, what im thinking of doing is connecting the security esp32 cam with a battery and making a enclosure for it to protect it from the dust but it will just sit right on a window above the front door. Any thoughts on this project and maybe abit of your help? Thanks in advance
ESP32-CAM can be used on battery power, but if you continue acquiring images, battery consumption will be very high. Like a typical door camera product, have you thought about any triggering? For example, the camera could turn on by motion recognition.
Hey man , i want the setup to be more clean and dont want to run a cable through the ceiling you know , thats why im looking at how to make such little system energy efficient, so do you think have some sort of sensor is good? To kinda wake the cam up and the esp32 from deep sleeping , by the way i got at the moment a motion sensor home , loads of esp32's @ThatProject
@@alixmichael-yv4go What I just want to say is that the ESP32-CAM cannot continue to run when running on batteries. This consumes a lot of battery power. It may be effective to use some external sensor to wake the ESP32-CAM from deep sleep. It can save more power through minimal battery consumption.
@@alixmichael-yv4go I don't have a 5640 to test but the 2640 with esp32-s together consume 200mAh when idle (not sleeping) and 300mAh when capturing and transmitting via WiFi, so you'd need 4000mAh battery to keep it transmitting for 24h if you have a good quality 3.3v voltage regulator or 5000mAh if you use a USB power bank (double voltage regulation from ~3.7 -> 5 and 5 ->3.3v). With a PIR motion sensor though, you can hook up the "motion detected" pin to an IRQ pin and keep the esp in deep sleep, which allows the same battery to last for weeks. However, after coming out of deep sleep it takes a few seconds to establish the network connection so you'd have to buffer the images right away and use a separate task on the second core to handle the networking and upload the images afterwards to not miss any action.
Hi, i have a question. Im using TTGO T-Call ESP32 SIM800L and i want to use esp32CAM camera to the TTGO board. Can you teach me how to connect it and generate a simple code to test it out? tq sir
Image data can be transmitted via serial or Bluetooth LE, but requires detailed work. If you have to use the SIM module with image acquisition, wouldn't it be more convenient to use this? ua-cam.com/video/kOYJ-4oZ8Ws/v-deo.html
There this ov5640 that have 200 degree lens, can you review it?
can we interface the ov5640 or ov2640 using other microcontroller like stm32 ? will the results get better ? (fps, resolutions, etc)
Check this out.
github.com/SimpleMethod/STM32-OV2640
@@ThatProject nice, thank you.
I just received the ov2640 with 24 pins connector. My question: can I run it with SPI ?
Its interface is SCCB. Please check this out www.waveshare.com/w/upload/1/14/OmniVision_Technologies_Seril_Camera_Control_Bus%28SCCB%29_Specification.pdf
I bought the OV5640 module and it sees it on the esp32cam and it works but it doesn't make a connection, but when I try it with the ov2640 it makes a connection. What should the PID settings be for ov5640 or where should I enter them? please urgent 😭😭😭😭😭😭😭😭
In what environment does ESP32-CAM run? ESP-IDF? Arduino?
OV5640_PID is checked automatically, so you do not need to check it. Looking at the CameraWebServer example, it automatically distinguishes between OV2640, OV3660, and OV5640 and displays the required screen to the user. It would be a good idea to double-check the connection between your ESP32-CAM and OV5640.
I can take images with another example, but when I use it with the CameraWebServer example, it does not connect. It only connects when I plug in the ov2640. When I plug in the ov5640 there is no connection.
@@ThatProject
Is the slow fps due to the data being transfered over wifi? If so, if i connect it to a sd card module and record the data on it instead, will i be able to get the full fps that's on the datasheet?
Good point. I would say yes or no.
When transmitting via WiFi, a bottleneck occurs in the process of taking and sending photos. This is the biggest cause of low FPS.
As a result of my testing in another video, showed similar results to the datasheet in obtaining the image frame buffer only without saving or transferring.
When continuously writing images to an SD card, you will be able to get a sufficiently good FPS if there is no delay.
The cause of the bottleneck is that the process of obtaining the image frame buffer and writing or sending the file is not processed in parallel. Unless this fundamental issue is resolved, I believe that saving images externally will inevitably result in frame drops.
If you use a antenna it improves greatly. You can also wrap the end in copper tape to improve the signal. Google that for pics.
is it good for ID cards recognition
i have tried ova2607 but it was very blurred
Excuse me, what is ova2607?
Great topic, thanks 👍
Best environment for ov5640?
anything except esp32
I mean what hardware should I use, I'm trying to research AI cameras
tks
well. I'm not sure if ESP32CAM will work effectively in your study. Have you tried OV2640 first before OV5640?
STM32h747 or pi
you changed the xclk on the camera and reduced by 50% you did not mention why. from my experince a higher clock produced much faster fps and much cleaner moving objects. more heat is produced and im sure its a battery drain, tho I would assume it depends on your use case. it is also possible to change lens creating differnt results.
Of course, you're right. You can usually get faster fps with higher clocks. But there are other cases. Changing XCLK is a kind of old story. I've also mentioned this in one of my ESP32CAM videos. Anyway, check this out. github.com/espressif/esp32-camera/issues/15
Hey dude, I need a camera that can accurately read text(like english paragraphs) and mathematical notations off of textbooks. Is the ov5640 capable of that? if not, which camera should I purchase? I'd prefer it to be compatible with esp32 cam board
I have recently been using the AMB82-Mini camera module and it is very useful. Check this out. ua-cam.com/video/TGqOUVhQQY8/v-deo.htmlsi=U5CVZZWozqhmZcMy
@@ThatProject hmmm i'll definitely check it out, thanks!
Nice and useful video! Thnx, bro!
Too bad that OV5640 cannot perform at least 25-30 fps at decent resolution... :(
Do u know any other (not too expensive) and (pretty small) way to get 720P@25-30FPS via wi-fi? IP-cams are pretty big.
Greetings from Russia :) And sry for not the best english.
Please check this post. Seems like there is a way to get more FPS.
www.reddit.com/r/esp32/comments/vndbh7/how_to_increase_fps_on_esp32cam/
If it doesn't work, you need to use other platforms like Raspberry Pi.
@@ThatProject oh. Thanks, gonna try it.
Bro can you pls share code or project on to record vid to SD card using Ov5640 with ESP32
Take a look at this.
github.com/jameszah/ESP32-CAM-Video-Recorder-junior
I think this is what you want and you can just replace it with OV5640.
hello, can you provide me the sketch of the ov5640 version?
thanks
This is an ESP32CAM basic example.
You can find it from, Examples>ESP32>Camera>CameraWebServer.
And your installed ESP32 version should be 2.0.x not 1.0.6.
@@ThatProject my version was still at 1.0.6
give the error.
I will update and check
thanks
Hello great explanation btw. I have a doubt I'm currently working on a project which require physical approach. I have a DL code in my pc and im using pc webcam to work on it. But now i need to use some physical thing. I'm thinking of using ESP 32. I have tp send the direct video stream to the pc where the code is and i need to detect the object how can i proceed please anyone help me..
How should it be connected to the PC? Wireless Network? Wired Network?
Hi, can you share the program for OV5640?
I'm just using the example source code.
You can try it through Arduino IDE>Examples>ESP32>Camera>CameraWebServer
If you are using the OV5640 you will see the extra options.
@@ThatProject Thank you
Didn't understand anything but video was good tho
😂 Sorry about that.
hahahaha
Bro can we use mobile high mega pixel cam in this module. Please reply?
It is possible to take high-resolution images, but sending them through streaming will be very slow due to the large size of the images. This is not a good solution if your project requires high-resolution continuous images.
Looking realtime Streaming reach 60Fps or 120Fps.
Through 2.4Ghz and 5Ghz
Can you make that Project ?
haha. It seems impossible in ESP32??
Is it possible to manually set exposure time?
You can simply change the exposure level. To manually change the exposure time, you need to modify the register. I'm very interested in the exposure part, so I'll try a new project about this when I get a chance.
Hi, insane video. May I ask you for the code of the ov5640 web server?
CameraWebServer is a basic ESP32 example.
You can try it through Arduino IDE>Examples>ESP32>Camera>CameraWebServer
If you are using the OV5640 you will see the extra options.
@@ThatProject thank you very much for your quick reply.
5640 needs an esp32 S3 or C6 👍🌲
Any specific reasons?
@@ThatProject they're faster
my OV5640 runs extrememly hot and then freezes... do you have the same issue?
Which company's product is it? I only tested with WaveShare's OV5640 and had no problems at all.
@@ThatProject several different modules bought off amazon and ali I'll get a waveshare and try it. What is the base code you are using for the project? I have noticed I get a high frequency humming from my board when the camera are running and wonder if there is a problem with my code base
@@AaronVanTassle I used the example source of the ESP32 Camera for testing.
Arduino > Examples > ESP32 > Camera > CameraWebServer
By checking the PID and VID of the OV5640, you can automatically check more functions compared to the OV2640.
The same thing happens to me. Extremely hot.
@@TheAviationAnonymous It seems to operate at a relatively high temperature compared to the OV2640. I'm checking what the problem is.
How could I take live video of arducam in python code?
I want to take live video in python and face detection & motion detection. please help me.
I don't get it. This project doesn't use Arducam here. Are you talking about Arducam mega or just commenting on the wrong video?
Is it good at autofocusing the biological Microscope?
@@kilojoules490-wp3bo I think it would be possible to use it by additionally installing a microscope lens on top of this. I'm also looking into this, but it seems difficult to mount it perfectly on the OV2640/OV5640.
@@ThatProject thank you for the reply I'm actually making this as a thesis project using the esp 32 camera module attached on the lens of a biological microscope 🔬, and paired it to the phone wirelessly via WiFi and controlled the fine and coarse adjustment knob of the microscope using stepper motor. Can u do a test video of the microscope attach the esp32 cam. autofocus.
Can we user other camera for esp32 ai thinker?
There aren't many options.
10u bro, just what i need
А как транслировать не на веб-страницу, а на другую esp32 с дисплеем? Объясните пж кто знает или скажите где можно об этом по читать.
Are you looking for this kind of project? ua-cam.com/video/OdEmfRKDJts/v-deo.html
O mais caro é inferior em desempenho, vou tentar raspberry 3w, teria como fazer um comparativo desses dois vs raspberry 3w?
Vou tentar quando tiver oportunidade.
Can you use raspberry pi zero ov5647 camera?
I think so. Please check this post. www.arducam.com/docs/cameras-for-raspberry-pi/native-raspberry-pi-cameras/5mp-ov5647-standard-camera-modules/#ov5647-full-datasheet
Hello how can I increase fps to 20 or 30 in cam webserver
To be honest, it's not easy in an ESP32 environment.
Buffer->MCU->WiFI->WebServer
As the image data moves, bottlenects occur and the FPS drops. But pretty sure you can get at least 20fps at VGA res.
Can I use ov5640 with wifi esp32 module of ov2640
The problem seems to be that there are several different types of OV5640. You will need to purchase after confirming that it works on the ESP32-CAM AI Thinker board.
@@ThatProject that's what i was saying. I just need improved video quality, that's it, I already have the esp32 cam ov2640 module
@@codmhumanoid9271 This is what I used for this project. This seems to work without a problem. amzn.to/3EPWCCs
How i Could save the streaming ?
This program records an mjpeg avi video to the sd card of an ESP32-CAM. Please refer to it. github.com/jameszah/ESP32-CAM-Video-Recorder-junior
@@ThatProject I was about to say the same thing 😀 Looking forward to the ov5640 series! Already saw the next video.
Had to turn on CC... please speak slowly and PRONOUCE your words. I am asian myself and have had to overcome this aswell
I think that’s rude to talk about people’s accent, as all individual have our own. Further more, this gentleman is so generously sharing his projects, replaying the clip a few more time will soon get you adapt to his accent and learn something from him.
You can always slow down video speed, if you're having hard time understanding what he is saying.
Indeed, it took a while to make sure i was listening to an english spoken video
@@muhammadshahzaib3813 showing down doesn't make his diction better
That is just rude.
bro is that a weird lens or you got small fingers for the hand?
Is it that weird? I think it looks that way because it uses a 160-degree Fisheye lens.
4:39 I was scared by that too, but the image next to it looked OK :)) First 2 seconds I was like "poor kid 🤨" 😅
please, share your lcd type
It's ST7789.
@@ThatProject thank you bro
Can I use OV5647 ?!
I've never tried OV5647 yet so I have no idea about it.
@@ThatProject Ok I will try thank you🌷
@@mohammedalarashi6239 Hi! Have you tried to use OV5647 with the ESP32-cam yet? If so, did you make it work?
Grava audio?
I don't know your language.
I don't understand
ông người việt à
???
you are hard to understand :(
Sorry about that.