Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›Raspberry Pi HQ Camera (IMX477)

Component guide · Intermediate · 5 min read

Raspberry Pi HQ Camera (IMX477)

Lenses, Setup and Code

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerWhat the HQ Camera (IMX477) isHQ Camera (IMX477) pinoutWiring the HQ Camera (IMX477)Example codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

The Raspberry Pi High Quality Camera uses the 12.3 MP Sony IMX477, a larger sensor than other Pi cameras, with interchangeable lenses on a C/CS mount (or M12 on the newer version). You choose the lens for the job: telephoto, wide or macro. It suits microscopy, wildlife, astrophotography and inspection, and Arducam makes IMX477 boards for the Jetson too.

Key specs at a glance

Sensor
Sony IMX477, 12.3 MP (4056 × 3040), 7.9 mm diagonal
Pixel size
1.55 µm
Lens mount
C/CS (with adapter) or M12, depending on version
Video
1080p50, 4056 × 3040 at 10 fps
Back focus
Adjustable 12.5 to 22.4 mm (C/CS version)
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 High Quality Camera – C/CS Mount₹6,819
  • Option 2Raspberry Pi HQ Camera, M12 Mount₹6,466
  • Option 3Arducam 12.3MP 1/2.3-Inch HQ Camera Module w/ 6mm CS Lens for Raspberry Pi₹6,799
  • Option 4Arducam 12.3MP IMX477 IR-CUT Camera Module w/ 6mm CS Lens for Jetson Nano/Xavier NX₹8,359
  • Option 5Arducam 12MP IMX477 Motorized Focus Camera for Jetson Nano₹8,499
  • Option 6Arducam 12MP IMX477 Motorized Focus Camera for Jetson Nano/Xavier NX₹9,889
01

What the HQ Camera (IMX477) is

The larger pixels collect more light, so the HQ Camera gives cleaner images in dim light than the 8 MP and 12 MP small-sensor cameras. It has no lens of its own: buy a 6 mm wide lens, a 16 mm telephoto, a microscope adapter or any C-mount lens.

The C/CS version has a tripod mount and a back-focus ring. CS lenses screw in directly; C lenses need the 5 mm C-CS adapter ring that comes with it.

02

HQ Camera (IMX477) pinout

The pins on the HQ Camera (IMX477) and what each one does.

PinFunction
CSI ribbon (15-pin, 1 mm pitch)Camera data lanes, clock, I2C control and power in one flat cable
Blue stiffener sideFaces 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 contactsFace the connector contacts; a reversed cable gives 'no cameras available'
Lens mountFixed, M12 or CS/C mount depending on the board
PinFunction
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
03

Wiring the HQ Camera (IMX477)

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.

HQ Camera (IMX477) pinRaspberry Pi 5Raspberry Pi 4
Ribbon cableCAM/DISP 0 or 1 (22-pin, use a 15-to-22 cable)CAMERA port (15-pin)
PowerFrom the ribbon (no extra wires)From the ribbon (no extra wires)
Softwarerpicam-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)
04

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.

Take a photo and record a clip with Picamera2 · MicroPython
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("hq.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()
05

Setup and tuning

Lens type

CS lenses go straight on; C lenses need the C-CS adapter ring.

Focus

set the lens focus ring first, then the back-focus ring if infinity is not sharp.

Aperture

a smaller aperture (higher f-number) gives more depth of field but needs more light.

IR filter

the sensor has an IR-cut filter; removing it for astro or IR work cannot easily be undone.

06

What you need

Shop this list20 of 20 found in our store · ₹1,74,808

  • Raspberry Pi High Quality Camera – C/CS Mount: the part this guide coversRaspberry Pi High Quality Camera – C/CS Mount₹6,819
  • Raspberry Pi HQ Camera, M12 Mount: another version this guide coversRaspberry Pi HQ Camera, M12 Mount₹6,466
  • Arducam 12.3MP 1/2.3-Inch HQ Camera Module w/ 6mm CS Lens for Raspberry Pi: another version this guide coversArducam 12.3MP 1/2.3-Inch HQ Camera Module w/ 6mm CS Lens for Raspberry Pi₹6,799
  • Arducam 12.3MP IMX477 IR-CUT Camera Module w/ 6mm CS Lens for Jetson Nano/Xavier NX: another version this guide coversArducam 12.3MP IMX477 IR-CUT Camera Module w/ 6mm CS Lens for Jetson Nano/Xavier NX₹8,359
  • Arducam 12MP IMX477 Motorized Focus Camera for Jetson Nano: another version this guide coversArducam 12MP IMX477 Motorized Focus Camera for Jetson Nano₹8,499
  • Arducam 12MP IMX477 Motorized Focus Camera for Jetson Nano/Xavier NX: another version this guide coversArducam 12MP IMX477 Motorized Focus Camera for Jetson Nano₹8,499
  • Arducam 12MP IMX477 Motorized Focus Camera for Raspberry Pi: another version this guide coversArducam 12MP IMX477 Motorized Focus Camera for Raspberry Pi₹11,049
  • Arducam 12MP IMX477 Pan Tilt Zoom PTZ Camera w/ IR-Cut for Raspberry Pi & Jetson Nano: another version this guide coversArducam 12MP IMX477 Pan Tilt Zoom PTZ Camera w/ IR-Cut for Raspberry Pi & Jetson Nano₹13,829
  • Arducam B0240E 12.3MP IMX477 Camera Module w/ C/CS-Lens Mount: another version this guide coversArducam B0240E 12.3MP IMX477 Camera Module w/ C/CS-Lens Mount₹8,499
  • Arducam B0251 MINI Camera Module, 12.3MP IMX477 Sensor w/ M12 Lens: another version this guide coversArducam B0251 MINI Camera Module, 12.3MP IMX477 Sensor w/ M12 Lens₹6,459
  • Arducam B0466N 12.3MP 477M HQ Camera Module w/ 158° M12 Lens: another version this guide coversArducam B0466N 12.3MP 477M HQ Camera Module w/ 158° M12 Lens₹5,379
  • Arducam HQ Camera for Jetson Nano & Xavier NX, 12MP IMX477 with 6mm CS-Mount Lens: another version this guide coversArducam HQ Camera for Jetson Nano & Xavier NX, 12MP IMX477 with 6mm CS-Mount Lens₹8,389
  • Arducam IR-CUT Camera Module for Raspberry Pi w/ 12MP IMX477: another version this guide coversArducam IR-CUT Camera Module for Raspberry Pi w/ 12MP IMX477₹12,359
  • Arducam MINI IMX477 Camera Module for Raspberry Pi CM/CM4 w/ Lens: another version this guide coversArducam MINI IMX477 Camera Module for Raspberry Pi CM/CM4 w/ Lens₹5,459
  • Waveshare IMX477-160 12.3MP Camera, 160° FOV, for Jetson Nano/Compute Module: another version this guide coversWaveshare IMX477-160 12.3MP Camera, 160° FOV, for Jetson Nano/Compute Module₹7,914
  • Raspberry Pi 5 (4 GB): the computer the camera plugs intoRaspberry Pi 5 16GB RAM Single Board Computer₹36,169Closest match, check the specs
  • Raspberry Pi 4 Model B (4 GB): works with the standard 15-pin cableRaspberry Pi 4 Model B 1GB RAM₹4,476Closest match, check the specs
  • 15-pin to 22-pin camera cable: for Raspberry Pi 5 and Zero boardsArducam CB008 3.8cm 15-Pin to 22-Pin Camera Cable for Raspberry Pi Zero/W₹227
  • Raspberry Pi 6 mm wide angle lens for HQ Camera: a general-purpose lensRaspberry Pi 6mm Wide Angle Lens for HQ Camera₹2,880
  • Raspberry Pi 16 mm telephoto lens for HQ Camera: for distant subjects and close-up detailRaspberry Pi 16mm Telephoto Lens for HQ Camera₹6,279
07

Alternatives and when to choose them

  • ✓Camera Module 3 (IMX708): autofocus, no lens to choose.
  • ✓Camera lenses: M12, CS and C mount: picking the right lens.
  • ✓IMX219 camera: cheaper fixed-lens camera.
08

Common mistakes to avoid

  • !Fitting a C lens without the adapter ring, so nothing focuses.
  • !Over-tightening the back-focus lock screw.
  • !Buying the camera without a lens.
  • !Removing the IR filter and losing true daytime colour for good.
09

Frequently asked questions

Does the HQ Camera come with a lens?

No, buy a C, CS or M12 lens to suit your project.

C or CS lens?

CS lenses fit directly; C lenses need the 5 mm adapter ring supplied.

Does it work with Raspberry Pi 5?

Yes, with a 15-to-22-pin cable.

Is it good for astrophotography?

Yes, its larger sensor and long exposures make it popular for astro and microscopy.

Does it work with Jetson?

Arducam IMX477 boards are made for Jetson Nano and Xavier NX.

Parts for this guide

  • Raspberry Pi High Quality Camera – C/CS Mount
    ₹6,819View
  • Raspberry Pi HQ Camera, M12 Mount
    ₹6,466View
  • Arducam 12.3MP 1/2.3-Inch HQ Camera Module w/ 6mm CS Lens for Raspberry Pi
    ₹6,799View
  • Arducam 12.3MP IMX477 IR-CUT Camera Module w/ 6mm CS Lens for Jetson Nano/Xavier NX
    ₹8,359View
  • Arducam 12MP IMX477 Motorized Focus Camera for Jetson Nano
    ₹8,499View
  • Arducam 12MP IMX477 Motorized Focus Camera for Jetson Nano/Xavier NX
    ₹9,889View
  • Arducam 12MP IMX477 Motorized Focus Camera for Raspberry Pi
    ₹11,049View
  • Arducam 12MP IMX477 Pan Tilt Zoom PTZ Camera w/ IR-Cut for Raspberry Pi & Jetson Nano
    ₹13,829View
  • Arducam B0240E 12.3MP IMX477 Camera Module w/ C/CS-Lens Mount
    ₹8,499View
  • Arducam B0251 MINI Camera Module, 12.3MP IMX477 Sensor w/ M12 Lens
    ₹6,459View
  • Arducam B0466N 12.3MP 477M HQ Camera Module w/ 158° M12 Lens
    ₹5,379View
  • Arducam HQ Camera for Jetson Nano & Xavier NX, 12MP IMX477 with 6mm CS-Mount Lens
    ₹8,389View
  • Arducam IR-CUT Camera Module for Raspberry Pi w/ 12MP IMX477
    ₹12,359View
  • Arducam MINI IMX477 Camera Module for Raspberry Pi CM/CM4 w/ Lens
    ₹5,459View
  • Waveshare IMX477-160 12.3MP Camera, 160° FOV, for Jetson Nano/Compute Module
    ₹7,914View
  • Raspberry Pi 5 with 4GB RAM
    ₹14,079View
  • Raspberry Pi 4 Model B with 4GB RAM
    ₹11,461View
  • Arducam CB008 3.8cm 15-Pin to 22-Pin Camera Cable for Raspberry Pi Zero/W
    ₹227View
  • Raspberry Pi 6mm Wide Angle Lens for HQ Camera
    ₹2,880View
  • Raspberry Pi 16mm Telephoto Lens for HQ Camera
    ₹6,279View
  • Arducam B0229 Raspberry Pi Camera Ribbon Flex Extension Cable Set (5cm, 60cm, 100cm)
    ₹1,129View
Shop Displays, Cameras & EnclosuresShop Embedded Camera Modules & Sensors (Arducam, IMX)

Keep learning

Concept explainerIntermediateCamera Lenses for Embedded CamerasSmall cameras use M12 (S-mount) lenses, while the Raspberry Pi HQ camera takes CS or C mount lenses.3 min read · IoT & WirelessBuying guideBeginnerRaspberry Pi Camera ModulesCompare Raspberry Pi Camera Module 3, HQ, Global Shutter and Arducam sensors, choose a lens, pick the right CSI cable for Pi 5 and test with rpicam.3 min read · Boards & MicrocontrollersComponent guideBeginnerRaspberry Pi 5 GuideThe Raspberry Pi 5 is a credit-card-size Linux computer with a 2.4 GHz quad-core Arm CPU, 2 to 16 GB of RAM, dual 4K HDMI, PCIe for NVMe storage and 40 GPIO pins.4 min read · Boards & Microcontrollers

Sources

  • Raspberry Pi High Quality Camera product brief (Raspberry Pi Ltd)
  • Sony IMX477 product information
  • 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.

On this page
Short answerWhat the HQ Camera (IMX477) isHQ Camera (IMX477) pinoutWiring the HQ Camera (IMX477)Example codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide7 items · ₹34,849

Raspberry Pi High Quality Camera – C/CS Mount · Raspberry Pi HQ Camera, M12 Mount · Arducam 12.3MP 1/2.3-Inch HQ Camera Module w/ 6mm CS Lens for Raspberry Pi · Arducam B0466N 12.3MP 477M HQ Camera Module w/ 158° M12 Lens · Arducam CB008 3.8cm 15-Pin to 22-Pin Camera Cable for Raspberry Pi Zero/W · Raspberry Pi 6mm Wide Angle Lens for HQ Camera · Raspberry Pi 16mm Telephoto Lens for HQ Camera

Run itChange the inputs and watch the output

The script prints nothing. It saves one still, then records 10 s of 1080p video.

Shell
$ python3 capture.py
$ ls
capture.py  clip.h264  hq.jpg

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question