PIR motion sensor HC SR501
Aggregazione dei criteri
PIR motion sensor HC SR501
The PIR (Passive Infrared) motion sensor features a Fresnel lens, an infrared detector, and a supporting detection circuit.
When the PIR motion sensor detects a person (or an animal), it sends a 5V signal to the Raspberry Pi through its GPIO. Using a Python language program, the Raspberry Pi knows what to do with that signal. In this lab, we will address three actions:
- Turn
on a red indicator on the rooms panel.
- Display
the message "Activity detected in room # 1" on the Raspberry Pi
screen.
- Activate a webhook in IFTTT to send an alert to the smartphone.