Hw-416-b Pir Sensor Datasheet |best| <2025>

If you are looking to build a specific application with this sensor, let me know:

The HW-416-B utilizes a pyroelectric sensor to detect infrared radiation variations emitted by moving objects, primarily humans and animals. It is a variant of the classic HC-SR501 PIR sensor module, sharing similar operational logic but offering a more compact form factor, making it ideal for space-constrained projects like smart lighting, automated alarms, and robotics. Key features include:

The following script reads the digital output of the HW-416-B and toggles the onboard Arduino LED (Pin 13) when motion is sensed. It also prints logs to the Serial Monitor.

For exact timing schematics and gerber files, visit the open-hardware repository linked on this page. Bookmark this guide as your go-to reference for the . hw-416-b pir sensor datasheet

The (often synonymous with the HC-SR501 ) is a staple in the world of DIY electronics and security, prized for its ability to sense human presence through heat radiation.

High (3.3V) when motion is detected / Low (0V) when idle Detection Distance: Adjustable from 3 meters up to 7 meters Detection Angle: Less than 110-degree cone shape Delay Time: Adjustable from 0.5 seconds to 200 seconds

Are you encountering any issues with ?

When the room is empty, both windows receive the same amount of ambient infrared radiation. The differential voltage output between the two windows is zero.

/* HW-416-B PIR Motion Sensor Integration Demonstrates how to read a digital signal from the HW-416-B module. */ const int PIR_PIN = 2; // HW-416-B OUT pin connected to digital pin 2 const int LED_PIN = 13; // Built-in Arduino LED int pirState = LOW; // Start assuming no motion detected int val = 0; // Variable for reading the pin status void setup() pinMode(PIR_PIN, INPUT); // Declare sensor as input pinMode(LED_PIN, OUTPUT); // Declare LED as output Serial.begin(9600); Serial.println("Initializing PIR Sensor... Please wait for warmup."); // Give the sensor 30-60 seconds to warm up and calibrate to the environment delay(30000); Serial.println("Sensor active."); void loop() val = digitalRead(PIR_PIN); // Read input value if (val == HIGH) // Check if the input is HIGH digitalWrite(LED_PIN, HIGH); // Turn LED ON if (pirState == LOW) // Motion just detected Serial.println("=> Motion detected! Object moving within zone."); pirState = HIGH; else digitalWrite(LED_PIN, LOW); // Turn LED OFF if (pirState == HIGH) // Motion just ended Serial.println("=> Motion ended. Area clear."); pirState = LOW; Use code with caution. Warm-up Period Warning

| Pin Name | Function | Description | | :--- | :--- | :--- | | | Power Input | Connect to +5V DC (or 4.5V–20V). Do not exceed 20V. | | GND | Ground | Common ground with the microcontroller or load circuit. | | OUT | Digital Output | Goes HIGH (3.3V) when motion is detected. Falls LOW after lock-down time. | If you are looking to build a specific

Flip the module over to locate two small, adjustable potentiometers:

/* HW-416-B PIR Motion Sensor Tutorial Displays motion status on the Serial Monitor and toggles the built-in LED. */ const int pirPin = 2; // Input pin connected to HW-416-B OUT const int ledPin = 13; // Output pin for the visual alert LED int pirState = LOW; // Start assuming no motion detected int val = 0; // Variable for reading the pin status void setup() pinMode(pirPin, INPUT); // Declare PIR sensor as input pinMode(ledPin, OUTPUT); // Declare LED as output Serial.begin(9600); // Initialize serial communication Serial.println("Initializing HW-416-B PIR Sensor..."); // Give the sensor 30-60 seconds to warm up and map the ambient IR profile delay(30000); Serial.println("Sensor Ready Active."); void loop() val = digitalRead(pirPin); // Read input value if (val == HIGH) // Check if the input is HIGH digitalWrite(ledPin, HIGH); // Turn LED ON if (pirState == LOW) // Motion just detected Serial.println("--> Motion Detected! Intruder alert activated."); pirState = HIGH; else digitalWrite(ledPin, LOW); // Turn LED OFF if (pirState == HIGH) // Motion just ended Serial.println("--> Motion Ended. Scanning area..."); pirState = LOW; Use code with caution. Warm-up Period Warning

If you’re building a motion-activated light, security alarm, or smart occupancy sensor, you’ve likely come across the . At first glance, it looks identical to the famous HC-SR501. In fact, for practical purposes, the HW-416-B shares the same core components: a Pyroelectric Infrared (PIR) sensor , a BIS0001 (or similar) signal processing IC, and an adjustable lens. It also prints logs to the Serial Monitor

Turning the Sx potentiometer clockwise increases the detection distance (up to ~7m). Turning it counter-clockwise reduces it (down to ~3m).