Skip to main content

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.

Release files for RaspberryPiMovementDetector 0.17.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for RaspberryPiMovementDetector 0.17.2
File Size Uploaded
RaspberryPiMovementDetector-0.17.2.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for RaspberryPiMovementDetector 0.17.2
File Interpreter ABI Platform
RaspberryPiMovementDetector-0.17.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / RaspberryPiMovementDetector-0.17.2.tar.gz

Download URL RaspberryPiMovementDetector-0.17.2.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
80949f4f69f89471e43a633336f6d2c7ac2f3eeb4a2c3bb156d499e4692e77d7
BLAKE2b-256 checksum
How to use checksums
3aa0100f2eeb767e8a9e459aacf166f758f2187caee1ee52537e759e63253531
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / RaspberryPiMovementDetector-0.17.2-py3-none-any.whl

Download URL RaspberryPiMovementDetector-0.17.2-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aaea386b5cf628750de958338814745bbaacf53a13bb595694a95ef85d292fa4
BLAKE2b-256 checksum
How to use checksums
de546a28c22da11448282f97c179772242ed72d6a25792f2d8223bc135928260
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.17.2 This release

2 release files

0.16.1

2 release files

0.16

2 release files

0.15

2 release files

0.14

2 release files

0.13

2 release files

0.12

2 release files

0.9

2 release files

0.8

2 release files

0.7

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page