pir_motion
所属分类:嵌入式Linux
开发工具:Others
文件大小:0KB
下载次数:0
上传日期:2023-08-28 20:35:20
上 传 者:
sh-1993
说明: 树莓Pi和PIR传感器的运动检测,
(Motion detection for Raspberry Pi and PIR sensor,)
文件列表:
gpiozero_motion_sensor.py (2380, 2023-10-15)
motionsensor.py (1559, 2023-10-15)
motionsensor.service (238, 2023-10-15)
testpir.py (385, 2023-10-15)
# pir_motion
Motion detection for Raspberry Pi and PIR sensor
Modified code based on https://www.thedigitalpictureframe.com/pir-motion-sensor-raspberry-pi-digital-picture-frame/
Configure motionsensor.py by changing the pin numbers being used for the sensor(s)
copy motionsensor.service
```
sudo cp motionsensor.service /etc/systemd/system/
```
Set permissions of motionsensor.service
```
sudo chmod 744 /etc/systemd/system/motionsensor.service
```
add the service
```
sudo systemctl daemon-reload
sudo systemctl enable motionsensor.service
```
近期下载者:
相关文件:
收藏者: