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
Close
Hashes for RaspberryPiMovementDetector-0.17.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80949f4f69f89471e43a633336f6d2c7ac2f3eeb4a2c3bb156d499e4692e77d7 |
|
MD5 | 89589d0057ea3ecff375aaf47f35e32f |
|
BLAKE2b-256 | 3aa0100f2eeb767e8a9e459aacf166f758f2187caee1ee52537e759e63253531 |
Close
Hashes for RaspberryPiMovementDetector-0.17.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaea386b5cf628750de958338814745bbaacf53a13bb595694a95ef85d292fa4 |
|
MD5 | c9263cac64b14d69d8505062b12d340e |
|
BLAKE2b-256 | de546a28c22da11448282f97c179772242ed72d6a25792f2d8223bc135928260 |