Bitte warten - die Druckansicht der Seite wird vorbereitet.
Sollte die Druckvorschau unvollständig sein, bitte schliessen und "Erneut drucken" wählen.
| Pin Name | Function | Description | | :--- | :--- | :--- | | | Power Input | Connect to +5V DC (or 4.5V–20V). Do not exceed 20V. | | GND | Ground | Common ground with the microcontroller or load circuit. | | OUT | Digital Output | Goes HIGH (3.3V) when motion is detected. Falls LOW after lock-down time. |
| Feature | HW-416-B | HC-SR501 | | :--- | :--- | :--- | | Size | Smaller (32x24mm) | Larger (32x24mm approx, thicker) | | Quiescent Current | < 50 µA | < 65 µA | | Adjustable Time Delay | Usually fixed or very short (2.5s) | Yes (0.3s – 600s) | | Retriggering Mode | Internal (automatic) | Jumper-selectable (single/retrigger) | | Best for | Battery-powered, short-lived triggers | Security lights, long delays | hw-416-b pir sensor datasheet
delay(100);
void loop() motionState = digitalRead(motionPin); if (motionState == HIGH) digitalWrite(ledPin, HIGH); Serial.println("Motion detected!"); else digitalWrite(ledPin, LOW); | Pin Name | Function | Description |