User:Istitov/Pimoroni Enviro pHAT

Enviro pHAT by Pimonori is a small and handy addition to Raspberry Pi version 2, 3, 4 as well as compact Raspberry Pi Zero. It features several sensors to measure various "environmental" variables such as temperature, pressure, light level and colour, 3-axis motion, compass heading, and input voltage. Currently, this version is discontinued and Enviro (which is also pHat, technically) is suggested as more advanced replacement.

Overview
Enviro pHAT is a HAT/pHAT board, which is connected to Raspberry Pi board via 40-pin GPIO header mount. Note that only difference between Hat and pHAT is that the latter has is designed especially to work Raspberry Pi Zero and fits its form factor. However, due to certain compatibility between the Raspberry Pi versions and revision as well as other similar products (e.g. Orange, Banana Pi) it will work with them too. The pHat comes as a single board with separate pinout headers, which should be soldered prior to installation on Raspberry Pi board. It uses 3 GPIO pins (#2,3,4) and 5V power and communicates over i2c interface. To be mounted properly, the board should be oriented in a way so it is mounted "atop" the Raspberry Pi. To read the pHAT sensors one can use dedicated python library or for a direct access to the GPIO pins  package. The following instructions are tested on Raspberry Pi 2 Model B and Enviro pHAT. Modern Enviro (not tested due to the lack of equipment) will require different python library, however, general approach would be the same.

Installation consists of the following steps:


 * 1) enabling hardware configuration in ,
 * 2) checking kernel configuration and modules,
 * 3) UDEV configuration,
 * 4) software installation.

Software installation
https://learn.pimoroni.com/article/getting-started-with-enviro-phat