🛠 Caméra officielle sur le connecteur FPC CSI du CM1

Raspberry Pi Compute Module 1 (CM1) · intermediaire · Schéma : IMG-cm1-intermediaire-3-camera-ov5647-fpc.svg — Un module caméra v2 OV5647 relié par nappe FPC au connecteur CSI fermé du Compute Module 1, avec la mention des capteurs acceptés OV5647 et IMX219 uniquement et la ligne start_x=1 dans config.txt

Objectives

Use a camera on the CM1 via its FPC ribbon CSI connector. Unlike the open CSI ports on standard RPi boards, the CM1 uses a closed (flip-lock) connector: only the original ribbons from official camera modules fit, and the BCM2835 multimedia pipeline only accepts the two official sensors, OV5647 (v1) and IMX219 (v2). Activation is done by setting start_x=1 in config.txt, and capture is handled by GPU tools (raspistill) rather than V4L2.

Hardware

Full code

# Activer le port caméra dans /boot/config.txt
sudo tee -a /boot/config.txt <<'EOF'
start_x=1
gpu_mem=128
EOF
sudo reboot

# Vérifier la détection du capteur
camera_identify -p 0        # ov5647 ou imx219

# Capture fixe et vidéo
raspistill -o test.jpg -w 1280 -h 720
raspivid -o video.h264 -t 5000 -w 1280 -h 720

Expected verification

camera_identify displays the detected sensor model; raspistill writes a correct JPEG (white if the lens is covered, which is normal). vcgencmd get_camera returns supported=1 detected=1. If detected=0, it is the ribbon: the CM1's closed connector does not accept any replacement ribbon with a different pitch.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials