Environmental HATs
This page covers HATs used in environmental monitoring.
Pimoroni enviro + air quality (PIM458)
- BME280 temperature, pressure, humidity sensor
- LTR-559 light and proximity sensor
- MICS6814 analog gas sensor
- ADS1015 analog to digital converter (ADC)
- MEMS microphone (datasheet) (see below)
- 0.96" color LCD (160x80, ST7735) (see below)
- Connector for particulate matter (PM) sensor (available separately)
This HAT is available at Pimoroni and DigiKey, as well as other locations.
The pinout is as follows:
There are three I2C sensors:
Chip | Description | I2C Address |
---|---|---|
LTR559 | Light sensor | 0x23 |
ADS1015 | Analog to digital converter | 0x49 |
BME280 | Temperature and humidity sensor | 0x76 |
While the ADS1015 ADC is not available on the automation HAT, it is available on the enviro HAT because it's configured to use I2C address 0x49 so it does not conflict with the TMP112A temperature sensor on the Muon itself.
The ST7735 LCD display is not useable because the D/C pin (input to display) uses the Pi expansion pin 21 (GPIO9), which is also SPI MISO. The display never sends data to the MCU, and the hat doesn't otherwise use SPI, however the RTL872x SPI does not allow the MISO pin to be used as GPIO while SPI is active. It is possible that a workaround will be found, but right now it does not work.
The I2S microphone is supported by the Muon hardware, but a library is not available at this time. It is expected to be available in the future.
The LTR559 light sensor can be accessed using the LTR559_RK library. It provides basic access the read the proximity sensor (PS) and automatic light sensor (ALS) data. Since the interrupt line from the LTR559 is not connected to the HAT interface, you can't use hardware interrupts with it.
The PMS5003 particulate matter sensor is not currently working for unknown reasons. The data stream is not coming off the sensor but the library and setup is in place.
Sample code