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.5.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.5-py3-none-any.whl (1.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sb412a_1-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 6360ffe3c90c24d6392fde97fb0853f9acd2eb4f3a7eec496e9753bdfbfc2bfd
MD5 6a492ee354a0e0f56d912273a5a1b3ae
BLAKE2b-256 7d9b5f54107faff85cca59b243b2351320d4393af01dd74368bd66d6a9f352bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sb412a_1-0.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4bacea3e1fe81cd23001783a1b21b854a8ea0e205cccc7fd568955c8a2618704
MD5 091688460894a66946baaa79c2a5d580
BLAKE2b-256 8a76c1fcafdd63922ce59338e0db793a377864cea196bc2bb702ea4d49547dab

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