Target
Board
Raspberry Pi5
Camera
Arducam V3Link Camera Solution
목표
Raspberry Pi5 - FPD-Link with MIPI CSI 구동

 

1. Arducam FPD-Link Camera Solution 테스트

- Raspberry Pi의 MIPI CSI-2 카메라는 센서를 보드 근처에 두는 것을 전제로 설계되었기 때문에 FPC 길이에 제한이 있음

- 기구 설계 관련하여 카메라를 보드에서 떨어진 위치에 배치해야 했음. 이를 위해 SerDes 기반 FPD-Link 를 테스트 해봐야 했고 Arducam V3Link Camera Solution을 구매함.

 

Arducam V3Link Camera Solution은 구성은 다음과 같음

  • Arducam FPD-Link Camera
  • Deserializer Board
  • Coaxial Cable

https://docs.arducam.com/V3Link-Camera-Solution/V3Link-Camera-Solution-for-Raspberry-Pi/Quick-Start-Guide/#package-list

 

Quick Start Guide - Arducam Wiki

Quick Start Guide Hardware Package List Connection of Camera Module Connection of camera and adapter board Final Steps Software Preparation Firstly, you should confirm the sensor of your camera module and execute the corresponding steps to access it. You c

docs.arducam.com

 


 

2. Raspbery Pi 시스템 설정

  • config.txt 수정
pi $ sudo nano /boot/firmware/config.txt
 

아래와 같이 수정

camera_auto_detect=0
.
.
dtoverlay=imx219
 

저장 후 재부팅

 

  • i2c 몇번에 장치가 붙었는지 확인
pi $ i2cdetect -l
 

Raspberry pi5 기준 CSI0는 4, CSI1는 6

 

  • 해당 장치에 0xc0가 있는지 확인
pi $ i2cdetect -y 6
 

 

  • Channel 1(CSI1) 카메라 선택
pi $ sudo i2ctransfer -f -y 6 w3@0x0c 0xff 0x55 0x01
 
  • Channel 1(CSI1) 카메라 영상 출력 확인
pi $ rpicam-still -t 0
 

 

  • Channel 2(CSI1) 카메라 선택
pi $ sudo i2ctransfer -f -y 6 w3@0x0c 0xff 0x55 0x01
 
  • Channel 2(CSI1) 카메라 영상 출력 확인
pi $ rpicam-still -t 0
 

FPD-Link 뒤에 연결되어 있지만 RPi에서는 일반 MIPI 카메라처럼 인식됨.


 

테스트 중 no camera 라면서 동작 하지 않는 문제가 있었는데 검색 결과, 특정 버전 이후로 Raspberry Pi I2C 신호 타이밍이 변경 된것으로 보인다.

그래서 과거 버전으로 rollback 해서 동작 확인 하였고, 내가 사용한 버전은 2024-03-15 버전이다.

 

https://forum.arducam.com/t/v3link-kit-no-cameras-available/6457/19

 

V3Link kit: no cameras available

The attempt to modify the baudrate has not been effective. This is the information before modification. sudo cat /boot/firmware/config.txt | grep dtparam= dtparam=i2c_arm=on #dtparam=i2s=on #dtparam=spi=on dtparam=audio=on dmesg | grep i2c [ 0.536821] plat

forum.arducam.com

 

+ Recent posts