Skip to main content

Enviro pHAT environmental sensor board 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.1

  • Fix: Corrected upper bounds check for tilt_heading

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.

Files for envirophat, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size envirophat-1.0.1-py2-none-any.whl (12.3 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size envirophat-1.0.1-py3-none-any.whl (12.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size envirophat-1.0.1.tar.gz (11.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page