Contact Sales & After-Sales Service

Contact & Quotation

  • Inquire: Call 0086-755-23203480, or reach out via the form below/your sales contact to discuss our design, manufacturing, and assembly capabilities.
  • Quote: Email your PCB files to Sales@pcbsync.com (Preferred for large files) or submit online. We will contact you promptly. Please ensure your email is correct.
Drag & Drop Files, Choose Files to Upload You can upload up to 3 files.

Notes:
For PCB fabrication, we require PCB design file in Gerber RS-274X format (most preferred), *.PCB/DDB (Protel, inform your program version) format or *.BRD (Eagle) format. For PCB assembly, we require PCB design file in above mentioned format, drilling file and BOM. Click to download BOM template To avoid file missing, please include all files into one folder and compress it into .zip or .rar format.

Night Vision with Raspberry Pi: NoIR Camera Setup Guide

After building numerous camera systems for wildlife monitoring and security applications, I’ve come to appreciate the elegance of the PiNoIR camera module. This seemingly simple modification—removing the infrared filter from a standard camera sensor—opens up fascinating possibilities for Raspberry Pi night vision projects that would otherwise require expensive commercial equipment.

This guide covers everything you need to know about setting up and using the NoIR camera with your Raspberry Pi, from understanding the underlying sensor technology to building a complete night vision system with IR illumination.

Understanding the Pi NoIR Camera

The term “NoIR” stands for “No Infrared filter”—it’s not a reference to film noir or darkness. Standard camera sensors, including the OV5647 used in the original Pi Camera V1, are naturally sensitive to infrared light. Manufacturers typically add an IR-cut filter in front of the sensor so images appear natural to human eyes.

The Pi NoIR camera simply omits this filter, allowing the sensor to capture both visible light and near-infrared wavelengths (roughly 700nm to 1000nm). This extended sensitivity makes the camera useful for applications where standard cameras fail.

What the NoIR Camera Can and Cannot Do

A critical point that trips up many beginners: the PiNoIR is not a thermal camera and cannot see heat signatures. It detects near-infrared light around 850-940nm wavelengths. To capture images in complete darkness, you must provide IR illumination—the camera cannot see in the dark by itself.

CapabilityPi NoIRThermal Camera
See in complete darknessRequires IR illuminationYes (detects heat)
Detect body heatNoYes
Wavelength range400-1000nm8000-14000nm
Typical cost$25-35$200-500+
ResolutionHigh (5MP/8MP)Low (typically 80×60 to 640×480)

Pi NoIR Camera Module Generations

The Raspberry Pi Foundation has released multiple camera generations, each with NoIR variants.

Camera Module Specifications

FeatureV1 (OV5647)V2 (IMX219)V3 NoIR (IMX708)
SensorOmniVision OV5647Sony IMX219Sony IMX708
Resolution5 MP (2592×1944)8 MP (3280×2464)12 MP (4608×2592)
Video1080p30, 720p601080p30, 720p601080p60, 4K30
Pixel Size1.4µm1.12µm1.4µm
FocusFixedFixedAutofocus
IR SensitivityGoodExcellentExcellent

The OV5647 sensor in V1 cameras remains popular despite its age. Its larger pixel size provides good low-light sensitivity, and the simpler architecture means third-party manufacturers can easily produce variants with different lenses and features.

Hardware Setup

Connecting the Camera Module

The physical installation is straightforward but requires attention to orientation and handling.

Power down your Raspberry Pi before connecting the camera. The CSI (Camera Serial Interface) connector is located between the HDMI port and the 3.5mm audio jack on most Pi models. Lift the plastic clip gently, insert the ribbon cable with the silver contacts facing the HDMI port, and press the clip back down to secure it.

For Pi Zero models, you’ll need a special adapter cable since the Zero uses a smaller CSI connector. The standard cable supplied with camera modules won’t fit.

Camera Placement Considerations

Unlike standard photography where you’re working with visible light, IR illumination behaves differently. Reflections from glass and shiny surfaces can cause glare that washes out your image. If mounting behind a window, angle the camera and IR source to minimize direct reflections.

For outdoor installations, consider weatherproofing. Many builders use modified electrical junction boxes or purpose-built camera housings. Ensure adequate ventilation if you’re running IR LEDs that generate heat.

Software Configuration

Enabling the Camera Interface

Modern Raspberry Pi OS (Bookworm) uses libcamera by default, which automatically detects connected camera modules. For older Bullseye installations, you may need to enable the camera through raspi-config.

sudo raspi-config

Navigate to Interface Options > Camera and enable it. Reboot after making changes.

Testing Camera Detection

Verify your camera is recognized:

libcamera-hello –list-cameras

You should see output identifying your camera model. For an OV5647 sensor:

Available cameras

—————–

0 : ov5647 [2592×1944] (/base/soc/i2c0mux/i2c@1/ov5647@36)

Capturing Test Images

For a quick preview:

libcamera-hello -t 0

Press Ctrl+C to exit. To capture a still image:

libcamera-jpeg -o test.jpg

NoIR-Specific Tuning Files

The NoIR camera benefits from different white balance settings than standard cameras. For IMX219 NoIR sensors, specify the appropriate tuning file:

libcamera-hello –tuning-file /usr/share/libcamera/ipa/rpi/vc4/imx219_noir.json

On Raspberry Pi 5, use the pisp folder instead of vc4:

libcamera-hello –tuning-file /usr/share/libcamera/ipa/rpi/pisp/imx219_noir.json

This adjusts auto white balance algorithms to handle the extended spectral response of the NoIR sensor.

IR Illumination for Night Vision

The PiNoIR camera can only see in darkness if you provide infrared illumination. This is where your Raspberry Pi night vision system comes together.

Choosing IR LEDs

IR LEDs are available at different wavelengths, each with tradeoffs:

WavelengthVisibilityCamera SensitivityBest For
850nmFaint red glow visibleHighestWildlife, general surveillance
940nmNearly invisibleLowerCovert applications

Most security cameras use 850nm LEDs because they provide brighter illumination for the camera. The faint red glow is usually acceptable. For applications where complete invisibility matters, 940nm LEDs work but require more power for equivalent brightness.

Powering IR LEDs Safely

IR LEDs require more current than GPIO pins can provide directly. A typical approach uses the 5V supply with appropriate current-limiting resistors.

For a single 890nm LED drawing approximately 100mA, a 220Ω resistor provides suitable current limiting:

5V supply → 220Ω resistor → IR LED → Ground

For arrays of multiple LEDs, consider using a dedicated 12V supply with an appropriate driver circuit. Many commercial IR illuminator boards are designed for 12V operation.

Commercial IR Illuminator Options

If building from discrete components isn’t your preference, numerous pre-built IR illuminator boards are available. Look for specifications including:

SpecificationRecommended Value
LED count12-48 depending on coverage area
Wavelength850nm for general use
Viewing angleMatch your camera lens FOV
Power supply12V DC typical

Building a Complete Night Vision System

Wildlife Camera Project

A popular application monitors nocturnal wildlife in gardens or natural areas. The basic architecture involves:

The Pi NoIR camera captures images, motion detection software triggers recording, and IR LEDs illuminate the scene invisibly to animals. Solar power and battery backup enable remote deployment.

For motion detection, motion or motionEye provide accessible starting points. The software monitors frame differences and triggers capture when movement exceeds a threshold.

Bird Box Camera

The Raspberry Pi Foundation provides an excellent bird box project that demonstrates Raspberry Pi night vision principles in a compact application. A single IR LED inside the box provides sufficient illumination for the NoIR camera to capture clear footage of nesting birds.

Key considerations for this application include reducing the camera’s focal distance for the close-up subject and ensuring LED placement doesn’t create harsh shadows.

Troubleshooting Common Issues

Pink or Purple Tinted Images

Daylight images from a NoIR camera appear pink or magenta because infrared light is mixing with visible light. This is normal behavior, not a defect. If you need accurate daylight colors, the NoIR camera isn’t the right choice—use a standard camera module or consider cameras with switchable IR-cut filters.

Black Images at Night

If your IR LEDs are on but you’re getting black images:

Check LED polarity and ensure they’re actually powered. IR light is invisible to human eyes, but most smartphone cameras can see it. Point your phone camera at the LED array to verify operation. Verify the camera is detecting light by briefly turning on visible room lights. Check that your camera settings aren’t forcing very short exposure times.

Camera Not Detected

If libcamera-hello –list-cameras shows no cameras, verify the ribbon cable is properly seated at both ends. The contacts should face the correct direction (toward the HDMI port on most Pi models). Check for any damage to the delicate ribbon cable.

Useful Resources

Official Documentation

ResourceURLDescription
Raspberry Pi Camera Documentationraspberrypi.com/documentation/accessories/camera.htmlOfficial setup guide
libcamera Documentationlibcamera.orgCamera software documentation
Picamera2 Python Librarygithub.com/raspberrypi/picamera2Python interface for cameras

Hardware Sources

ComponentTypical PriceNotes
Pi NoIR Camera V2$25-30Official 8MP module
OV5647 NoIR modules$10-15Third-party 5MP options
IR LED illuminator boards$5-15850nm recommended
Weatherproof housing$10-20For outdoor deployment

Community Projects

The Raspberry Pi forums and GitHub host numerous PiNoIR projects including wildlife cameras, security systems, and agricultural monitoring applications. Searching for “pi noir” or “raspberry pi night vision” surfaces active projects with source code and build documentation.

Frequently Asked Questions

Can the Pi NoIR camera see in complete darkness?

No, the PiNoIR camera cannot see in complete darkness by itself. Unlike thermal cameras that detect heat radiation, the NoIR camera requires a light source. For night vision applications, you must provide IR LED illumination. The camera’s extended sensitivity simply allows it to use infrared light that humans cannot see.

What is the OV5647 sensor and why is it still popular?

The OV5647 is a 5-megapixel CMOS sensor from OmniVision that powered the original Raspberry Pi Camera V1. Despite newer sensors being available, the OV5647 remains popular because its simpler architecture allows third-party manufacturers to easily produce custom variants with different lenses, IR-cut filters, and form factors. It offers good low-light sensitivity with its 1.4µm pixels.

Why do my daytime NoIR photos look pink?

The pink or magenta tint in daytime photos is normal behavior for a NoIR camera. Without an IR-cut filter, the sensor captures infrared light alongside visible light. This IR component shifts colors toward pink/magenta. If you need accurate daylight colors, consider cameras with automatic IR-cut filters that switch based on ambient light levels.

What wavelength IR LEDs should I use with the Pi NoIR?

For most Raspberry Pi night vision applications, 850nm IR LEDs provide the best results. The camera sensor has higher sensitivity at this wavelength, providing brighter images. While 850nm LEDs emit a faint red glow visible to human eyes, this is usually acceptable. For covert applications where invisibility matters more than image brightness, 940nm LEDs are nearly invisible but require more power.

Can I use the NoIR camera for plant health monitoring?

Yes, the NoIR camera combined with a blue filter (included with official modules) enables NDVI (Normalized Difference Vegetation Index) photography. Healthy plants reflect more near-infrared light than stressed plants. By capturing this IR reflection, you can identify plant health issues before they’re visible to the naked eye. This technique is widely used in agricultural applications.

Conclusion

The PiNoIR camera transforms your Raspberry Pi into a capable night vision platform at a fraction of the cost of commercial alternatives. Understanding that it requires IR illumination—it doesn’t see thermal signatures—is the key insight that prevents frustration.

Whether you’re monitoring wildlife, building a security system, or experimenting with plant health imaging, the combination of an OV5647 or newer sensor without an IR filter opens creative possibilities. Start with a simple setup: camera, IR LED board, and basic software. Once you’ve verified everything works, expand into motion detection, remote streaming, or automated recording.

The Raspberry Pi camera ecosystem continues evolving with better sensors and improved software, but the fundamental principles of Raspberry Pi night vision remain consistent. Master those principles, and you’ll be equipped to build increasingly sophisticated systems as new hardware becomes available.


Suggested Meta Description:

Complete guide to Raspberry Pi night vision using the PiNoIR camera. Learn OV5647 sensor setup, IR LED illumination, software configuration, and troubleshooting for wildlife and security camera projects.

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Sales & After-Sales Service

Contact & Quotation

  • Inquire: Call 0086-755-23203480, or reach out via the form below/your sales contact to discuss our design, manufacturing, and assembly capabilities.

  • Quote: Email your PCB files to Sales@pcbsync.com (Preferred for large files) or submit online. We will contact you promptly. Please ensure your email is correct.

Drag & Drop Files, Choose Files to Upload You can upload up to 3 files.

Notes:
For PCB fabrication, we require PCB design file in Gerber RS-274X format (most preferred), *.PCB/DDB (Protel, inform your program version) format or *.BRD (Eagle) format. For PCB assembly, we require PCB design file in above mentioned format, drilling file and BOM. Click to download BOM template To avoid file missing, please include all files into one folder and compress it into .zip or .rar format.