Raspberry Movement Detector
Project description
Project description Movement detector for RaspberryPi with Watch to watch objects coming into proximity. Pass pins Trigger and Echo. Pass offset to determine boundary for the object to come in
Example
import time
import RPi.GPIO as GPIO
from MovementDetector.Watch import Watch
TRIG = 23
ECHO = 24
def func_moved_in(arg):
print("process for object entering field")
def func_moved_out(arg):
print("process for object exiting field")
OFFSET = 200 # 2m
watch = Watch(gpio=GPIO, trig=TRIG, echo=ECHO, func_in=func_moved_in, func_out=func_moved_out, offset=OFFSET)
watch.observe()
time.sleep(100) # Sleep
watch.stop()
Source code and more info at https://github.com/KSanthanam/RaspberryPiMovementDetector.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file RaspberryPiMovementDetector-0.17.2.tar.gz.
File metadata
- Download URL: RaspberryPiMovementDetector-0.17.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80949f4f69f89471e43a633336f6d2c7ac2f3eeb4a2c3bb156d499e4692e77d7
|
|
| MD5 |
89589d0057ea3ecff375aaf47f35e32f
|
|
| BLAKE2b-256 |
3aa0100f2eeb767e8a9e459aacf166f758f2187caee1ee52537e759e63253531
|
File details
Details for the file RaspberryPiMovementDetector-0.17.2-py3-none-any.whl.
File metadata
- Download URL: RaspberryPiMovementDetector-0.17.2-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaea386b5cf628750de958338814745bbaacf53a13bb595694a95ef85d292fa4
|
|
| MD5 |
c9263cac64b14d69d8505062b12d340e
|
|
| BLAKE2b-256 |
de546a28c22da11448282f97c179772242ed72d6a25792f2d8223bc135928260
|