Skip to main content

Enviro pHAT Driver

Project description

https://shop.pimoroni.com/products/enviro-phat

The Pimoroni Enviro pHAT boast a plethora of sensors and connectivity for measuring your environment.

Enviro pHAT includes:

  • An LSM303D accelerometer/magnetometer for detecting orientation, motion and heading

  • A BMP280 temperature/pressure sensor

  • A TCS3472 colour sensor, for detecting the amount and colour of light

  • An ADS1015 analog sensor with four 3.3v tolerant channels for your external sensors

  • A 5v power supply pin for powering your sensors, which you can regulate or divide to 3v if needed

  • Two LEDs connected to GPIO #4 for illuminating objects over the colour sensor

Installing

Manual install:

Library install for Python 3:

on Raspbian:

sudo apt-get install python3-envirophat

other environments:

sudo pip3 install envirophat

Library install for Python 2:

on Raspbian:

sudo apt-get install python-envirophat

other environments:

sudo pip2 install envirophat

Development:

If you want to contribute, or like living on the edge of your seat by having the latest code, you should clone this repository, cd to the library directory, and run:

sudo python3 setup.py install

(or sudo python setup.py install whichever your primary Python environment may be)

In all cases you will have to enable the i2c bus.

Documentation & Support

1.0.0

  • Fix: Defer setup to avoid import side-effects

  • Fix: QNH changed to ISA standard

  • Tweak: New Enviro pHAT I2C addr now default

  • Added: unit argument to pressure to choose Pa or hPa

0.0.6

  • Added __version__ to module

  • Added DocStrings

0.0.5

  • Bug fix to lsm303d raw_heading

0.0.4

  • Tidy up of read functions in bmp280

  • Fixed incorrect call to pressure method

0.0.3

  • Python3 fix

0.0.2

  • Bug fixes

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

envirophat-1.0.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distributions

envirophat-1.0.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

envirophat-1.0.0-py2-none-any.whl (13.6 kB view details)

Uploaded Python 2

File details

Details for the file envirophat-1.0.0.tar.gz.

File metadata

  • Download URL: envirophat-1.0.0.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for envirophat-1.0.0.tar.gz
Algorithm Hash digest
SHA256 68f5d23cf2143a4af620b9cf40b8ce6ada3b6e7f2cb3c10a4c05a15d5e0efb11
MD5 4a57ef41c69962657be60dc6fb65e428
BLAKE2b-256 a5ad8412cad502694b53cc1c7a0ac688ac62f31f4dd91023aff6f0e3ba58100f

See more details on using hashes here.

File details

Details for the file envirophat-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for envirophat-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe6ff5fad63bc43b8962e1c5f8f0af8279f32ab5d74b075dcae2e423ff3146c2
MD5 22be9bf4671cd6daee1cbf9d8602e716
BLAKE2b-256 0fc681e3d018458235dc7092b7e34177ea3581dd3423684f0a58956766c3b23c

See more details on using hashes here.

File details

Details for the file envirophat-1.0.0-py2-none-any.whl.

File metadata

File hashes

Hashes for envirophat-1.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 65b9cb3390951bb0b8dbf8c9a84d341f5e2dc83f197b0da9c373a093f050f16f
MD5 78134c538fd6c7acbe98ee201eae1b0b
BLAKE2b-256 3e437bc34bf8a32873ef964488a8b52f4ddc4de7fdb1da3a86d1a336e552c75d

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