raduprv / esp32-cam_ov2640-timelapse

A timelapse program for esp32 cam with ov2640 sensor. The exposure is done manually based on the light level, and the image quality is far better than the default settings.
Apache License 2.0
37 stars 5 forks source link

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

Closed FBMinis closed 3 years ago

FBMinis commented 3 years ago

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.

FBMinis commented 2 years ago

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 commented 11 months ago

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)...

https://github.com/espressif/esp32-camera/issues/43#issuecomment-635591135 photo_1_2023-10-31_10-59-53 photo_2_2023-10-31_10-59-53

raduprv commented 11 months ago

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

FBMinis commented 11 months ago

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 commented 11 months ago

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

FBMinis commented 11 months ago

I only have OV2640 sensors

raduprv commented 11 months ago

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

FBMinis commented 11 months ago

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

raduprv commented 11 months ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 6 months ago

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 commented 6 months ago

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

FBMinis commented 6 months ago

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