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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sb412a_1-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 95917357b39ddd15b9527e96cbfd15e829db721ef64089da0cc62c07aa8d981c
MD5 b96e7cb4f854a3ccb3381f7ac60f55e5
BLAKE2b-256 f679f3e1af30d4d749f1de33cb5af10ef1c6e522636494bdc9910600df18f905

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sb412a_1-0.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 41cf4596aa98b7d0d43f56597b921f37a5841d4eee85452daa6d298ba8b4383b
MD5 a9f396d6542c34aad563fb1ee1fc5f50
BLAKE2b-256 e70cbf9570fa9faf01175941b3722344627cccc166b49e7d2535c6bbeda53454

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