shariltumin / esp32-cam-micropython

Micropython esp32-cam
85 stars 28 forks source link

Error when initializing camera #5

Open uraich opened 4 years ago

uraich commented 4 years ago

When initializing the camera I get: E (34460) gpio: gpio_install_isr_service(409): GPIO isr service already installed which produces a fatal error in camera.c of the esp-idf esp32-camera component. I transformed this into a warning without dropping out of the initialization procedure. Like this things seem to work. I am trying to port the esp-who project to micropython and I extended your micropython c-module (modcamera.c) quite a bit, adding all the functions needed to control the camera (colorbar, hmirror, vflip ...) If interested in the code, please let me know.

ywz978020607 commented 4 years ago

camera.init() I (437234) sccb: pin_sda 26 pin_scl 27

E (437234) i2c: i2c driver install error I (437234) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 E (437304) camera: Detected camera not supported. E (437304) camera: Camera probe failed with error 0x20004 E (437304) camera: Camera Init Failed False

I want to know how to fix it. I used the esp32-cam by Taobao which is usually used. Could you please put a firmware of this kind? I think most users in China would use this one.

uraich commented 4 years ago

Did you compile MicroPython with the camera driver yourself or did you use the binary version supplied?

ywz978020607 commented 4 years ago

Thank you. I have solved the problem. I found that my camera was anti-plug...

杨文哲

ywzsunny2012@163.com | 签名由网易邮箱大师定制 On 4/10/2020 20:56,Uli Raichnotifications@github.com wrote:

Did you compile MicroPython with the camera driver yourself or did you use the binary version supplied?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

hklang10 commented 4 years ago

Patching the esp-idf/components/esp32-camera/driver/camera.c worked for me.

See this:

https://github.com/espressif/esp32-camera/pull/145/commits/528c97a8723f154caf7797aa860ade4845e06a06

shenzhenjinma commented 2 years ago

Me too, is there any way, please tell me the information,thanks