Component guide · Beginner · 5 min read
Raspberry Pi Camera Module 3 (IMX708)

Setup, Autofocus and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The Raspberry Pi Camera Module 3 uses the 12 MP Sony IMX708 sensor with fast phase-detect autofocus and HDR. It comes in standard (75 degree) and wide (120 degree) versions, each with or without an IR filter (NoIR). It plugs into the CSI connector on every Pi with a camera port and is the best general-purpose Pi camera for most projects.
Key specs at a glance
- Sensor
- Sony IMX708, 11.9 MP (4608 × 2592)
- Focus
- Phase-detect autofocus, from about 5 cm (wide) or 10 cm (standard)
- Video
- 1080p50, 720p100, 4608 × 2592 at 14 fps
- HDR
- Up to 3 MP in HDR mode
- Field of view
- 75 degrees (standard) or 120 degrees (wide)
- Interface
- MIPI CSI-2, 15-pin ribbon
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1Raspberry Pi Camera Module 3 Standard₹3,409
Option 2Raspberry Pi Camera Module 3 Wide₹4,379
Option 3Raspberry Pi Camera Module 3 NoIR – 12MP Autofocus₹3,559
Option 4Raspberry Pi Camera Module 3 NoIR Wide₹4,277
Option 5Raspberry Pi Camera Module 3 NoIR Sensor Assembly 11.9MP₹4,079
Option 6Raspberry Pi Camera Module 3 Sensor Assembly, 11.9MP₹1,799
What the Camera Module 3 (IMX708) is
Autofocus is the big change from older Pi cameras: it can photograph a document close up and a room a moment later without turning the lens by hand.
The HDR mode combines exposures so bright windows and dark corners both show detail, at lower resolution. Arducam and Waveshare IMX708 boards use the same sensor, some with M12 lenses or longer cables.
Camera Module 3 (IMX708) pinout
The pins on the Camera Module 3 (IMX708) and what each one does.
| Pin | Function |
|---|---|
| CSI ribbon (15-pin, 1 mm pitch) | Camera data lanes, clock, I2C control and power in one flat cable |
| Blue stiffener side | Faces the Ethernet/USB ports on a Pi 4; on a Pi 5 the 22-pin end faces away from the board edge as printed |
| Metal contacts | Face the connector contacts; a reversed cable gives 'no cameras available' |
| Lens mount | Fixed, M12 or CS/C mount depending on the board |
- CSI ribbon (15-pin, 1 mm pitch)
- Camera data lanes, clock, I2C control and power in one flat cable
- Blue stiffener side
- Faces the Ethernet/USB ports on a Pi 4; on a Pi 5 the 22-pin end faces away from the board edge as printed
- Metal contacts
- Face the connector contacts; a reversed cable gives 'no cameras available'
- Lens mount
- Fixed, M12 or CS/C mount depending on the board
Wiring the Camera Module 3 (IMX708)
Turn the Pi off before connecting. Lift the connector latch, push the ribbon fully in with the contacts facing the connector pins, then press the latch down. The Pi 5 and Zero use a smaller 22-pin connector, so they need a 15-to-22-pin cable.
| Camera Module 3 (IMX708) pin | Raspberry Pi 5 | Raspberry Pi 4 |
|---|---|---|
| Ribbon cable | CAM/DISP 0 or 1 (22-pin, use a 15-to-22 cable) | CAMERA port (15-pin) |
| Power | From the ribbon (no extra wires) | From the ribbon (no extra wires) |
| Software | rpicam-apps / Picamera2 (Bookworm) | rpicam-apps / Picamera2 (Bookworm) |
- Ribbon cable
- Raspberry Pi 5:
- CAM/DISP 0 or 1 (22-pin, use a 15-to-22 cable)
- Raspberry Pi 4:
- CAMERA port (15-pin)
- Power
- Raspberry Pi 5:
- From the ribbon (no extra wires)
- Raspberry Pi 4:
- From the ribbon (no extra wires)
- Software
- Raspberry Pi 5:
- rpicam-apps / Picamera2 (Bookworm)
- Raspberry Pi 4:
- rpicam-apps / Picamera2 (Bookworm)
Example code
First check the camera from a terminal with rpicam-hello --list-cameras (older images: libcamera-hello). Picamera2 is installed by default on Raspberry Pi OS Bookworm. Turn on HDR with v4l2-ctl --set-ctrl wide_dynamic_range=1 -d /dev/v4l-subdev0 before starting the camera.
from picamera2 import Picamera2
from picamera2.encoders import H264Encoder
import time
cam = Picamera2()
cam.configure(cam.create_still_configuration())
cam.start()
time.sleep(2) # let exposure and white balance settle
cam.capture_file("cm3.jpg")
cam.stop()
# Autofocus: continuous mode
from libcamera import controls
cam.set_controls({"AfMode": controls.AfModeEnum.Continuous})
video = cam.create_video_configuration(main={"size": (1920, 1080)})
cam.configure(video)
cam.start_recording(H264Encoder(bitrate=10_000_000), "clip.h264")
time.sleep(10)
cam.stop_recording()Setup and tuning
Continuous for video, Auto (trigger per photo) for stills, Manual with a LensPosition for a fixed distance.
the wide version focuses closer, down to about 5 cm.
enable it for scenes with windows or sky; resolution drops to about 3 MP.
Camera Module 3 needs Raspberry Pi OS Bullseye (late 2022) or newer.
What you need
Shop this list20 of 20 found in our store · ₹1,11,573
Raspberry Pi Camera Module 3 Standard: the part this guide coversRaspberry Pi Camera Module 3₹3,282
Raspberry Pi Camera Module 3 Wide: another version this guide coversRaspberry Pi Camera Module 3₹3,282
Raspberry Pi Camera Module 3 NoIR – 12MP Autofocus: another version this guide coversRaspberry Pi Camera Module 3₹3,282
Raspberry Pi Camera Module 3 NoIR Wide: another version this guide coversRaspberry Pi Camera Module 3₹3,282
Raspberry Pi Camera Module 3 NoIR Sensor Assembly 11.9MP: another version this guide coversRaspberry Pi Camera Module 3₹3,282
Raspberry Pi Camera Module 3 Sensor Assembly, 11.9MP: another version this guide coversRaspberry Pi Camera Module 3 Sensor Assembly, 11.9MP₹1,799
Raspberry Pi Camera Module 3 Wide NoIR Lens: another version this guide coversRaspberry Pi Camera Module 3₹3,282
Raspberry Pi Camera Module 3 SA36VA30P 11.9MP Wide Lens: another version this guide coversRaspberry Pi Camera Module 3₹3,282
Waveshare IMX708 12MP Autofocus Camera (IMX708-120): another version this guide coversWaveshare IMX708 12MP Autofocus Camera (IMX708-120)₹3,359
Arducam 12MP IMX708 102° Wide-Angle HDR Camera Module for Raspberry Pi: another version this guide coversArducam 12MP IMX708 102° Wide-Angle HDR Camera Module for Raspberry Pi₹4,199
Arducam 12MP IMX708 Autofocus Camera Module 3 for Raspberry Pi: another version this guide coversArducam 12MP IMX708 Autofocus Camera Module 3 for Raspberry Pi₹4,199
Arducam 12MP IMX708 Camera Module for Raspberry Pi w/ HDR & PDAF: another version this guide coversArducam 12MP IMX708 Camera Module for Raspberry Pi w/ HDR & PDAF₹5,899
Arducam 12MP IMX708 Fixed Focus HDR Camera Module for Raspberry Pi: another version this guide coversArducam 12MP IMX708 Fixed Focus HDR Camera Module for Raspberry Pi₹2,755
Arducam 12MP IMX708 HDR 120° Wide Angle Camera Module with M12 Lens for Raspberry Pi: another version this guide coversArducam 12MP IMX708 HDR 120° Wide Angle Camera Module with M12 Lens for Raspberry Pi₹4,389
Arducam B031201 12MP IMX708 NoIR Camera with HDR & PDAF for Raspberry Pi: another version this guide coversArducam B031201 12MP IMX708 NoIR Camera with HDR & PDAF for Raspberry Pi₹4,695
Arducam B0482 12MP IMX708 Wide Angle Camera Module for Jetson: another version this guide coversArducam B0482 12MP IMX708 Wide Angle Camera Module for Jetson₹4,639
Arducam IMX708 12MP NoIR Autofocus Wide-Angle Camera for Raspberry Pi: another version this guide coversArducam IMX708 12MP NoIR Autofocus Wide-Angle Camera for Raspberry Pi₹5,959
Waveshare IMX708 12MP Camera Module w/ HDR, 75° FOV: another version this guide coversWaveshare IMX708 12MP Camera Module w/ HDR, 75° FOV₹4,299
Waveshare IMX708 12MP Camera Module with 120° FOV & HDR: another version this guide coversWaveshare IMX708 12MP Camera Module with 120° FOV & HDR₹6,239
Raspberry Pi 5 (4 GB): the computer the camera plugs intoRaspberry Pi 5 16GB RAM Single Board Computer₹36,169Closest match, check the specs
Alternatives and when to choose them
- IMX219 camera: fixed-focus 8 MP, cheaper.
- IMX477 HQ camera: interchangeable C/CS lenses for zoom and macro.
- Raspberry Pi camera modules: all the options compared.
Common mistakes to avoid
- Using an old OS image that does not know the IMX708.
- Leaving autofocus in Auto mode for video, so it does not refocus.
- Choosing NoIR for daytime colour photos.
- Using the wrong cable for a Pi 5 or Zero.
Frequently asked questions
What sensor is in Camera Module 3?
The Sony IMX708, 12 MP with phase-detect autofocus.
Standard or wide?
Standard (75 degrees) for general photos; wide (120 degrees) for rooms, robots and close-ups.
Does it work on Raspberry Pi 5?
Yes, with a 15-to-22-pin cable.
Can I turn autofocus off?
Yes, set AfMode to Manual and choose a LensPosition.
Does it record 4K?
No. Full-resolution video is about 14 fps; 1080p runs at 50 fps.
Parts for this guide
Keep learning
Sources
- Raspberry Pi Camera Module 3 product brief (Raspberry Pi Ltd)
- Picamera2 library manual (Raspberry Pi Ltd)
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.







