Buying guide · Beginner · 3 min read
Raspberry Pi Camera Modules
Module 3, HQ, Global Shutter and Arducam
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
Raspberry Pi cameras connect through a flat CSI cable. Camera Module 3 (12 MP, autofocus) is the best all-rounder, the HQ Camera takes interchangeable lenses, and the Global Shutter camera avoids distortion on fast motion. Pi 5 and Zero use a smaller 22-pin connector, so buy a matching cable. Test any camera with rpicam-hello before you start coding.
Key specs at a glance
- Camera Module 3
- 12 MP IMX708, autofocus, HDR; Standard 66° and Wide 102° versions; NoIR variants
- Camera Module 2
- 8 MP IMX219, fixed focus
- HQ Camera
- 12.3 MP IMX477, C/CS or M12 lens mount
- Global Shutter
- 1.6 MP IMX296, no rolling-shutter skew
- Pi 5 / Zero connector
- 22-pin, 0.5 mm pitch
- Pi 3 / 4 connector
- 15-pin, 1.0 mm pitch
- Software
- libcamera with rpicam-apps and Picamera2
Which camera should you buy?
Official and third-party cameras differ in sensor, lens and use:
| Camera | Sensor | Best for | Limits |
|---|---|---|---|
| Camera Module 3 (Standard / Wide) | 12 MP IMX708 with autofocus | General use, photos, video, document scanning | Not great for fast motion |
| Camera Module 3 NoIR | Same, without IR cut filter | Night vision with IR LEDs, plant imaging | Colours look pink in daylight |
| Camera Module 2 | 8 MP IMX219, fixed focus | Low-cost projects, compatibility with older tutorials | Older sensor, less low-light |
| HQ Camera | 12.3 MP IMX477 | Interchangeable lenses, astrophotography, macro | Needs a separate lens |
| Global Shutter Camera | 1.6 MP IMX296 | Fast-moving objects, barcode and robotics | Low resolution |
| Arducam / third-party | IMX219, IMX477, IMX708, OV5647 and others | Wide fisheye, pan-tilt, extra-long cable or special lenses | Check Pi 5 and driver support |
- Camera Module 3 (Standard / Wide)
- Sensor:
- 12 MP IMX708 with autofocus
- Best for:
- General use, photos, video, document scanning
- Limits:
- Not great for fast motion
- Camera Module 3 NoIR
- Sensor:
- Same, without IR cut filter
- Best for:
- Night vision with IR LEDs, plant imaging
- Limits:
- Colours look pink in daylight
- Camera Module 2
- Sensor:
- 8 MP IMX219, fixed focus
- Best for:
- Low-cost projects, compatibility with older tutorials
- Limits:
- Older sensor, less low-light
- HQ Camera
- Sensor:
- 12.3 MP IMX477
- Best for:
- Interchangeable lenses, astrophotography, macro
- Limits:
- Needs a separate lens
- Global Shutter Camera
- Sensor:
- 1.6 MP IMX296
- Best for:
- Fast-moving objects, barcode and robotics
- Limits:
- Low resolution
- Arducam / third-party
- Sensor:
- IMX219, IMX477, IMX708, OV5647 and others
- Best for:
- Wide fisheye, pan-tilt, extra-long cable or special lenses
- Limits:
- Check Pi 5 and driver support
Pick the right ribbon cable
The Pi 5 and Pi Zero have a 22-pin camera connector, while the Pi 3 and Pi 4 use 15 pins. A camera with a 15-pin cable needs a 15-to-22-pin adapter cable on a Pi 5. The Pi 5 has two camera ports, so it can run two cameras at once.
To fit a cable, lift the black tab on the connector, slide the cable in with the metal contacts facing the way shown in the Raspberry Pi camera guide for your model, and press the tab down. The orientation differs between Pi models. Long extension cables over about 30 cm can cause frame errors, so use shielded or purpose-made extensions.
Lenses and field of view
Fixed-lens modules give a set field of view: Camera Module 3 Standard is about 66° horizontal and Wide about 102°. The HQ and Global Shutter cameras use C/CS or M12 mounts, so you choose the lens. A short focal length (for example 6 mm) gives a wide view, and a longer one (16 mm) zooms in. Always match the lens mount (C, CS or M12) to the camera, because a wrong mount will not focus.
First test
Install the OS, enable the camera and run:
# 5-second preview on a Pi with a screen
rpicam-hello -t 5000
# Save a still image
rpicam-still -o test.jpg
# Record 10 seconds of H.264 video
rpicam-vid -t 10000 -o test.h264
# List detected cameras
rpicam-hello --list-camerasTroubleshooting
reseat the cable, check the cable end and the connector pitch, and make sure the OS is up to date. Third-party sensors may need a line such as dtoverlay=imx219 in /boot/firmware/config.txt.
a NoIR camera in daylight, or the wrong tuning file for a third-party sensor.
the lens cap or the protective film is still on, or the lens is not focused.
Module 3 autofocus works automatically, but fixed-focus modules and HQ lenses must be focused by hand.
Common mistakes to avoid
- Buying a 15-pin cable for a Pi 5 camera port.
- Inserting the ribbon cable backwards.
- Peeling off the blue protective film only from one side or leaving it on.
- Expecting an HQ Camera to work without a lens.
- Using a very long CSI extension and getting frame errors.
Frequently asked questions
Which camera works with the Pi 5?
All current official cameras work. Third-party modules need Pi 5 driver support and the right cable.
Can a Raspberry Pi camera run on an Arduino?
No. CSI cameras need the Pi's camera pipeline. For Arduino-style boards, use SPI cameras or a board like the ESP32-CAM.
Can I use two cameras at once?
The Pi 5 has two camera ports and can run two cameras. The Pi 4 has one.
What is NoIR?
The camera has no infrared cut filter, so it sees near-infrared light. It is useful with IR LEDs, but daylight colours look odd.
Is rpicam the same as libcamera?
rpicam-apps are the command-line tools built on libcamera. Older tutorials call them libcamera-hello and libcamera-still.
How do I use the camera from Python?
Use the Picamera2 library, which wraps libcamera.
Parts for this guide
Terms in this guide
Keep learning
Sources
- Raspberry Pi documentation: camera software and hardware
- Sony IMX219, IMX477, IMX708 and IMX296 product information
- Arducam documentation
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.




