How To Use Dual Cameras on the Raspberry Pi 5

Pi 5 Dual Cameras
(Image credit: Tom's Hardware)

The new Raspberry Pi 5 introduces dual camera connectors for the first time on a flagship Raspberry Pi. This means we can connect two cameras (or a camera and screen, or two screens) to the Raspberry Pi 5. But how do we control the cameras?

Introduced in an earlier Raspberry Pi OS release, libcamera and Picamera2 are two different ways to control cameras. Libcamera is focused on using the camera via the terminal, whereas Picamera2 is all about Python. 

Latest Videos FromTom's Hardware
Les Pounder
Associate Editor

Les Pounder is an associate editor at Tom's Hardware. He is a creative technologist and for seven years has created projects to educate and inspire minds both young and old. He has worked with the Raspberry Pi Foundation to write and deliver their teacher training program "Picademy".

  • demon000
    The begining of the article contains some mistakes. The new Raspberry PI actually uses a 22-pin connector. But the pin pitch is smaller, so the connector and the ribbon cable are smaller, even if they contain more pins.
    Reply
  • Kerry Jenkins
    I found the camera argument needs to be preceded with two dashes instead of one:
    libcamera-hello --camera 0 -t 0
    Reply
  • Bassquake
    Can the Raspberry Pi 5 do good 3D photos if I use two HQ Cameras?
    Reply
  • esolliday
    Kerry Jenkins said:
    I found the camera argument needs to be preceded with two dashes instead of one:
    libcamera-hello --camera 0 -t 0
    I noticed that camera 1 would not display on my Pi 5. Thanks for the tip, it worked.
    Reply