-
Notifications
You must be signed in to change notification settings - Fork 5
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
Comments
You have to use the esp32s2 branch. That one is more updated. |
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.) |
Well, the sleep and SD part are just a few lines of code which you can remove by yourself. |
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. |
Thanks, I am glad others find it useful. |
Interesting lens :) 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. |
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. |
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.. LiFePo4 is a good idea: |
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? I put my ov5640 project on hold for now, I will investigate more after I resume it. |
I am glad you like it :) |
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. |
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. |
I haven't tried anything except for the camera stuff. Open an issue there and see what they say about it. |
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. |
36 hour timelapse. You can see some over exposures around noon, sky was overcast, no direct sun. |
Not bad, but why aren't you trying a shorter interval between pics, such as 30 or 60 seconds? |
No reason, its the first time I make these, I will try with a shorter interval. |
From my observations, 30 seconds works best, but 1 minute is ok too. 30 seconds is pretty smooth. |
https://www.youtube.com/watch?v=0tbTavNVE7U 48h timelapse; 1 photo per minute; 15 frame per second. |
Nice timelapse :) 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. |
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). |
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: Are you working on the ov5640? |
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. |
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: 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!
|
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). |
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. |
Same same:
|
BTW, I just tried with SVGA frame size and it's still the same. |
What happens when you try the default web server streaming sketch? Does that work at all? |
Nope, same error! |
When you upload, use wrover, Huge APP. |
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:
After, using the "huge app" partitioning scheme:
Result:
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 :( |
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 :( |
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). |
Thanks for confirming. I guess it's a fact then - I am indeed very unlucky :( |
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? |
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. |
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. |
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. |
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: |
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)... |
All my cameras are like that and they work fine. But maybe there is a bad lot or something? |
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... |
Did you try a different sensor, like the 3 or 5mp ov ones? |
I only have OV2640 sensors |
It's worth playing with other sensors too, they are not too expensive. |
The OV5640 seems interesting https://www.youtube.com/watch?v=922BWy3OOoQ |
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. |
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)? |
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. |
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 |
The difference is only in the angle, right? The sensor is the same version I would guess. |
Yes, it's the ov2640 with a 160 degree lens. |
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.
The text was updated successfully, but these errors were encountered: