Hw-416-b Pir Sensor Datasheet · Best

When motion is detected, the output goes HIGH and stays HIGH for the set delay duration, then drops LOW. It ignores any movement during that delay period.

This is the standard wiring used with most microcontrollers. The pin can be connected directly to a digital input pin of an Arduino, ESP8266, ESP32, or Raspberry Pi.

The board features two trimpots. One adjusts the sensitivity (sensing distance), and the other adjusts the delay time (how long the output stays HIGH after motion is detected).

For a 3.3V logic system (like an ESP32), you can power the module using the dedicated 3.3V configuration pin instead of the standard 5V input, as described in the previous section. hw-416-b pir sensor datasheet

| Pin name | Function | | :--- | :--- | | | Power supply (5 V typical) | | OUT | Digital output (HIGH when motion is detected) | | GND | Ground |

Understanding the HW-416-B PIR Sensor: A Comprehensive Guide

// Define pins const int PIR_PIN = 2; // HW-416-B OUT connected to digital pin 2 const int LED_PIN = 13; // Onboard LED void setup() pinMode(PIR_PIN, INPUT); // Set PIR pin as input pinMode(LED_PIN, OUTPUT); // Set LED pin as output Serial.begin(9600); // Initialize Serial Monitor Serial.println("PIR Sensor Warm-up: Waiting for stabilization..."); delay(30000); // Allow 30 seconds for the sensor to stabilize Serial.println("Sensor Active."); void loop() int sensorState = digitalRead(PIR_PIN); if (sensorState == HIGH) digitalWrite(LED_PIN, HIGH); // Turn on LED Serial.println("--- Motion Detected! ---"); else digitalWrite(LED_PIN, LOW); // Turn off LED delay(100); // Small delay to prevent serial flooding Use code with caution. 5. Troubleshooting False Triggers When motion is detected, the output goes HIGH

Do you need assistance with ? Share public link

While the HC-SR501 is widely cloned, the HW-416-B is often cited as a revision or variant with a similar circuit but sometimes different component tolerances and a slightly modified lens. The "B" designation typically indicates a board revision with a white plastic case and a three-pin header pre-soldered at a 90-degree angle.

| HW-416-B | Arduino Uno/Nano | | :--- | :--- | | VCC | 5V | | OUT | Digital Pin 2 (or any) | | GND | GND | The pin can be connected directly to a

To help refine this documentation for your project, let me know: What or platform are you planning to use?

A plastic Fresnel lens covers the sensor. This lens focuses the ambient IR radiation onto the pyroelectric element and splits the detection area into multiple zones to maximize sensitivity to lateral movement. 4. Arduino Interfacing and Code Example

Fixed at approximately 2 seconds (non-adjustable). Detection Range: Up to 3–5 meters. Detection Angle: Approximately 100∘100 raised to the composed with power Operating Temperature: Pinout Configuration