Skip to content
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

I'm getting an error message when trying to upload #1

Closed
FBMinis opened this issue Jan 28, 2021 · 65 comments
Closed

I'm getting an error message when trying to upload #1

FBMinis opened this issue Jan 28, 2021 · 65 comments

Comments

@FBMinis
Copy link

FBMinis commented Jan 28, 2021

G:\arduino-1.8.13\portable\sketchbook\esp32-cam_ov2640-timelapse\esp32-cam_ov2640-timelapse.ino: In function 'void setup()': esp32-cam_ov2640-timelapse:166:7: error: 'sensor_t {aka struct _sensor}' has no member named 'set_reg'
Ai-Thinker ESP32-CAM, I tested CameraWebserver sketch before and is working fine.

@raduprv
Copy link
Owner

raduprv commented Jan 28, 2021

You have to use the esp32s2 branch. That one is more updated.
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json

@FBMinis
Copy link
Author

FBMinis commented Jan 28, 2021

Thank you, tested and working.

Previously I tried the basic take-a-photo routine (it's in my repository), but the photos appeared over-exposed when captured outside. I uploaded CameraWebserver sketch and experimented with the options shown in the browser interface, then tried to manually set them in my own sketch but exposure levels didn't change. I found your code through a search engine and will now try to adapt it to mine.

If you happen to have a simplified sketch without the save to SDcard and go to sleep parts, that is, only the photo-capture part, it would be very helpful to me if you could share it.

(As you can see, I need to adjust the lense in my camera, as it is focusing very close.)

original (black and white selected)
raduprv

@raduprv
Copy link
Owner

raduprv commented Jan 28, 2021

Well, the sleep and SD part are just a few lines of code which you can remove by yourself.
The code is basically split in two parts: Take a picture when it's night and take a picture when it's daylight.
Unfortunately, controlling the exposure using the standard way (using the exposure register) doesn't seem to work for some reason. So you have to play with adding fake frames and fake lines, slowing down the clock, etc. But even so, very bright scenes will be overexposed.

@FBMinis
Copy link
Author

FBMinis commented Jan 28, 2021

I'm surprised it takes this much effort to capture a decent photo outside, considering how popular this board is. The work you've done goes too deep for my skill level, so thanks again for sharing it.

@FBMinis FBMinis closed this as completed Jan 28, 2021
@raduprv
Copy link
Owner

raduprv commented Jan 28, 2021

Thanks, I am glad others find it useful.
When I started working at it I had 0 experience with this sensor, but I was willing to experiment :) It's a shame there is no good documentation out there, I hate when companies do that. It's not like Omnivision would lose anything if they released all the technical info. This sensor is like 15 years old now.

@FBMinis
Copy link
Author

FBMinis commented Jan 28, 2021

Here is another example of your work in action, showing a photo taken in the night during with a wide angle lense.
IMG_20210128_210656
IMG_20210128_210730
00023_5531_4
img_1296

@raduprv
Copy link
Owner

raduprv commented Jan 28, 2021

Interesting lens :)
When I will have some time, I want to do the opposite, add a long tele lens to it.
Anyway, what is that board? A battery charger and a big battery on the other side?

How are you getting the files off the camera? Using WiFi? I had some big troubles getting the wifi to work on this particular board. The connection is really bad, yet the same program works fine on a different board (m5Stack). I've heard of others having wifi trouble with the ESP32 cam, so I think there might be some bad batches or something.

@FBMinis
Copy link
Author

FBMinis commented Jan 28, 2021

The ESP32 in the following photos was used with the ldr to measure brightness until I found your code. You can see the smartphone battery going to a TP4056 charger module, then the voltage is regulated to 3.3V through a HT7333 and a 470uf capacitor to keep current stable. The charger module will be connected to a small solar panel to keep the battery charged. The assembly will be attached to the old antenna mast on our roof so I can get some nice pics of my village while I'm away during the week.
At this point I'm still using your sketch and saving the photos to SDCard. In terms of Wifi problems, do you use the external antenna? It works much better than the onboard one, in my experience. When I tried the CameraWebserver with the new ESP32 board today, i was getting a crippling frame rate even at lowest resolution; then I found online someone saying if you grabbed the onboard antenna the framerate would improve, and it did! Next I moved the zero ohm resistor and added a new antenna from an old laptop and the images flow like normal webcam video, perfectly acceptable.
IMG_20210128_154536
IMG_20210128_154840

@raduprv
Copy link
Owner

raduprv commented Jan 28, 2021

Actually, I want to do something similar to what you did, was thinking to add a solar panel and a small Lifeso4 battery to the camera for outdoors timelapses.
I also want to use a digital (i2c) lightmeter in order to use the board with different sensors. For some reason, the ov5640 sensor has a very unreliable lightmeter register, and despite my best attempts to get it to behave properly it still doesn't work. So I have to use some external device for that, but not sure if I can use an i2c connection on that board, since the internal ones are connected to the camera instead.

@FBMinis
Copy link
Author

FBMinis commented Jan 28, 2021

The GPIOs of the ESP32-Cam by AI Thinker I have are full, I think it doesnt allow SDCard and I2C to be used simultaneously..
IMG_20210117_140419

LiFePo4 is a good idea:
https://www.youtube.com/watch?v=heD1zw3bMhw
And the charger board:
https://www.youtube.com/watch?v=ttyKZnVzic4

@raduprv
Copy link
Owner

raduprv commented Jan 28, 2021

I know that there aren't exposed i2c pins, but from what I've read (though not tested) esp32 can use most pins as i2c and you can define your custom pins in the code. The SD card use SPI though, no?
My m5Stack has an i2c port, but no SDCard (so it's not very convenient for me).

I put my ov5640 project on hold for now, I will investigate more after I resume it.

@FBMinis
Copy link
Author

FBMinis commented Jan 29, 2021

10 hour timelapse with virtual dub. Very nice colors and image, it should be like this by default 👍

ezgif-3-bff722136e2d

@raduprv
Copy link
Owner

raduprv commented Jan 29, 2021

I am glad you like it :)
What interval did you take the pictures at?

@FBMinis
Copy link
Author

FBMinis commented Jan 30, 2021

Hi! I captured a frame every 10 minutes, then renamed the files so Virtual Dub auto-opens then as a sequence, adjust the Framerate under the Video menu and save as AVI.
I left it outside for a 24h timelapse but forgot to turn the power On...

@FBMinis
Copy link
Author

FBMinis commented Jan 31, 2021

Have you had any trouble with sketches when using the Development Release of esp32? I am not able to connect to telegram API when I use the same sketch I used before with the stable release.

As a test, I installed two "portable" instances of the Arduino IDE in different partitions, one running ep32 dev and the other the stable release. Same sketch, the one running with dev core doesnt connect to telegram api, therefore i cant interact with it.

As another test, I tried the WifiClientSecure in the examples menu, and stable release connected to api.telegram.org but dev gave me an error.

@raduprv
Copy link
Owner

raduprv commented Jan 31, 2021

I haven't tried anything except for the camera stuff. Open an issue there and see what they say about it.

@FBMinis
Copy link
Author

FBMinis commented Jan 31, 2021

Reverting back to the version of WiFiClientSecure that came with 1.0.4 (dated 2-Oct-19) restores functionality and sending images no longer fails.

@FBMinis
Copy link
Author

FBMinis commented Feb 4, 2021

36 hour timelapse. You can see some over exposures around noon, sky was overcast, no direct sun.

https://imgur.com/a/ig6ovtD

@raduprv
Copy link
Owner

raduprv commented Feb 4, 2021

Not bad, but why aren't you trying a shorter interval between pics, such as 30 or 60 seconds?

@FBMinis
Copy link
Author

FBMinis commented Feb 4, 2021

No reason, its the first time I make these, I will try with a shorter interval.

@raduprv
Copy link
Owner

raduprv commented Feb 4, 2021

From my observations, 30 seconds works best, but 1 minute is ok too. 30 seconds is pretty smooth.

@FBMinis
Copy link
Author

FBMinis commented Feb 8, 2021

https://www.youtube.com/watch?v=0tbTavNVE7U

48h timelapse; 1 photo per minute; 15 frame per second.

Possible to fix this that happens at late morning?
2062

@raduprv
Copy link
Owner

raduprv commented Feb 8, 2021

Nice timelapse :)
Unfortunately no, at least not as far as I know. The problem is setting the min exposure. I am unable to set it to lower than it is. I think a faster clock rate would fix some of it, but unfortunately ESP32 cam can't use more than 20 Mhz.
If someone finds a way on how to set an exposure lower than that, I'd be really happy.

Meanwhile, I am playing with an ov5640 sensor, where I can set the exposure properly, and as an added bonus it's 5MP. However, that requires an external lightmeter, as I can't get its lightmeter registries to behave in a consistent manner.

@raduprv
Copy link
Owner

raduprv commented Feb 21, 2021

You are trying to get the frame buffer too early. You commented out the code that waits for the framebuffer to finish. You should call your upload function at the place where I actually save the file on the SD card (and uncomment the while loop).

@FBMinis
Copy link
Author

FBMinis commented Feb 23, 2021

I dont know what happened but it seems I deleted my previous post. I was able to fix it thanks to your tip, i can now capture a frame with your code and have it sent to my Telegram group:
raduprvSendTelegramOnWakeUP.ino.ino.zip

Are you working on the ov5640?

@raduprv
Copy link
Owner

raduprv commented Feb 25, 2021

I am working on and off with the ov5640 sensor. Unfortunately, it needs an external lightmeter, because I can't get the sensor to reliably tell me the ambient light level. I am using an BH1750 i2c sensor.
I almost got it to work, but still need to add more values for different light levels, and the problem is, for some reason my camera crashes sometimes and I don't know why (it only crashes when on external power).

@dannutu
Copy link

dannutu commented Mar 27, 2021

You have to use the esp32s2 branch. That one is more updated.
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json

Salut!

NOT an issue with your code here, I was just wondering if you'd have any hint for me since I noticed (on other threads) that you put in quite some effort to get these cameras working. I can't get past "esp_camera_fb_get(): Failed to get the frame on time!" when trying to capture JPEGs no matter what, both with your code and with any other camera code I tried. I have 4 different ESP32-CAM modules from 2 vendors, they all behave the same way. They're all "el cheapo" modules shipped from China, all of them have the Espressif logo on the metal shield, not the AI Thinker one. The cameras are all OV2640s.

I noticed I could get some output from the camera using PIXFORMAT_YUV422 instead of PIXFORMAT_JPEG but the colors are way off and then YUV is not what I need (JPEG). I posted a description of what I tried at the URL below but that issue is closed and so I don't expect anybody will notice it while there are dozens of open issues:
espressif/esp32-camera#43 (comment)

WRT your code: I was able to compile and upload it, it ran but generated the same "esp_camera_fb_get(): Failed to get the frame on time!" errors. I was really hopeful when I finally saw the message "Saving first file as /00000_29822_37.jpg" but I checked the SD card and the files are empty (0 bytes).

I'd really appreciate if you had any hints whatsoever as I ran out of ideas here :(

Cheers!

17:00:06.830 -> Booting... at
17:00:06.830 -> 877
17:00:07.529 -> First light is 37
17:00:07.529 -> Old 0x0 value is0
17:00:07.529 -> Getting first frame at
17:00:07.529 -> 1572
17:00:11.549 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
17:00:11.549 -> Got first frame at
17:00:11.549 -> 5607
17:00:15.740 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
17:00:15.851 -> Not having image yet, waiting a bit
17:00:19.770 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
17:00:19.770 -> Not having image yet, waiting a bit
17:00:23.760 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
17:00:23.760 -> Not having image yet, waiting a bit
17:00:27.750 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
17:00:27.750 -> Not having image yet, waiting a bit
17:00:31.773 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
17:00:31.773 -> Not having image yet, waiting a bit
17:00:35.731 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
17:00:35.764 -> Saving first file as /00000_29822_37.jpg
17:00:35.764 -> Entering deep sleep mode at
17:00:35.764 -> 29828
17:01:05.590 -> ets Jun  8 2016 00:22:57
17:01:05.655 ->
17:01:05.655 -> rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
17:01:05.655 -> configsip: 0, SPIWP:0xee
17:01:05.655 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
17:01:05.655 -> mode:DIO, clock div:1
17:01:05.655 -> load:0x3fff0018,len:4
17:01:05.655 -> load:0x3fff001c,len:1216
17:01:05.655 -> ho 0 tail 12 room 4
17:01:05.655 -> load:0x40078000,len:10944
17:01:05.655 -> load:0x40080400,len:6388
17:01:05.655 -> entry 0x400806b4
17:01:06.654 ->
17:01:06.654 -> Booting... at
17:01:06.654 -> 877
17:01:07.351 -> First light is 35
17:01:07.351 -> Old 0x0 value is0
17:01:07.351 -> Getting first frame at
17:01:07.351 -> 1572
17:01:11.376 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
17:01:11.376 -> Got first frame at
17:01:11.376 -> 5607
17:01:15.463 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
17:01:15.463 -> Not having image yet, waiting a bit
17:01:19.483 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
17:01:19.483 -> Not having image yet, waiting a bit
17:01:23.469 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
17:01:23.469 -> Not having image yet, waiting a bit
17:01:27.455 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
17:01:27.455 -> Not having image yet, waiting a bit
17:01:31.476 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
17:01:31.476 -> Not having image yet, waiting a bit
17:01:35.464 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
17:01:35.464 -> Saving first file as /00001_29692_35.jpg
17:01:35.464 -> Entering deep sleep mode at
17:01:35.464 -> 29698

@raduprv
Copy link
Owner

raduprv commented Mar 27, 2021

Can you post a picture on how your board looks like? Also, try to power the board directly from 5v or 3.3v (not from your USB).
Also, post a picture on how your board is connected to the computer.
I tried my code on 2 different boards and it worked on all of them, so if you tried it on 4 different boards and it doesn't work then you are either very unlucky or you are connecting it the wrong way to the PC.

@raduprv
Copy link
Owner

raduprv commented Mar 27, 2021

Btw, make sure you disconnect I00 from the ground after you flash the code, in my tests it can't find the external RAM if I leave it connected when I boot.

@dannutu
Copy link

dannutu commented Mar 27, 2021

Make sure to try with the default 20Mhz clock, the sensor is very fussy about speed. I only tested it at 20Mhz.

Same same:

  //init with high specs to pre-allocate larger buffers
  if(psramFound())
  {
    Serial.println("psram DETECTED");
    config.frame_size = FRAMESIZE_UXGA;
    config.jpeg_quality = 3;
    config.fb_count = 1;
  } else
  {
    Serial.println("psram NOT detected");
    config.frame_size = FRAMESIZE_SVGA;
    config.jpeg_quality = 12;
    config.fb_count = 1;
  }

#if defined(CAMERA_MODEL_ESP_EYE)
  pinMode(13, INPUT_PULLUP);
  pinMode(14, INPUT_PULLUP);
#endif

  Serial.println("Configuring PIXFORMAT_JPEG,xclk_freq_hz 20000000, FRAMESIZE_UXGA, jpeg_quality 50, fb_count 1");
  config.pixel_format = PIXFORMAT_JPEG;
  config.xclk_freq_hz = 20000000;
  config.frame_size = FRAMESIZE_UXGA;
  config.jpeg_quality = 50;
  config.fb_count = 1;

  //initialize camera
  esp_err_t err = esp_camera_init(&config);
  if (err != ESP_OK)
  {
    Serial.printf("Camera init failed with error 0x%x", err);
    return;
  }
23:04:09.226 -> Booting... at
23:04:09.226 -> 878
23:04:09.226 -> psram DETECTED
23:04:09.226 -> Configuring PIXFORMAT_JPEG,xclk_freq_hz 20000000, FRAMESIZE_UXGA, jpeg_quality 50, fb_count 1
23:04:09.690 -> First light is 62
23:04:09.690 -> Old 0x0 value is0
23:04:09.690 -> Getting first frame at
23:04:09.690 -> 1376
23:04:13.735 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
23:04:13.735 -> Got first frame at
23:04:13.735 -> 5412
23:04:17.945 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
23:04:17.945 -> Not having image yet, waiting a bit
23:04:21.964 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
23:04:21.964 -> Not having image yet, waiting a bit
23:04:25.943 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
23:04:25.943 -> Not having image yet, waiting a bit
23:04:29.924 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
23:04:30.084 -> Not having image yet, waiting a bit
23:04:33.969 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
23:04:33.969 -> Not having image yet, waiting a bit
23:04:37.950 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
23:04:38.128 -> Saving first file as /00000_29627_62.jpg
23:04:38.128 -> Entering deep sleep mode at
23:04:38.128 -> 29638

@dannutu
Copy link

dannutu commented Mar 27, 2021

BTW, I just tried with SVGA frame size and it's still the same.

@raduprv
Copy link
Owner

raduprv commented Mar 27, 2021

What happens when you try the default web server streaming sketch? Does that work at all?

@dannutu
Copy link

dannutu commented Mar 27, 2021

Nope, same error!

@raduprv
Copy link
Owner

raduprv commented Mar 27, 2021

When you upload, use wrover, Huge APP.

@dannutu
Copy link

dannutu commented Mar 28, 2021

Hi

I tried that as well, just in case, but as expected, it didn't make any difference as the sketch comfortably fits in the standard partitioning scheme:

Before, with the the standard partitioning scheme:

Sketch uses 425434 bytes (32%) of program storage space. Maximum is 1310720 bytes.
Global variables use 18956 bytes (5%) of dynamic memory, leaving 308724 bytes for local variables. Maximum is 327680 bytes.

After, using the "huge app" partitioning scheme:

Sketch uses 425434 bytes (13%) of program storage space. Maximum is 3145728 bytes.
Global variables use 18956 bytes (5%) of dynamic memory, leaving 308724 bytes for local variables. Maximum is 327680 bytes.

Result:

09:37:08.310 -> Booting... at
09:37:08.310 -> 877
09:37:08.310 -> psram DETECTED
09:37:08.310 -> Configuring PIXFORMAT_JPEG,xclk_freq_hz 20000000, FRAMESIZE_SVGA, jpeg_quality 50, fb_count 1
09:37:08.576 -> First light is 4
09:37:08.576 -> Old 0x0 value is0
09:37:08.609 -> Getting first frame at
09:37:08.609 -> 1175
09:37:12.686 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
09:37:12.686 -> Got first frame at
09:37:12.686 -> 5246
09:37:16.865 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
09:37:16.910 -> Not having image yet, waiting a bit
09:37:20.910 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
09:37:20.910 -> Not having image yet, waiting a bit
09:37:24.882 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
09:37:24.882 -> Not having image yet, waiting a bit
09:37:28.909 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
09:37:28.909 -> Not having image yet, waiting a bit
09:37:32.890 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
09:37:32.890 -> Not having image yet, waiting a bit
09:37:36.905 -> [E][camera.c:1474] esp_camera_fb_get(): Failed to get the frame on time!
09:37:36.905 -> Saving first file as /00000_29461_4.jpg
09:37:36.905 -> Entering deep sleep mode at
09:37:36.905 -> 29475

Would you be able to share where you bought your ESP-CAM modules from? It might just be quicker if I order a couple from the same place... this thing doesn't seem to go anywhere :(

@raduprv
Copy link
Owner

raduprv commented Mar 28, 2021

Where do you live? I got them from a Romanian company.

@FBMinis
Copy link
Author

FBMinis commented Mar 28, 2021

I have tried this code and some variations of it with 4 different cameras without a problem.

I setup the components this way, connect to usb and press upload on the IDE:
IMG_20210328_203017

Once the download finishes, I disconnect usb and disconnect the red and green dupont cables, connect to usb again and open the serial monitor. Next, I connect the lipo to the 5V pin and the applications starts
IMG_20210328_203144

raduprv

@dannutu
Copy link

dannutu commented Mar 29, 2021

Where do you live? I got them from a Romanian company.

Aveam eu o banuiala, asa :)

My camera modules are labelled “AF2569 0927XB” and “DCX-OV2640-V2” and I just ordered 2 more but I’ll have to wait for a few weeks for them to arrive and see the exact model :(

@raduprv
Copy link
Owner

raduprv commented Mar 29, 2021

@dannutu
Copy link

dannutu commented Mar 29, 2021

I have tried this code and some variations of it with 4 different cameras without a problem.

Thanks for confirming. I guess it's a fact then - I am indeed very unlucky :(

@dannutu
Copy link

dannutu commented Mar 30, 2021

Eu le-am luat de la baietii astia: https://www.emag.ro/modul-esp32-cam-ov2640-camera-inclusa-ai065-s72/pd/DKDGT8BBM/?X-Search-Id=bac85ed86849c2aa0dc4&X-Product-Id=52395039&X-Search-Page=1&X-Search-Position=0&X-Section=search&X-MB=0&X-Search-Action=view

Am luat doua si au mers amandoua (doar ca au probleme cu WIFI-ul).

Asta-i chiar tare - ale mele nu au nici o problema pe partea de wifi. Doar ca nu le merg camerele alea, neam. Culmea e ca in poza de la emag camera e acelasi model ca 2 ale mele: "AF2569". Ale tale tot modelul asta sunt?
N-as fi avut o problema sa iau una si de la emag daca eram in tara, dar de aici mai greu :)

@raduprv
Copy link
Owner

raduprv commented Mar 30, 2021

Ale mele sunt TY-OV2 640-V2.0. Dar nu stiu daca conteaza asta, ca pana la urma senzorul e acelasi. Tu unde stai acum? Poti incerca sa iei de pe Banggood.

@FBMinis
Copy link
Author

FBMinis commented Mar 30, 2021

Here is a timelapse I made recently:

https://www.youtube.com/watch?v=JG_VSlk_VQs

I have one of these "TY-OV2 640-V2.0" and the image comes rotated 90º and the lense is wide angle. All 4 camera modules look the same and were bought from the same vendor in Aliexpress.

sample stock xga photo_2021-03-25_15-13-48
sample antena soldada xga

@dannutu
Copy link

dannutu commented Apr 2, 2021

Ale mele sunt TY-OV2 640-V2.0. Dar nu stiu daca conteaza asta, ca pana la urma senzorul e acelasi. Tu unde stai acum? Poti incerca sa iei de pe Banggood.

Primele 2 de pe uk.banggood le-am comandat pentru ca atunci le aveau in depozit in UK, nu trebuiau sa vina tocmai din China:

Dupa care am mai comandat 2 de la Aliexpress si am asteptat aproape doua luni sa vina si tot nu merg.

Am mai comandat inca doua camere (doar camera in sine, fara ESP32) si daca nici astea n-or sa mearga cand ajung cred ca o sa-i pun cruce.

Mai am o intrebare pentru tine - cand conectezi camera in ESP32, cum stii daca toti pinii aia au facut contact ca lumea? Mi-ai zis acum cateva zile ca "the sensor itself is working, and it is properly connected to the board, since the board can communicate with it just fine", dar ma tot intreb daca nu cumva vreun pin n-a facut contact cum trebuie.

@FBMinis
Copy link
Author

FBMinis commented Dec 1, 2021

I remember you are working with the OV5640. This guy is making some very nice hacks with the ESP-32 cam and now he's using that sensor:

https://www.youtube.com/watch?v=BCvOBMQSliY

@FBMinis
Copy link
Author

FBMinis commented Nov 1, 2023

So, yesterday I opened a sealed ESP32-CAM and it wouldn't capture a pic even though the ov2640 sensor works with other boards and this board runs WifiScan and other sketches that don't use the camera.

After many hours googling I found this familiar thread :)

The problem is common in esp32cam with OV2640 written on the sensor and the Espressif logo on the chip (instead of AI-Thinker)...

espressif/esp32-camera#43 (comment)
photo_1_2023-10-31_10-59-53
photo_2_2023-10-31_10-59-53

@raduprv
Copy link
Owner

raduprv commented Nov 1, 2023

All my cameras are like that and they work fine. But maybe there is a bad lot or something?

@FBMinis
Copy link
Author

FBMinis commented Nov 1, 2023

I dont know but I've tried everything, from power supply to changing clock frequency and pic format.

The lens works with other boards, the board can run other sketches without picture...

@raduprv
Copy link
Owner

raduprv commented Nov 1, 2023

Did you try a different sensor, like the 3 or 5mp ov ones?

@FBMinis
Copy link
Author

FBMinis commented Nov 1, 2023

I only have OV2640 sensors

@raduprv
Copy link
Owner

raduprv commented Nov 1, 2023

It's worth playing with other sensors too, they are not too expensive.

@FBMinis
Copy link
Author

FBMinis commented Nov 1, 2023

The OV5640 seems interesting https://www.youtube.com/watch?v=922BWy3OOoQ

@raduprv
Copy link
Owner

raduprv commented Nov 1, 2023

Yes, it's pretty fun, but if possible don't get one with an autofocus module, because most likely you won't be able to use it.

@FBMinis
Copy link
Author

FBMinis commented Dec 6, 2023

Radu, do we still need to use the dev branch of the esp32 core or can we use the latest one (2.0.13 I think)?

@raduprv
Copy link
Owner

raduprv commented Dec 6, 2023

I didn't test it, but it should work. I am getting a few new ones with the 5mb sensor and a proper programmer board, and might start playing with it again.

@FBMinis
Copy link
Author

FBMinis commented Dec 6, 2023

Ok, I will try both branches just in case. If you ever need to turn the camera on and off at a specific time, the DS3231 can be found at a low price again, after the pandemic and the chip shortage thing: https://www.ebay.com/itm/374678507378

@FBMinis
Copy link
Author

FBMinis commented Mar 25, 2024

stock 8225n v2.0 lens compared to dcx-ov2640-v2 160 degree lens from Aliexpress

(auto white balance during the day; white balance set to cloudy during the night gives nice colors under LED street lights)

stock 8225n v2 0 lens compared to  dcx-ov2640-v2 160 degree esp32cam

@raduprv
Copy link
Owner

raduprv commented Mar 25, 2024

The difference is only in the angle, right? The sensor is the same version I would guess.

@FBMinis
Copy link
Author

FBMinis commented Mar 25, 2024

Yes, it's the ov2640 with a 160 degree lens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants