Zbotic Logo Zbotic Logo
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

  • Shop
  • About Us
  • Contact Us
  • Reseller
  • Blogs
020 69134444
1800 209 0998
[email protected]
Help Desk
Facebook Twitter Instagram Linkedin YouTube
Zbotic Logo Zbotic Logo
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

All departments
  • 3D Print Service
  • 3D Printer
  • Batteries & Chargers
  • Development Boards
  • Drone Parts
  • EBike parts
  • Sensor Modules
  • Electronic Components
  • Electronic Modules
  • IoT and Wireless
  • Mechanical Parts and Workbench Tools
  • Motors & Drivers & Pumps & Actuators
  • DIY and Robot Kits
  • Show more
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
Return to previous page
Home Camera & Vision Modules

Night Vision Camera Module: IR LED and NoIR Raspberry Pi

Night Vision Camera Module: IR LED and NoIR Raspberry Pi

March 11, 2026 /Posted byJayesh Jain / 0

Building a night vision camera with Raspberry Pi NoIR and infrared LEDs enables 24-hour surveillance and wildlife monitoring without visible light. The NoIR (No Infrared Filter) camera captures near-infrared light (750-1000nm) that is invisible to humans but can be projected by cheap IR LEDs. This guide covers the NoIR camera, IR LED array design, and complete night vision project setup.

Table of Contents

  • How Night Vision Camera Works
  • Raspberry Pi NoIR Camera
  • IR LED Array Design
  • Complete Night Vision Setup
  • Night Motion Detection Code
  • India Applications: Wildlife, Security
  • Frequently Asked Questions

How Night Vision Camera Works

Standard cameras include an IR-cut filter that blocks infrared light (to improve colour accuracy in daylight). The Raspberry Pi NoIR camera removes this filter, allowing it to see near-infrared light. When you illuminate the scene with 850nm IR LEDs (invisible to human eyes), the NoIR camera sees a well-lit scene while appearing to be in complete darkness to observers. This is how security cameras with “night vision” work.

Recommended: Arducam NoIR 8MP IMX219 Camera with Motorised IR-Cut Filter — The best of both worlds: motorised IR-cut filter switches between full-colour daytime and IR-sensitive night mode automatically.

Raspberry Pi NoIR Camera

  • Pi NoIR Camera v2: IMX219 sensor, no IR filter, 8MP, 62° FOV. Produces a purple/pink tint in daylight (plants appear light pink/white — IR reflects strongly from chlorophyll).
  • Pi Camera Module v3 NoIR: IMX708, no IR filter, 12MP, autofocus. Best current NoIR option.
  • Arducam NoIR with motorised IR-cut: Switches between standard and NoIR modes automatically — full colour in day, IR-sensitive at night. Most professional option.

NoIR vs Standard Camera in Daylight

The NoIR camera in daylight captures infrared light alongside visible light, giving an “infrared photography” look — sky appears white, vegetation appears bright. To restore natural colour in daylight with a NoIR camera, place a visible-light bandpass filter (Schott BG3 or similar) in front of the lens — this blocks IR and restores normal colour for daytime use while the NoIR mode is still available without the filter.

IR LED Array Design

For indoor or close-range (up to 5m) night vision, IR LEDs are sufficient. Design an IR illuminator:

# IR LED array for 3m night vision range:
# Components:
# - 10x 850nm IR LEDs (5mm or SMD)
# - 1x IRF520 MOSFET or 2N2222 transistor
# - Resistors (calculate for your supply voltage)
# - Raspberry Pi GPIO pin for control

# LED current calculation:
# 850nm LED forward voltage: ~1.2V
# Desired current per LED: 50mA
# Series resistance = (Vsupply - Vf) / If
#   = (5V - 1.2V) / 0.05A = 76Ω (use 68Ω or 82Ω standard value)

# Connect 5-10 LEDs in parallel (each with its own resistor)
# Drive via GPIO pin through MOSFET (GPIO can't supply >12mA directly)

# In Python:
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
IR_LED_PIN = 18
GPIO.setup(IR_LED_PIN, GPIO.OUT)
GPIO.output(IR_LED_PIN, GPIO.HIGH)  # Turn on IR illuminator

IR LED Range Guidelines

  • 5 LEDs (50mA each), no lens: 2–4m effective range
  • 10 LEDs with reflector: 5–8m range
  • 20+ LEDs with focused reflector: 10–15m range
  • Commercial IR illuminator (850nm, 24 LEDs): India price ₹400–1,200, 15–30m range. Easiest option for outdoor use.
Recommended: Arducam 8MP IMX219 Camera for Raspberry Pi — Use as the visible-light daytime camera alongside a NoIR module in a dual-camera day/night switching security system.

Complete Night Vision Setup

# Complete night vision camera setup
from picamera2 import Picamera2
import RPi.GPIO as GPIO
import cv2, time

IR_LED_PIN = 18
GPIO.setmode(GPIO.BCM)
GPIO.setup(IR_LED_PIN, GPIO.OUT)

picam2 = Picamera2()
config = picam2.create_preview_configuration(
    main={"format": "RGB888", "size": (1280, 720)}
)
picam2.configure(config)
picam2.start()

# Enable IR LEDs (turn on illuminator)
GPIO.output(IR_LED_PIN, GPIO.HIGH)
time.sleep(2)  # Let camera adapt to low-light

print("Night vision active. IR LEDs on.")
while True:
    frame = picam2.capture_array()
    frame = cv2.cvtColor(frame, cv2.COLOR_RGB2BGR)
    
    # In IR mode, image will be grayscale-looking
    # Convert to grayscale for cleaner output
    gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
    
    timestamp = time.strftime("%Y-%m-%d %H:%M:%S")
    cv2.putText(gray, timestamp, (10, 30),
                cv2.FONT_HERSHEY_SIMPLEX, 0.7, (255, 255, 255), 2)
    
    # Save frame every 10 seconds
    if int(time.time()) % 10 == 0:
        cv2.imwrite(f'/tmp/night_{int(time.time())}.jpg', gray)
    
    # Display or send to stream
    cv2.imshow('Night Vision', gray)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

GPIO.output(IR_LED_PIN, GPIO.LOW)  # Turn off IR LEDs
picam2.stop()

Night Motion Detection Code

import cv2
import numpy as np

prev_frame = None
motion_threshold = 25  # Pixel difference threshold

def detect_motion(frame):
    global prev_frame
    gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
    gray = cv2.GaussianBlur(gray, (21, 21), 0)
    
    if prev_frame is None:
        prev_frame = gray
        return False, frame
    
    diff = cv2.absdiff(prev_frame, gray)
    thresh = cv2.threshold(diff, motion_threshold, 255, cv2.THRESH_BINARY)[1]
    thresh = cv2.dilate(thresh, None, iterations=2)
    contours, _ = cv2.findContours(thresh, cv2.RETR_EXTERNAL, 
                                    cv2.CHAIN_APPROX_SIMPLE)
    
    motion_detected = False
    for c in contours:
        if cv2.contourArea(c) < 500:  # Ignore small movements
            continue
        motion_detected = True
        (x, y, w, h) = cv2.boundingRect(c)
        cv2.rectangle(frame, (x, y), (x+w, y+h), (0, 255, 0), 2)
    
    prev_frame = gray
    return motion_detected, frame

India Applications: Wildlife, Security

  • Wildlife camera trap: Popular in India for monitoring tigers, leopards, deer near forest edges. NoIR camera + 850nm IR LED array + PIR motion trigger + battery power = unobtrusive wildlife camera. The animals don’t see the IR illumination.
  • Home security: Raspberry Pi NoIR + 12-LED IR illuminator creates a night-capable security camera for under ₹4,000 — significantly cheaper than commercial IP cameras with night vision.
  • Crop monitoring: IR photography reveals plant stress (NDVI index) visible before it becomes visually apparent — useful for farmers monitoring irrigation and disease in fields.

Frequently Asked Questions

Will 940nm or 850nm IR LEDs work better with Pi NoIR camera?

850nm LEDs are preferred. The Sony IMX219 sensor in the Pi NoIR v2 camera is most sensitive at around 700–850nm and less sensitive at 940nm. 850nm LEDs also have slightly visible red glow (barely noticeable in a dark room), while 940nm is truly invisible. If complete invisibility is critical (covert surveillance), use 940nm with a higher LED count or power to compensate for the lower sensitivity. For most applications, 850nm is the better choice.

How far can a Raspberry Pi NoIR camera see at night with IR LEDs?

With a 10-LED 850nm illuminator (each at 50mA): 3–5m in complete darkness. With a commercial 24-LED IR illuminator (₹600–1,200): 8–15m. With a high-power IR floodlight (₹2,000–5,000): 20–40m. The limiting factor is typically the IR LED power, not the camera sensitivity. For long-range night vision (50m+), use a proper IR laser illuminator or a commercial CCTV IR illuminator rated for the distance.

Shop Camera Modules at Zbotic →

Tags: IR LED night vision, night vision Raspberry Pi, NoIR camera India, NoIR camera Pi, Raspberry Pi security camera night
Share Post
  • Facebook
  • Linkedin
  • Whatsapp
STM32 I2S Audio Interface: DAC...
blog stm32 i2s audio interface dac and amplifier tutorial 599132
blog solar panel cleaning robot diy automate panel maintenance 599142
Solar Panel Cleaning Robot DIY...

Related posts

Svg%3E
Read more

Endoscope Camera Module: PCB Inspection and Industrial Use

April 1, 2026 0
An endoscope camera module is an invaluable tool for PCB inspection, industrial equipment maintenance, and quality control tasks where direct... Continue reading
Svg%3E
Read more

Number Plate Recognition System: ESP32-CAM ANPR Project India

April 1, 2026 0
Building a number plate recognition system with ESP32-CAM is an affordable approach to automatic number plate recognition (ANPR) for Indian... Continue reading
Svg%3E
Read more

Machine Vision with OpenCV: Raspberry Pi Object Detection Guide

April 1, 2026 0
Running OpenCV on a Raspberry Pi for object detection opens up countless applications, from industrial quality inspection to smart doorbell... Continue reading
Svg%3E
Read more

Arducam vs Raspberry Pi Camera: Which Camera Module to Choose

April 1, 2026 0
Choosing between Arducam and Raspberry Pi camera modules is one of the first decisions for any vision project. Both connect... Continue reading
Svg%3E
Read more

360-Degree Camera Stitching Project with OpenCV and Pi

March 11, 2026 0
Creating a 360-degree camera using OpenCV image stitching with Raspberry Pi is an ambitious computer vision project that combines multiple... Continue reading

Add comment Cancel reply

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

Facebook Twitter Instagram Pinterest Linkedin Youtube

Get the latest deals and more.

Download on Google Play Download on the App Store

Call us: 020 69134444 / 1800 209 0998

Monday - Saturday 09:30 AM - 06:00 PM
For Technical Supports Email: [email protected]
For Sales / Enquiries Email: [email protected]

  • My Account

    • Cart

    • Wishlist

    • Checkout

    • My Orders

    • Track Order

    • My Account

  • Information

    • FAQs

    • Blogs

    • Career

    • About Us

    • Contact Us

    • Payment Options

  • Policies

    • Privacy Policy

    • Terms & Conditions

    • GST Input Tax Credit

    • Shipping Return Policy

    • E-Waste Collection Points

    • Our Sitemap

© Zbotic.in is registered trademark of Moxie Supply Pvt Ltd – All Rights Reserved
Login
Use Phone Number
Use Email Address
Not a member yet? Register Now
Reset Password
Use Phone Number
Use Email Address
Register
Already a member? Login Now