Hw-416-b Pir Sensor Datasheet -

Digital output pin. Outputs 3.3V (HIGH) when motion is detected and 0V (LOW) during standby. GND: Ground connection. Connect to the system ground.

| Pin | Name | Description | |-----|------|-------------| | 1 | VCC | Power supply (5V typical, compatible with 4.5V–20V) | | 2 | OUT | Digital output: HIGH (3.3V) on motion detection, LOW when idle | | 3 | GND | Ground connection |

Here is the informative "story" of this sensor, from its technical specs to how you can dial it in for your own project. ⚙️ Vital Statistics hw-416-b pir sensor datasheet

Note: Lockout time (approx 2 seconds) after OUT goes LOW – sensor ignores motion to prevent oscillation.

GPIO.setmode(GPIO.BCM) GPIO.setup(PIR_PIN, GPIO.IN) Digital output pin

While exact mechanical drawings vary slightly by manufacturer, typical dimensions for the HW-416 module are approximately with a height of roughly 25 mm when accounting for the lens and potentiometers. Allow for an additional ~10 mm clearance when planning enclosure space.

If you use the HW-416-B right next to an ESP8266 or Wi-Fi module, electromagnetic interference may trigger the sensor falsely. Keep the sensor a few inches away from antennas or add a 0.1µF ceramic capacitor across the VCC and GND pins of the PIR module to filter out power supply noise. If you'd like to expand your project, tell me: Connect to the system ground

5V – 12V DC (typical input), with onboard regulation to 3.3V.

Some early HW-416-B modules have an additional jumper for 5V/3.3V output selection, but the standard version is fixed at 3.3V logic. Always check your specific board revision.