The primary electrical constraints defined in the device datasheet include: How to Wire a PIR Sensor: A Simple DIY Guide
The HW416B cannot directly power a relay, buzzer, or LED strip (it will drop voltage drastically).
attachInterrupt(digitalPinToInterrupt(PIR_PIN), motionISR, RISING);
Adjustable from 5 seconds to 5 minutes (300 seconds) via a second potentiometer. hw416b pir sensor datasheet better
Repeatable mode is generally better for lighting, as it keeps lights on as long as someone is moving, preventing them from turning off unexpectedly. 5. Wiring and Connecting the HW416B
| Feature | Description | |---------|-------------| | | 2–7 meters (adjustable) | | Field of view | Approx. 100° | | Power supply | 5 V DC (typical); supports 3.3 V via configuration pins | | Output signal | TTL high/low digital output (3.3 V / 5 V logic) | | Adjustments | Two potentiometers – detection distance and output delay | | Trigger modes | Selectable repeat / non‑repeat (jumper‑configurable) | | Operating temperature | –20 °C to +70 °C | | Dimensions | Approx. 32.6 × 24.3 mm |
else if (motionState == LOW && lastMotionState == HIGH) Serial.println("Motion STOPPED. Timer expired."); digitalWrite(ledPin, LOW); The primary electrical constraints defined in the device
It is compact, inexpensive, and highly configurable, making it ideal for security systems, automation, smart lighting, and energy-saving devices. Key Features
It features a simple three-pin interface (VCC, OUT, GND) that outputs a 3.3V TTL signal, eliminating the need for complex level shifting.
Since the "HW-416B" is often confused with the (they share the same BISS0001 chip and lens), this post focuses on clarifying the actual specs and how to use it effectively. It is compact
The HW-416B features a simple 3-pin interface alongside configuration controls on the back of the printed circuit board (PCB). Main Interface Pins
Understanding the electrical limits of the HW-416B prevents component damage and ensures reliable motion detection. Specification DC 4.5V to 20V 5V or 12V regular rails work best Static Current Ideal for battery-powered setups Output Level High 3.3V / Low 0V Digital TTL signal Trigger Modes L (Non-repeat) / H (Repeat) Set via onboard jumper or solder pads Delay Time Adjustable (0.5s to 200s+) Controlled by onboard potentiometer Blockade Time 2.5 seconds Default lock time between triggers Detection Angle < 100° cone angle Dependent on Fresnel lens alignment Detection Distance Up to 7 meters Adjustable via potentiometer Operating Temp -20°C to +80°C Extreme temps affect sensitivity 📌 Pinout Configurations