MPL3115A2

MPL3115A2.jpg

This sensor uses an I2C interface and allows for the internal measurement of temperature and pressure; enabling a basic altitude calculation based off a calibrated sea level. This sensor has a temperature resolution of ±1°C and a pressure resolution of 1.5 Pascal, thus enabling an altitude resolution of 0.3 meters. In software you simply call the GetAltitude() & GetTemperature() functions in MPL3115A2.spin to access the current altitude in meters and the current temperature in degree Celsius.