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

Uploaded Python 3

File details

Details for the file sb412a_1-0.0.3.zip.

File metadata

  • Download URL: sb412a_1-0.0.3.zip
  • Upload date:
  • Size: 3.6 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.3.zip
Algorithm Hash digest
SHA256 a44e0f64d94f5348dae3ca50e53946a781e8e3ace7c8b937d499414b6668871f
MD5 92a6a3ea7ab49e55ff92ee2aa049c24b
BLAKE2b-256 d5353d0a18b204bb6937d6916882fbd7a4b6d52eca0f99eb5abd6eae14deed7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sb412a_1-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fa8e0e7cc51521aff2a89601c0b39bcaaae7f85d7b6a34b249bd350210fa4958
MD5 a7cc5429f887c29bde736b27c7f80c3a
BLAKE2b-256 cd11fba0858f851684582f2993f687de7cf4a4b4108f0cbce7bde0dfc8952de6

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