Digital TTL (High = 3.3V, Low = 0V), making it compatible with both 3.3V and 5V microcontrollers like Arduino, ESP32, and Raspberry Pi.
void loop() motionState = digitalRead(motionPin); if (motionState == HIGH) digitalWrite(ledPin, HIGH); Serial.println("Motion detected!"); else digitalWrite(ledPin, LOW);
This guide serves as a functional datasheet and implementation manual for engineers and hobbyists alike. 1. Technical Specifications hw-416-b pir sensor datasheet
| Parameter | Min | Typ | Max | Unit | |----------------------|------|------|-------|-------| | Supply voltage | 4.5 | 5 | 20 | V | | Output high voltage | 2.8 | 3.3 | 3.4 | V | | Output low voltage | 0 | 0.4 | 0.6 | V | | Output current (max) | - | - | 100 | mA | | Standby current | - | 0.05 | 0.1 | mA | | Operating temp | -20 | 25 | +80 | °C | | Delay time range | 0.5 | - | 200 | sec | | Detection range | 3 | 5 | 7 | m |
| Component | Label | Function | |-----------|-------|----------| | Left Potentiometer | | Adjusts output delay time (Tx) after motion stops. CW = longer delay. | | Right Potentiometer | SENS | Adjusts detection sensitivity/distance. CW = more sensitive / longer range. | | Jumper (JP1) | Trigger Mode | H = Repeatable trigger (retriggering resets delay timer). L = Single trigger (output turns off after delay, regardless of continued motion). | Digital TTL (High = 3
| Pin Number | Pin Name | Description | | :--- | :--- | :--- | | 1 | | Power input (5V – 20V DC) | | 2 | OUT | Digital output: HIGH when motion detected, LOW when idle | | 3 | GND | Ground (0V) |
The HW-416-B PIR sensor has a simple 3-pin interface: Technical Specifications | Parameter | Min | Typ
| Parameter | Min | Typical | Max | Unit | | :--- | :--- | :--- | :--- | :--- | | Supply Voltage (VCC) | 4.5 | 5.0 | 20 | V | | Output Current (sink/source) | – | 10 | 100 | mA | | Output Logic High | 2.4 | 3.3 | 3.5 | V | | Output Logic Low | 0 | 0.4 | – | V | | Standby Current | 20 | 45 | 60 | µA | | Warm-up Time (initial power-on) | – | 30 | 60 | sec |