sipeed / MaixPy-v1

MicroPython for K210 RISC-V, let's play with edge AI easier
https://wiki.sipeed.com/maixpy
Other
1.68k stars 439 forks source link

sensor.reset() OV2640 failed with error init i2c2 [MAIXPY]: no sensor - Maxixduino -- Hardware design Badly Done #189

Closed Razecus closed 4 years ago

Razecus commented 4 years ago

Hello I have the camera that was shipped with the maixduino, OV2640, and i get the error, from the title, when i try to use the camera, after sensor.reset() i get the error. The camera was working before, and after some time stopped working. and i got the error. I had tried different ov2640, look like the camera ports on maixduino failed. (Since the camera works on other device). I had mesured the voltage on the camera regulators, and are ok, on the output of U3 3V0 and on the output of U12 1V3. Here is the code i try to run:

Untitled - By: cezar - Tue Dec 3 2019

import sensor, image, time

sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000)

clock = time.clock()

while(True): clock.tick() img = sensor.snapshot() print(clock.fps())

error message is like this:
In a gui messageBox " OS Error: Reset Failed"

in the serial console:

init i2c2 [MAIXPY]: no sensor

Traceback (most recent call last): File "", line 5, in OSError: Reset Failed MicroPython v0.5.0 on 2019-11-29; Sipeed_M1 with kendryte-k210 Type "help()" for more information.

MengXiao92 commented 4 years ago

I met the same problem, can you solve it?

Razecus commented 4 years ago

In my case, i believe it is ruined, i suspect that because camera was inserted with the board powered on, (my doter played with it ), and that caused the MCU I/O-ports to die in the M1 module. I have to confirm that, but i have no time at the moment, i plan to make a new pcb, for the M1 module, with protection on all the pins, so it can be plugged or unplugged while powered on. I will also like to have it more bulky, tinkerer friendly, with camera and display 2.54 mm pin headers, on board.

I do not know what happen in your case, with the board, may be camera was plugged while board was on, or may be other stuff, but if you flash it with stock firmware, and it still acting like no sensor is present, than, this is a bad sign, look like is the same issue.

Neutree commented 4 years ago

As @Razecus described, in most cases, it's hardware's issue, maybe connection not reliable may sensor broken.

Neutree commented 4 years ago

I'll close this issue, if any problems, reopen it

valenzmanu commented 4 years ago

I ran into the same issue, but I am sure the camera was not inserted while board (maixduino) was on.

It stopped working after I inserted an SD card (which is right next to the camera connector). The board was off when inserting the SD card. I tried with a new camera (OV7670 since I couldn't get a new OV2640) but got the error from the title.

I'm guessing maybe some static electricity could have ruined the I/O pins (at the moment of inserting the sd card), but it's hard to tell.

Neutree commented 4 years ago

@valenzmanu OV7670 is not supported

valenzmanu commented 4 years ago

@Neutree Thanks for the info. Then I'm not sure which of the two (camera or I/O pins) is not working.

marcusobrien commented 2 years ago

Note that I had the same issue on both my Maixduino's - and for me it's now solved...

import sensor import lcd import image lcd.init() sensor.reset()

If you see this response when doing a reset()

init i2c:2 freq:100000 [MAIXPY]: no sensor Traceback (most recent call last): File "", line 1, in

Then you MAY have the pins of the camera ribbon cable the wrong way up. This Maixduino supports OV2640, and also the camera they ship with - which is now the ZV T01 GA4.4 - the copper pins on the cable for both of these need to be facing upwards, away from the board.

maix_camera

This resolved my issue.

justp7 commented 1 year ago

I also encountered this problem, by using a logic analyzer to analyze the camera pins is also no signal transmission, the official reply to me is that the IIC part of the chip is damaged and cannot be repaired.😢

magicianzz commented 1 year ago

@marcusobrien Oh, my God. I didn't realize I had to wire it up