Skip to main content

Package for motion sensor using sb412a-1

Project description

SB412A-1-Python

This package is used for human sensing with sb412a-1 on Rasberry Pi.

Installation

To install, just run following:

pip3 install sb412a_1

Usage

  1. Instantiate the Sb412a_1 class with the pin number as constructor parameter.
  2. Call the getData() method to get the data: 1 for detection, 0 for no detection.
from sb412a_1 import Sb412a_1
import time

SENSOR_PIN = 15
instance = Sb412a_1(SENSOR_PIN)

while True:
    print(instance.getData())
    time.sleep(1)

For working example, see example.py (you probably need to adjust pin for your configuration).

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

sb412a_1-0.0.4.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sb412a_1-0.0.4-py3-none-any.whl (1.4 kB view details)

Uploaded Python 3

File details

Details for the file sb412a_1-0.0.4.tar.gz.

File metadata

  • Download URL: sb412a_1-0.0.4.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for sb412a_1-0.0.4.tar.gz
Algorithm Hash digest
SHA256 8990fe522b927149419c2a43d14042cd8b426a45880099fd98fb4d3a752b923c
MD5 c440c70e35e12a7a88cbc0565fdeb2d6
BLAKE2b-256 c16fc2c9afadd286bddea5b31838d2b9be3a9b5c1787453dcfbd72ce935e7128

See more details on using hashes here.

File details

Details for the file sb412a_1-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: sb412a_1-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 1.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for sb412a_1-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7f28848ec2036e78dc614a53670383da8e41c77c3e489b6f86a142c5ceced310
MD5 896c7c0d896cecab880c1fc317defada
BLAKE2b-256 68c201671ff37ae9f1123475a77719bf8ea73ce5b28a42e6faeb39ab0147b1c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page