Replies: 14 comments 21 replies
-
I pasted the raduprv code as an option in telegram -- it works but changes the framesize to uxga, which is okay but it seems to do this with the frame length and line adjust, rather than just the framesize adjustment, so breaks the video recorder. I suppose you would want to use the full sensor if you are doing stills in the dark. Do you understand the raduprv stuff about "frame length adjustment" and "line adjust" ??? I looked at that a last year, but gave up on it. Another option is to shut off the exposure control inside the camera, and let the esp32 make the exposure decisions, using those registers or just the camera driver calls. I'll have a look at it. |
Beta Was this translation helpful? Give feedback.
-
I don't know how he decided to do things that way. I exchanged a few messages with him through the Issues section and google his online presence, and I realized it involved a lot of trial and error, due to the absence of a final datasheet version for the ov2640 sensor - which would include info about specific registers. raduprv/esp32-cam_ov2640-timelapse#5 I found this today, which seems to be a bit of a breakthrough: |
Beta Was this translation helpful? Give feedback.
-
https://github.com/jameszah/ESP32-CAM-Video-Telegram/tree/main/test Try this one - mostly working -- some capture failures??? I think those register parameters just force the sensor (or the shutter) to stay open for 500 or 5000ms to absorb light in the darkness. So not great for video. use /radu to set up the exposure for current conditions - then it stays like that until you do it again. You could add it in advance of every timed picture, although it can take 10 seconds plus, with all my test pictures. |
Beta Was this translation helpful? Give feedback.
-
Took some photos inside the house after sending /radu and the increased light was noticeable, then placed the Cam outside (daytime) and the photos came over exposed, mostly blank. After sending /radu again I expect his settings would be completely disabled but the photos came back almost black and some moments later they'd come with a greenish hue. Sending /clip made the Cam reboot. I will try again in the evening but thank you for your time once more. The option /fphoto is a welcome addition. Previously I was turning the flash ON, take a photo, turn it Off and then take another photo to make sure the LED was off (surprisingly bright led, isn't it?). On occasion, I've also kept it On while recording a /clip. I've been running v9.5 for 8 days now without a single glitch, whereas with v8.9 I'd get some random reboots. I've also tested v9.6 with no negative results but have yet to put it in place. |
Beta Was this translation helpful? Give feedback.
-
It's admirable how you are reverse-engineering and finding a pattern between all those registers. Considering how exceptional v9.6 already is, I'm sure you will make it even better with a night-mode option. I'm just sorry I can't help more at this point. |
Beta Was this translation helpful? Give feedback.
-
Any progress on this? I'm eagerly waiting for this feature to be included. Best wishes for 2023 : ) |
Beta Was this translation helpful? Give feedback.
-
I haven't got back to that yet. Have you seen this: https://github.com/paoloinverse/CameraWebServerRecordeR_AstroEdition It is a fork of this one: https://github.com/jameszah/CameraWebServerRecorder ... which is a modified version of the espressif camera app where you can control all the parameters of the ov2640 camera and its registers, where I added the video recorder to sd function. The fork by @paoloinverse adds the file manager and download code to fetch your videos. He describes which parameters to edit to take videos of the sky. I think you have to interactively make the adjustments for your sky, and then click record. My idea was to measure the darkness and then add the register changes to record any level or darkness , and then add it to the telegram version, and the sd recorder version .... but have not got back to it yet. |
Beta Was this translation helpful? Give feedback.
-
I just realized you didn't get my reply, I don't know what happened... Thank you for mentioning that project, I wasn't aware of it. I tried it and indeed I was able to get some over-exposed photos. Hopefully you'll be able to merge that function with your code. |
Beta Was this translation helpful? Give feedback.
-
Some progress on above video. 18? hours of 5 minute photos. It is set up to use the regular exposure in the daytime and switch to radu mode at night. Some glitches in the transition. The blinking light is not actually blinking, but the exposure is changing every frame. The light-meter in the camera is re-scaled every time you change the exposure, so I think I have to start at a fixed exposure, change the parameters for each exposure. I think you would need a bright moon or stars to get anything without a bit of electric light. Youtube seems to have added some stuttering ??? |
Beta Was this translation helpful? Give feedback.
-
That area you're capturing probably looks pitch black without the radu mode, correct? I have been away from home for over a month, I have not been able to test that CameraWebServerRecordeR_AstroEdition . I have a camera pointing west for 4 months now, sending me photos periodically. The streetlights in the village have been replaced with LED and this area is quite well lit now but v9.5 can't capture it. Another camera also running for 4 months. 10W LED buld (3000K) |
Beta Was this translation helpful? Give feedback.
-
Still struggling with the twilight - mode 0 day, mode 1 night - flips a couple times |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Mostly working now, but still getting strange green shades when I change radu mode, but it is fine for the next minute at same settings ... taking a 25 pictures with various delays still ends up with some of these greens ???? |
Beta Was this translation helpful? Give feedback.
-
stock 8225n v2.0 lens compared to dcx-ov2640-v2 160 degree lens from Aliexpress |
Beta Was this translation helpful? Give feedback.
-
It would be useful if this excellent program would allow adjusting the exposure level in dark environments. If not automatically, maybe in a percentage set through a telegram message like /10pc, ..., /50pc.
I've played with other programs that do it but they had some inconsistencies and I'm just a hobbyist, I couldn't solve them.
Here is a resized photo taken with v9.6:
Here is a resized photo (UXGA res, white balance set to cloudy) taken with https://github.com/raduprv/esp32-cam_ov2640-timelapse/blob/main/ov2640_timelapse_github.ino:
All I've found regarding the ov2640 sensor, I uploaded to this repository:
https://github.com/FBMinis/ov2640driversource
It seems the author accesses the register bank and "manually" adjusts a few of them after evaluating the "light" level, but I would get overexposed photos during the day,. Letting the sensor stabilize for a few milliseconds, while a wifi connection was established, before capturing the frame buffer seemed to mitigate it, but I could never fix it.
Beta Was this translation helpful? Give feedback.
All reactions