🛠 Caméra sur le port CSI 22 broches (flex court) + time-lapse
Objectives
Use the CSI port of the Zero W for a time-lapse sent over Wi-Fi: from the Zero 1.3 onwards, all Zero models feature a mini 22-pin CSI port, 0.5 mm pitch, 11.5 mm wide — you need the specific short ribbon cable for the Zero.
Hardware
- 1 Raspberry Pi Zero W + camera module + short CSI ribbon cable (Zero-specific)
- Official case with "camera" lid (optional)
Steps
- Power off. Lift the CSI connector latch, insert the ribbon cable with contacts facing the mini-HDMI port, and close the latch.
- Enable the camera:
sudo raspi-config→ Interface Options → Camera (activates libcamera on recent images). - Test image (5 s for white balance):
libcamera-still -t 5000 -o shot.jpg
- Time-lapse every 5 min, Wi-Fi transfer:
while sleep 300; do
libcamera-still -o /tmp/img.jpg && \
scp /tmp/img.jpg user@serveur:/data/
done
Verification
shot.jpg arrives on the server; vcgencmd measure_temp stays well below 80 °C despite codec + radio usage.
Common Errors
- Standard ribbon cable: too wide for the 11.5 mm connector — never force it.
- Ribbon cable inserted upside down: no image, no error message.
Other tutorials for this board
Code examples for this board
clignotante.pyPythonbouton-gpio.pyPythoncapteur-i2c.shBashsurveillance-temperature.shBashcapteur-dht11.pyPythonservo-pwm-sysfs.shBash