Giter VIP home page Giter VIP logo

Comments (9)

Uiopio avatar Uiopio commented on May 24, 2024

Ooooh, this is exactly what I was looking for, damn it. Just an incredible problem. Would like to get an answer as soon as possible!!!

from bananapi-m2-zero-ov5640.

Qengineering avatar Qengineering commented on May 24, 2024

Unfortunately, there are two versions of the OV5640 connector. Since they have 24 pins, they both fit in the camera slot.
However, the pin numbers are reversed. You will get issues like above if you use the wrong connector.
The i2c communication with the sensor fails hence the errors in dmesg.
image

from bananapi-m2-zero-ov5640.

codingCoffee avatar codingCoffee commented on May 24, 2024

I'm facing the exact same error, and logs as posted @OlegErmolaev
However, I can confirm that my camera's connector is the 1st type, i.e. 1 --- 24
Also, this seems to be an intermittent error, unable to perfectly reproduce it. Sometimes it works, and most times it throws the errors as mentioned.

from bananapi-m2-zero-ov5640.

codingCoffee avatar codingCoffee commented on May 24, 2024

When the camera is working properly these are the results

pi@banana:~$ media-ctl -p -d /dev/media1
Media controller API version 5.10.43

Media device information
------------------------
driver          sun6i-csi
model           Allwinner Video Capture Device
serial
bus info        platform:1cb0000.camera
hw revision     0x0
driver version  5.10.43

Device topology
- entity 1: sun6i-csi (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video1
        pad0: Sink
                <- "ov5640 2-003c":0 [ENABLED]

- entity 5: ov5640 2-003c (1 pad, 1 link)
            type V4L2 subdev subtype Sensor flags 0
            device node name /dev/v4l-subdev0
        pad0: Source
                [fmt:UYVY8_2X8/640x480@1/30 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
                -> "sun6i-csi":0 [ENABLED]

pi@banana:~$ dmesg | grep ov5640
[    7.753658] sun6i-csi 1cb0000.camera: creating ov5640 2-003c:0 -> sun6i-csi:0 link
pi@banana:~$ sudo i2cdetect -y 2
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@banana:~$ v4l2-ctl --list-devices
sun6i-csi (platform:camera):
        /dev/video1

cedrus (platform:cedrus):
        /dev/video0

The only difference I've seen in testing is potentially the temprature of the pi (cool when it's working) and the HDMI connection (connected when working). Probably unrelated events, but mentinoing them just the same

from bananapi-m2-zero-ov5640.

OlegErmolaev avatar OlegErmolaev commented on May 24, 2024

Unfortunately, there are two versions of the OV5640 connector. Since they have 24 pins, they both fit in the camera slot. However, the pin numbers are reversed. You will get issues like above if you use the wrong connector. The i2c communication with the sensor fails hence the errors in dmesg. image

Unfortunately it seems to be true and I've wrong type of connector. Will try to get correct camera and type the results

from bananapi-m2-zero-ov5640.

NekoCWD avatar NekoCWD commented on May 24, 2024

As i know CSI connector is double-sided. Can flip camera connector??

from bananapi-m2-zero-ov5640.

Qengineering avatar Qengineering commented on May 24, 2024

@NekoCWD,

Be careful!
The connector is not double sided!
On one side you get gold plated copper fingers. On the other side you have a transparent folio carrying the wires (and fingers)

from bananapi-m2-zero-ov5640.

NekoCWD avatar NekoCWD commented on May 24, 2024

@Qengineering,
I mean connector on board. It's double sided

from bananapi-m2-zero-ov5640.

Qengineering avatar Qengineering commented on May 24, 2024

@NekoCWD,

The connector on the PCB is not double sided (just as the cable).
image
The side mounted on the PCB holds the pins. The opposite side has no electrical connections.

from bananapi-m2-zero-ov5640.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.