Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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


Release history Release notifications

This version
History Node

1.0.0

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
envirophat-1.0.0-py2-none-any.whl (13.6 kB) Copy SHA256 hash SHA256 Wheel py2 Mar 15, 2018
envirophat-1.0.0-py3-none-any.whl (13.6 kB) Copy SHA256 hash SHA256 Wheel py3 Mar 15, 2018
envirophat-1.0.0.tar.gz (11.5 kB) Copy SHA256 hash SHA256 Source None Mar 15, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page