Wiring and configuring the PIR motion sensor
Cerințe pentru finalizare
Wiring and configuring the PIR motion sensor
Now we connect the motion sensor and write the program in Python language that will establish the sensor's behaviour:
- Connect
the sensor terminals to the following GPIO pins
motion sensor
Raspberry Pi GPIO
Power
Pin 2
Signal
Pin 11
GND
Pin 6
The general diagram (including the LED connection made previously) is connected as follows:
- We will add the necessary lines to read the PIR motion sensor’s output to the program written in Python language. The sensor outputs a HIGH (5V) digital signal when detecting a person or animal’s presence.