Hw-416-b Pir Sensor Datasheet

Adjusts how long the output pin remains HIGH after motion is detected. Range is approximately 0.3s to 300s. Trigger Jumper (Yellow Cap): L (Non-repeatable):

HW-416-B PIR Sensor Datasheet: Comprehensive Guide to Motion Detection

Turning off PC monitors or HVAC systems in unoccupied offices. 6. Integration Tips

void setup() pinMode(ledPin, OUTPUT); pinMode(inputPin, INPUT); Serial.begin(9600); hw-416-b pir sensor datasheet

The HW-416-B operates by detecting infrared radiation emitted by heat-producing bodies. When a heat source moves across the sensor's field of view, it triggers a high signal on the output pin. Specification DC 4.5V – 20V Static Current Level Output High 3.3V / Low 0V Trigger Method L (non-repeatable), H (repeatable - default) Delay Time Adjustable (approx. 0.5s to 200s) Blockade Time 2.5s (default) Detection Angle < 100° cone angle Detection Distance 3 to 7 meters (adjustable) Operating Temp -15°C to +70°C PCB Dimensions 32mm x 24mm 2. Pinout Configuration

Ideal for battery-operated IoT devices.

PIR_PIN = 17 # GPIO17 connected to OUT

Turn the PCB over to find the calibration pots and mode selection headers:

| Feature | HW-416-B | HC-SR501 | |---------|----------|----------| | PCB Color | Red | Blue | | Voltage | 4.5V – 20V | 4.5V – 20V | | Delay range | 0.3s – 600s | 0.3s – 600s | | Block time | ~2.5s | ~2.5s | | Trigger jumper | Yes (H/L) | Yes (H/L) | | Dimensions | 32×24 mm | 32×24 mm |

void loop() motionState = digitalRead(motionPin); if (motionState == HIGH) digitalWrite(ledPin, HIGH); Serial.println("Motion detected!"); else digitalWrite(ledPin, LOW); Adjusts how long the output pin remains HIGH

Turning off desk monitors, lights, or exhaust fans when a room becomes vacant.

else digitalWrite(ledPin, LOW); if (pirState == HIGH) Serial.println("Motion ended!"); pirState = LOW;

void setup() pinMode(motionPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600); Specification DC 4