Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chadiem/motion-detection-lcd
https://github.com/chadiem/motion-detection-lcd
hc-sr501 lcd motion motion-detection waveshare
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chadiem/motion-detection-lcd
- Owner: ChadiEM
- Created: 2017-09-25T21:36:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T18:33:27.000Z (about 4 years ago)
- Last Synced: 2024-10-29T22:52:58.460Z (2 months ago)
- Topics: hc-sr501, lcd, motion, motion-detection, waveshare
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Motion detection to keep screen alive
Uses a HC-SR501 motion detector to keep LCD screen alive, then turns it off when no activity is detected for the specified amount of time.
Tested with Raspian buster, and [Waveshare 7inch HDMI LCD (C)](https://www.waveshare.com/7inch-HDMI-LCD-C.htm).
## Configuration
Modify `screen.py`'s ON and OFF behavior according to your needs. The default may or may not work for you.## Entry point
Start with:
`./motion.py `### Arguments
- `--pin`: the GPIO pin of the motion detector (required)
- `--timeout`: the timeout in seconds for the screen to turn off after motion (optional, default: 120)
- `--verbose`: activates verbose mode for motion detection (optional, default: off)### Example
`./motion.py --pin=18 --timeout=300`