Raspberry Pi Camera Module 2
By Raspberry Pi
·
Raspberry Pi Camera Module 2 is Raspberry Pi's 8-megapixel camera, built around Sony's IMX219 sensor. It plugs into the camera connector on a Raspberry Pi and takes stills up to 3280 × 2464 pixels and high-definition ...
Get notified when back in stock
1300 240 817
Mon–Fri, 10am–4pm Sydney time
Raspberry Pi Camera Module 2 is Raspberry Pi's 8-megapixel camera, built around Sony's IMX219 sensor. It plugs into the camera connector on a Raspberry Pi and takes stills up to 3280 × 2464 pixels and high-definition video. It replaced the original 5-megapixel Camera Module in April 2016.
The newer Camera Module 3 adds autofocus, HDR and a 12-megapixel sensor on the same size board. Camera Module 2 is still the one to choose when you are matching an existing design or lesson plan built around it, or when you need the slimmer 9mm module.
Why choose it
- Works with the standard camera software. Raspberry Pi OS detects it automatically, and it works with
rpicam-still,rpicam-vidand the Picamera2 Python library. - Slim and light. About 25 × 24 × 9mm and 3g, a couple of millimetres thinner than Camera Module 3, which helps in tight cases and on small robots.
- Drop-in for existing builds. If your enclosure, mount or software was designed around Camera Module 2, this keeps it working unchanged.
- Fast low-resolution video. The IMX219 can run at 640 × 480 and up to 206 frames a second for simple slow-motion capture.
- In production until at least January 2028.
Camera Module 2 or Camera Module 3?
| Camera Module 2 (this one) | Camera Module 3 | |
|---|---|---|
| Sensor | Sony IMX219, 8 megapixels | Sony IMX708, 11.9 megapixels |
| Focus | Manually adjustable, about 10cm to infinity | Motorised autofocus, about 10cm to infinity |
| Field of view (horizontal × vertical) | 62.2° × 48.8° | 66° × 41° |
| Aperture | f/2.0 | f/1.8 |
| HDR | No | Up to 3 megapixels |
| Maximum exposure | 11.76 seconds | 112 seconds |
| Size | About 25 × 24 × 9mm | About 25 × 24 × 11.5mm |
| Production lifetime | Until at least January 2028 | Until at least January 2030 |
Both have infrared-sensitive versions: Camera Module 2 NoIR and Camera Module 3 NoIR.
Specifications
| Sensor | Sony IMX219, back-illuminated, 8 megapixels |
|---|---|
| Resolution | 3280 × 2464 pixels |
| Sensor image area | 3.68 × 2.76mm (4.6mm diagonal), 1/4" optical size |
| Pixel size | 1.12μm × 1.12μm |
| Lens | 3.04mm focal length, f/2.0 |
| Field of view | 62.2° horizontal, 48.8° vertical |
| Focus | Adjustable, about 10cm to infinity (no autofocus) |
| Video modes | 1080p47, 1640 × 1232p41, 640 × 480p206 |
| Maximum exposure | 11.76 seconds |
| Infrared cut filter | Yes |
| Size and weight | About 25 × 24 × 9mm, 3g |
| Cable | Standard ribbon cable for the full-size (15-way) camera connector |
| Production lifetime | Until at least January 2028 |
In the box
- Raspberry Pi Camera Module 2
- Standard ribbon cable for the full-size camera connector, already attached
Which cable for your Raspberry Pi?
- Raspberry Pi 4, 3 and earlier Model B and A boards: the cable in the box fits their full-size camera connector. (Raspberry Pi 400, 500 and 500+ have no camera connector.)
- Raspberry Pi 5, Compute Module 5 IO Board and Zero models: these use the smaller 22-way connector, so you need a Standard to Mini camera cable (Pi 5) or a Zero camera cable. The 2016 launch version of Raspberry Pi Zero has no camera connector at all.
- Need more reach? A longer camera cable helps when the camera and board sit apart.
Good to know
- Shut down and unplug your Raspberry Pi before connecting the camera. The ribbon's metal contacts face the circuit board at both ends.
- There is no autofocus. If you need sharp pictures at changing distances, Camera Module 3 is the better choice.
- Older tutorials refer to the
raspistillandraspividcommands of the legacy camera stack, which is now unsupported. From Raspberry Pi OS Bookworm onwards the camera applications are namedrpicam-*, such asrpicam-stillandrpicam-vid.
Documents and downloads
6 documents for the Raspberry Pi Camera Module 2. Open a PDF's pages here, or download it.