MPL115A2, I2C digital barometer and temperature sensor

MPL115A2 is a miniature I2C Digital Barometer for low cost applications. Each device is individually calibrated and produces air pressure data in kPa and temperature in Celsius. Use the MPL115A2 module for it.

You can wire this up as follows:

Device Pin Espruino
GND GND
VDD 3.3
SCL B6
SDA B7

You will need 4.7k - 10k pull-up resistors for the I2C signal wires. If you use the breakout board from Adafruit things are super-easy as 10k pull-up resistors are included. Just connect the wires.

How to use:

I2C1.setup(scl:B6, sda:B7});
var device = require('MPL115A2').connect(I2C1);

device.getData(function(data) {
   console.log(data); // Data is an object like this: {t:22.51, p: 101.68}, where t is in C and p is in kPa
});

Using

No tutorials use this yet.

Buying:

You can get this module from several different places, including:

This page is auto-generated from GitHub. If you see any mistakes or have suggestions, please let us know.