Skip to main content

Enviro pHAT environmental sensor board driver

Project description

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


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


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 install

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

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

Documentation & Support


  • Fix: Corrected upper bounds check for tilt_heading


  • 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


  • Added __version__ to module

  • Added DocStrings


  • Bug fix to lsm303d raw_heading


  • Tidy up of read functions in bmp280

  • Fixed incorrect call to pressure method


  • Python3 fix


  • Bug fixes


  • 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.1.tar.gz (11.2 kB view hashes)

Uploaded Source

Built Distributions

envirophat-1.0.1-py3-none-any.whl (12.3 kB view hashes)

Uploaded Python 3

envirophat-1.0.1-py2-none-any.whl (12.3 kB view hashes)

Uploaded Python 2

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