Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use custom CSI camera #66

Open
ret7020 opened this issue Dec 8, 2024 · 5 comments
Open

How to use custom CSI camera #66

ret7020 opened this issue Dec 8, 2024 · 5 comments

Comments

@ret7020
Copy link

ret7020 commented Dec 8, 2024

I have a PI Camera Zero built on OV5647. I tried to use it with my board (70415 revision). I tried just connect camera and use /mnt/system/usr/bin/sensor_test, but got following log:

[sys_vi_init]-41: MMF Version:540e9435a-musl_riscv64
[SAMPLE_COMM_SNS_ParseIni]-2185: Parse /mnt/data/sensor_cfg.ini
[parse_source_devnum]-1778: devNum =  1
[parse_sensor_name]-1859: sensor =  OV_OV5647_MIPI_2M_30FPS_10BIT
[parse_sensor_busid]-1888: bus_id =  4
[parse_sensor_i2caddr]-1899: sns_i2c_addr =  36
[parse_sensor_mipidev]-1910: mipi_dev =  0
[parse_sensor_laneid]-1921: Lane_id =  4, 3, 2, -1, -1
[parse_sensor_pnswap]-1932: pn_swap =  0, 0, 0, 0, 0
[parse_sensor_mclken]-1954: mclk_en =  1
[parse_sensor_mclk]-1965: mclk =  1
[SAMPLE_PLAT_SYS_INIT]-72: common pool[0] BlkSize 5652480
ISP Vipipe(0) Allocate pa(0x8c020000) va(0x0x3fd9ad3000) size(291424)
stSnsrMode.u16Width 2560 stSnsrMode.u16Height 1440 25.000000 wdrMode 0 pstSnsObj 0xedae0
[SAMPLE_COMM_VI_StartMIPI]-494: sensor 0 stDevAttr.devno 0

Then I tried to apply source from "draft pull request", but it seems not working, because it use incorrect(incorrect for new boards) pins for camera.
Is it even possible to run this camera on the board?

@niyazFattahov
Copy link

Hello. I have same problem with ov5647.
Did you try i2cdetect -y 4 command ? For me does not show ov5647 address. I also have voltage drops on i2c pins (~ 1.2V instead 1.8V)

@ret7020
Copy link
Author

ret7020 commented Jan 28, 2025

It always detects some busy address (when OV5647 connected, when GC4653 and even nothing connected):
Image

@ret7020
Copy link
Author

ret7020 commented Jan 28, 2025

I think we need to check firmware and some csi camera related source for Milk V Duo S board. It have J2 connector specially for OV5647 camera:

J2 is a 15-pin 1.0mm pitch connector compatible with the Raspberry Pi camera interface. It currently supports the OV5647 camera used on the Raspberry Pi.

@niyazFattahov
Copy link

after removing pulldown resistors ov5647 camera can be recognized and configured by this board
#31 (comment)

@ret7020
Copy link
Author

ret7020 commented Feb 6, 2025

Thanks, I will try to reproduce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants