🛠 Brancher une caméra CSI (OV5647) sur un CM3

Raspberry Pi Compute Module 3 (CM3 / CM3L) · intermediaire · Schéma : caméra Raspberry Pi v2 (IMX219) reliée par nappe CSI au connecteur CSI principal de la carte CMIO3 portant un module CM3 ; le second connecteur CSI 2 voies est visible à côté.

Objectives

Use the CM3's MIPI CSI interface for a camera. Unlike a standard Pi 3, the CM3 exposes TWO CSI connectors on the SODIMM: one 4-lane and one 2-lane (up to 1 Gbit/s per lane, datasheet RP-008161-DS §2.2). The firmware only supports known sensors (OV5647 from the v1 camera, IMX219 from the v2 camera): third-party MIPI sensors do not work without specific porting.

Hardware

Complete code

# 1. Activer la caméra dans /boot/firmware/config.txt :
sudo tee -a /boot/firmware/config.txt <<'EOF'
start_x=1
camera_auto_detect=1
EOF
sudo reboot

# 2. Vérifier que le firmware a détecté le capteur
vcgencmd get_camera            # attendu : supported=1 detected=1

# 3. Capturer une image
sudo apt install -y libraspberrypi-bin
raspistill -o test.jpg -t 1000 -w 1920 -h 1080
ls -lh test.jpg

Expected verification

vcgencmd get_camera returns supported=1 detected=1 and raspistill produces a JPEG image of approximately 1920x1080. The camera LED lights up during capture. On a recent system using libcamera, the v2 camera is also visible via libcamera-still -o test.jpg.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials