🛠 Camera CSI sur Zero v1.3 : le nappe 22 broches
Goal
Capture a still image from the Zero's CSI camera port — present only on revision v1.3 boards (revision codes 900093 / 920093). You will identify your revision, fit the correct flex cable, and shoot a 1920x1080 picture.
Wiring & parts
- A Zero v1.3: check
cat /proc/cpuinfo(Revision line) — v1.0 has no camera connector at all - Camera module + the short 22-pin, 0.5 mm fine-pitch Zero flex cable: a standard Raspberry Pi camera ribbon does NOT fit or work in this connector
- Mini-HDMI display if you want the live preview (optional)
Steps
# Enable the camera interface, then reboot:
sudo raspi-config # Interface options -> Camera
sudo reboot
python3 - <<'EOF'
from picamera import PiCamera
from time import sleep
cam = PiCamera(resolution="1920x1080", framerate=30)
cam.start_preview # requires the mini-HDMI display attached
sleep(2) # let auto-exposure settle
cam.capture("/home/pi/capture.jpg")
cam.close
EOF
On newer OS releases prefer rpicam-still -o capture.jpg (libcamera).
Check
/home/pi/capture.jpg exists as a sharp 1920x1080 JPEG; with the display attached you see the preview before the shot.
Pitfalls
- Standard camera ribbon in the 22-pin Zero connector: it simply does not work — buy the Zero-specific flex, and handle it gently (the FFC tears easily; pull the latch straight up).
- v1.0/v1.2 boards have no CSI port: no adapter will conjure one.
- start_preview with no display attached: confusing silent failure — drop the preview when headless.
- 512 MB RAM: keep heavy image-processing pipelines off the Zero itself.
Other tutorials for this board
- Premier démarrage de la Zero avec écran (mini-HDMI)
- Installation headless : la Zero en carte réseau USB (g_ether)
- Alimentation et consommation : le point faible de la Zero
- GPIO en Python : LED et bouton avec gpiozero
- Console série sur USB : la Zero en port série (CDC-ACM)
- Sauver une Zero qui ne boot plus : le flux legacy sans EEPROM
Code examples for this board
clignotante.pyPythonbouton-gpio.pyPythoncapteur-i2c.shBashsurveillance-temperature.shBashcapteur-dht11.pyPythonservo-pwm-sysfs.shBash