int pirState = LOW; int val = 0;
At its core, the module utilizes a pyroelectric sensor covered by a specially designed Fresnel lens. The lens focuses infrared radiation onto the sensing element. When a warm body moves across the sensor's field of view, the internal electronics process the differential signal and trigger a digital high output. Key Benefits
Mira liked that tech could be poetic in this way: specifications that read like constraints, which, when respected and understood, gave rise to unexpected convenience and quiet safety. The HW-416-B wasn’t a grand machine; it was a humble sensor with a simple promise and a datasheet that taught anyone patient enough how to keep that promise.
The HW-416-B is an electronic module designed to detect motion by measuring changes in the infrared (heat) levels emitted by surrounding objects—specifically human bodies and animals. How it Works hw-416-b pir sensor datasheet
while True: if pir.value(): led.value(1) print("Motion detected!") time.sleep(1) else: led.value(0) time.sleep(0.1)
The back of the HW-416-B PCB houses two potentiometers and a trigger mode jumper that allow you to fine-tune its behavior.
| Pin name | Function | | :--- | :--- | | | Power supply (5 V typical) | | OUT | Digital output (HIGH when motion is detected) | | GND | Ground | int pirState = LOW; int val = 0;
If your HW-416-B is outputting false positive triggers, consider the following variables:
HW-416-B → Arduino VCC → 5V GND → GND OUT → Digital Pin 2
[ Sensitivity ] [ Time Delay ] ( Rx Adj ) ( Tx Adj ) (_) (_) Counter: Min Counter: Min Clock: Max Clock: Max 1. Sensitivity Adjustment (Distance) Key Benefits Mira liked that tech could be
detects motion by measuring changes in the infrared levels emitted by surrounding objects Operating Voltage: 4.5V to 20V DC. Voltage Output: High/Low signal (3.3V High, 0V Low). Detection Range: Adjustable up to approximately 7 meters (23 feet). Detection Angle: Less than 120°. Delay Time:
The heart of the module is a pyroelectric sensor housed beneath the white, multi-faceted Fresnel lens. Everything emits some level of low-level infrared radiation; the warmer an object is, the more radiation it emits.
Contact the team at ServiceScaler today for a free and confidential discussion
Contact Us