Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.47 KB

MPL115A2.md

File metadata and controls

44 lines (31 loc) · 1.47 KB

MPL115A2, I2C digital barometer and temperature sensor

  • KEYWORDS: Module,mpl115a2,barometer,temperature,pressure,i2c,kPa,celsius

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

  • APPEND_USES: MPL115A2

Buying:

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