Component guide · Beginner · 7 min read
IMX219 8MP Camera for Raspberry Pi and Jetson

Setup and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The Sony IMX219 is the 8 MP sensor in the Raspberry Pi Camera v2, and it is also the standard camera for the NVIDIA Jetson Nano. It connects over a CSI ribbon, records 1080p at 30 fps (720p at 60) and comes in many lens versions: standard, wide-angle, fisheye, NoIR and stereo. It gives clearly better images than the OV5647 at a small extra cost.
Key specs at a glance
- Sensor
- Sony IMX219, 8 MP (3280 × 2464)
- Video
- 1080p30, 720p60, 640 × 480 at 90 fps
- Interface
- MIPI CSI-2, 2 lanes, 15-pin ribbon
- Pixel size
- 1.12 µm, 1/4 inch optical format
- Platforms
- Raspberry Pi (all with CSI), Jetson Nano and Orin Nano
- Versions
- 77 to 200 degree lenses, NoIR, IR-cut, motorised focus, stereo pair
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1Arducam 8MP IMX219 Camera Module for Raspberry Pi₹2,829
Option 2Arducam 8 MP Sony IMX219 Camera Module w/ M12 Lens LS40136 for Raspberry Pi₹8,019
Option 3Arducam 8MP IMX219 175° Wide-Angle Raspberry Pi Camera Module₹2,319
Option 4Arducam 8MP IMX219 Auto Focus Camera Module w/ Motorized Lens for Raspberry Pi₹2,479
Option 5Arducam 8MP IMX219 Camera Module with Fisheye Lens for Jetson Nano₹3,659
Option 6Arducam 8MP IMX219 Motorized Focus Camera Module for NVIDIA Jetson Nano (NoIR)₹4,486
What the IMX219 camera is
The IMX219 is a good all-round camera for robots, time-lapse and machine vision. Lenses are the main difference between versions: a narrow lens sees detail far away, a 160 or 200 degree lens covers a whole room but bends straight lines near the edges.
Jetson versions use the same sensor and cable, so most boards work on both a Pi and a Jetson. On a Jetson use the GStreamer nvarguscamerasrc pipeline instead of Picamera2.
IMX219 camera pinout
The pins on the IMX219 camera 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 IMX219 camera
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. On a Jetson Nano, use CAM0 with the same 15-pin ribbon.
| IMX219 camera 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. On a Jetson: gst-launch-1.0 nvarguscamerasrc ! nvvidconv ! xvimagesink.
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("imx219.jpg")
cam.stop()
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
rpicam-hello --list-cameras should list the sensor. If not, re-seat the ribbon and check its direction.
some need a line in /boot/firmware/config.txt, such as camera_auto_detect=0 and dtoverlay=imx219, then a reboot.
fixed-focus lenses can be turned gently to adjust; M12 and CS lenses screw in and out.
long recordings warm the sensor; leave some air around it.
correct barrel distortion in OpenCV with a checkerboard calibration if you measure distances.
What you need
Shop this list20 of 20 found in our store · ₹62,996
Arducam 8MP IMX219 Camera Module for Raspberry Pi: the part this guide coversArducam 8MP IMX219 Camera Module for Raspberry Pi₹2,829
Arducam 8 MP Sony IMX219 Camera Module w/ M12 Lens LS40136 for Raspberry Pi: another version this guide coversArducam 8 MP Sony IMX219 Camera Module w/ M12 Lens LS40136 for Raspberry Pi₹8,019
Arducam 8MP IMX219 175° Wide-Angle Raspberry Pi Camera Module: another version this guide coversArducam 8MP IMX219 175° Wide-Angle Raspberry Pi Camera Module₹2,319
Arducam 8MP IMX219 Auto Focus Camera Module w/ Motorized Lens for Raspberry Pi: another version this guide coversArducam 8MP IMX219 Auto Focus Camera Module w/ Motorized Lens for Raspberry Pi₹2,479
Arducam 8MP IMX219 Camera Module with Fisheye Lens for Jetson Nano: another version this guide coversArducam 8MP IMX219 Camera Module with Fisheye Lens for Jetson Nano₹3,659
Arducam 8MP IMX219 Motorized Focus Camera Module for NVIDIA Jetson Nano (NoIR): another version this guide coversArducam 8MP IMX219 Motorized Focus Camera Module for NVIDIA Jetson Nano (NoIR)₹4,486
Arducam 8MP IMX219 NOIR V2 Night Vision Camera Module for Raspberry Pi: another version this guide coversArducam 8MP IMX219 NOIR V2 Night Vision Camera Module for Raspberry Pi₹1,859
Arducam 8MP IMX219 Wide Angle IR Sensitive Camera Module: another version this guide coversArducam 8MP IMX219 Wide Angle IR Sensitive Camera Module₹3,259
Arducam B0191 IMX219 Fixed Focus Camera Module for Jetson Nano, Raspberry Pi CM4: another version this guide coversArducam B0191 IMX219 Fixed Focus Camera Module for Jetson Nano, Raspberry Pi CM4₹1,379
Arducam IMX219 Auto Focus Camera Module for Raspberry Pi V2 & Jetson Nano: another version this guide coversArducam IMX219 Auto Focus Camera Module for Raspberry Pi V2 & Jetson Nano₹2,749
Arducam IMX219 Camera Module with Fisheye Lens for Raspberry Pi V2 & Jetson Nano: another version this guide coversArducam IMX219 Camera Module with Fisheye Lens for Raspberry Pi V2 & Jetson Nano₹1,869
Arducam IMX219 Low Distortion M12 Mount Camera for Jetson Nano, Raspberry Pi Compute: another version this guide coversArducam IMX219 Low Distortion M12 Mount Camera for Jetson Nano, Raspberry Pi Compute₹3,819
Arducam IMX219 Visible Light Fixed Focus Camera Module for Raspberry Pi: another version this guide coversArducam IMX219 Visible Light Fixed Focus Camera Module for Raspberry Pi₹2,138
Arducam IMX219 Wide Angle Camera Module for Jetson Nano & Pi Compute Modules: another version this guide coversArducam IMX219 Wide Angle Camera Module for Jetson Nano & Pi Compute Modules₹3,639
Arducam NOIR 8MP Sony IMX219 Camera Module w/ M12 Lens LS1820: another version this guide coversArducam NOIR 8MP Sony IMX219 Camera Module w/ M12 Lens LS1820₹4,029
Arducam NOIR 8MP Sony IMX219 Camera Module w/ Motorized IR Cut Filter & M12 Lens: another version this guide coversArducam NOIR 8MP Sony IMX219 Camera Module w/ Motorized IR Cut Filter & M12 Lens₹5,309
Arducam NOIR 8MP Sony IMX219 Camera Module with CS Lens for Raspberry Pi: another version this guide coversArducam NOIR 8MP Sony IMX219 Camera Module with CS Lens for Raspberry Pi₹4,279
Hiwonder Sony IMX219 HD Camera 160° Wide Angle: another version this guide coversHiwonder Sony IMX219 HD Camera 160° Wide Angle₹2,879
IMX219 8MP 120° FOV Camera Module for Raspberry Pi 5: another version this guide coversIMX219 8MP 120° FOV Camera Module for Raspberry Pi 5₹999
IMX219 8MP 130° Wide-Angle Camera Module for Raspberry Pi 5: another version this guide coversIMX219 8MP 130° Wide-Angle Camera Module for Raspberry Pi 5₹999
Alternatives and when to choose them
- OV5647 camera: cheaper 5 MP option.
- IMX708 Camera Module 3: 12 MP, autofocus and HDR.
- IMX477 HQ camera: interchangeable lenses and a bigger sensor.
Common mistakes to avoid
- Forgetting the 15-to-22-pin cable for a Pi 5.
- Choosing a 200 degree lens for a job that needs straight lines or long range.
- Using Picamera2 commands on a Jetson, which uses GStreamer.
- Bending the ribbon sharply, which breaks traces.
Frequently asked questions
Is the IMX219 the Pi Camera v2?
Yes, the official Camera Module v2 uses the IMX219.
Does it work with Jetson Nano?
Yes, it is the camera Jetson Nano supports by default.
Which field of view should I pick?
About 77 degrees for general use, 120 to 160 for robots and rooms, 200 for all-round views.
Can it see in the dark?
The NoIR and IR versions can, with infrared lighting.
What frame rates does it support?
1080p at 30 fps, 720p at 60 fps and 640 × 480 at up to 90 fps.
Parts for this guide
- ₹2,829View
- ₹8,019View
- ₹2,319View
- ₹2,479View
- ₹3,659View
- ₹4,486View
- ₹1,859View
- ₹3,259View
- ₹1,379View
- ₹2,749View
- ₹1,869View
- ₹3,819View
- ₹2,138View
- ₹3,639View
- ₹4,029View
- ₹5,309View
- ₹4,279View
- ₹2,879View
- ₹999View
- ₹999View
- ₹1,099View
- ₹1,409View
- ₹999View
- ₹1,979View
- ₹1,589View
- ₹1,589View
- ₹2,849View
- ₹2,149View
- ₹3,023View
- ₹2,519View
- ₹2,209View
- ₹2,559View
- ₹6,416View
- ₹14,079View
- ₹11,461View
- ₹227View
- ₹1,129View
Keep learning
Sources
- Raspberry Pi camera documentation (raspberrypi.com)
- Sony IMX219PQ product information
- NVIDIA Jetson camera development guide
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

















