// HW416B Better Interface - No delay() blocking, edge detection
PIR sensors are highly susceptible to environmental variables. If your HW-416B is giving false positives, consider the following fixes:
// Turn off LED after hold time (simulates retrigger management) if (millis() - lastMotionTime > MOTION_HOLD_MS) digitalWrite(LED_PIN, LOW);
The HW-416B features two orange trim pots (potentiometers) on the back. Knowing how to turn them is the difference between a working project and a false-trigger nightmare. PIR (motion) sensor - Adafruit hw416b pir sensor datasheet better
The dome on the PIR sensor isn't just a cover—it's the focusing lens. Never remove it unless you're replacing it with a different lens for a different detection pattern.
| Parameter | Typical Value | |-----------|----------------| | Operating Voltage | 5V – 20V (but 5V works fine) | | Standby Current | < 50 µA | | Output High | 3.3V (not 5V – be careful) | | Output Low | 0V | | Delay Time | 5 – 300 seconds (adjustable) | | Sensitivity | 3 – 7 meters | | Trigger Modes | Single (non-repeatable) or Repeatable |
The HW-416B excels at sensing human body heat movement through its , providing a digital signal to a microcontroller or relay. Specification Operating Voltage 4.5V to 20V DC Output Signal High (3.3V) / Low (0V) Sensing Range Up to 7 meters (Adjustable) Detection Angle < 120° cone Quiescent Current < 65uA (Low power consumption) Delay Time 0.3s to 300s (Adjustable via Potentiometer) 🔧 On-Board Controls & Customization // HW416B Better Interface - No delay() blocking,
Pro tip: Set it to for debugging, otherwise you will think the sensor is broken because it ignores you for 30 seconds after the first wave.
Digital output pin that goes High (3.3V) when motion is detected. Ground connection. Sensitivity Adjustment:
If you have ever built a motion-activated light, a security alarm, or an automatic door opener, chances are you have encountered the . PIR (motion) sensor - Adafruit The dome on
Most "datasheets" show a blurry image. Here is the clear pinout:
: Wi-Fi routers, ESP32 development boards, and cellular antennas placed within a few inches of the HW-416B can induce noise on the signal lines. Keep wireless modules at least 30cm away.
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
: Turning clockwise increases the duration the OUT pin stays HIGH after motion stops. Turning counter-clockwise reduces it to a fraction of a second. Trigger Mode Jumper (L/H) :