Skip to main content

Python library for the PMW3901 optical flow sensor

Project description

PMW3901 / PAA5100JE 2-Dimensional Optical Flow Sensor

Build Status Coverage Status PyPi Package Python Versions

Installing

Stable library from PyPi:

  • Just run sudo pip install pmw3901

Latest/development library from GitHub:

  • git clone https://github.com/pimoroni/pmw3901-python
  • cd pmw3901-python
  • sudo ./install.sh

Usage

The PAA5100JE has a slightly different init routine to the PMW3901, you should use the class provided to ensure it's set up correctly:

from pmw3901 import PAA5100

And for the PMW3901, continue using the old class:

from pmw3901 import PMW3901

The example motion.py demonstrates setting up either sensor, and accepts a --board argument to specify which you'd like to use.

Changelog

0.1.0

  • Add init support for PAA5100JE
  • Add frame capture support

0.0.1

  • Initial Release

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

pmw3901-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distributions

pmw3901-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

pmw3901-0.1.0-py2-none-any.whl (6.1 kB view details)

Uploaded Python 2

File details

Details for the file pmw3901-0.1.0.tar.gz.

File metadata

  • Download URL: pmw3901-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3

File hashes

Hashes for pmw3901-0.1.0.tar.gz
Algorithm Hash digest
SHA256 528b27ec6588eff672f765f0a542c6f469ad12058e93cc813a250657720605a8
MD5 c33232680b4d7cc4d0319875c70fafce
BLAKE2b-256 2fe4d7726afa7a2cee45b45c5ca83102491a32783e984e369ee0dd87d4bd1ff3

See more details on using hashes here.

File details

Details for the file pmw3901-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pmw3901-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3

File hashes

Hashes for pmw3901-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1bb282c072054ebdc81cdf3b8dab73e79d23cfd7ac437f956f0fb347d59b345
MD5 d3b78e3ec0fa94f21e4ef805b18aedde
BLAKE2b-256 d2465fbaf4f3d1e7938435ba3f135a2d266861b9c2f565742acf9c1213fc8b46

See more details on using hashes here.

File details

Details for the file pmw3901-0.1.0-py2-none-any.whl.

File metadata

  • Download URL: pmw3901-0.1.0-py2-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3

File hashes

Hashes for pmw3901-0.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 810bdf142df8f2c3f079d546dffdbf5cb7c4c2e033b7eaf5fd4b058b1eb53aeb
MD5 1e58bbd472c071d8771929732b5046ce
BLAKE2b-256 150be5c0a8191e54275cc0cb82a40ba18b7931919edb37edf6c2d34bca6f3b4a

See more details on using hashes here.

Supported by

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