Hw-416-b Pir Sensor Datasheet [work] Direct
The HW-416-B module typically features two orange potentiometers. Most online tutorials claim one controls "Sensitivity" (Distance) and the other controls "Time Delay."
Reverse Engineering the HW-416-B (HC-SR501) Control Logic. Component Focus: The unlabeled COB (Chip on Board) and adjustment potentiometers.
Do you need assistance calculating the or power distribution for this module? Share public link
Some iterations of the HW-416-B contain a small 3-pin solder jumper configuration labeled 'H' and 'L'. hw-416-b pir sensor datasheet
When the environment is static, both halves receive the same amount of IR radiation, resulting in a balanced 0V output. When a warm body passes through the detection field, it intercepts one half of the sensor first, creating a positive differential change. As it leaves, it intercepts the second half, creating a negative differential change. The onboard IC processes this differential pulse and triggers the pin to go High.
else digitalWrite(ledPin, LOW); if (pirState == HIGH) Serial.println("Motion ended!"); pirState = LOW;
Clockwise rotation increases the detection distance (up to ~7 meters). Counter-clockwise rotation reduces the distance (down to ~3 meters). Adjust this to filter out distant background movements. Do you need assistance calculating the or power
Output goes low once the delay expires, regardless of continued motion. H (Repeatable): Output stays high as long as continuous motion is detected. Basic Arduino Connection
Output stays high as long as motion is detected. 3. Pinout Configuration
If you are looking to build a specific application with this sensor, let me know: When a warm body passes through the detection
void setup() pinMode(ledPin, OUTPUT); pinMode(inputPin, INPUT); Serial.begin(9600);
The following sketch initializes the HW-416-B, monitors the digital output, and prints the motion status to the Serial Monitor while lighting up the built-in LED on pin 13 when motion is detected.
The HW-416-B output is . To safely interface with 3.3V logic:
They are functionally identical. Use HW-416-B if it’s cheaper or available locally.
: