LPS25HB pressure sensor

LPS25HB is a pressure sensor that can be used by i2c. This sensor is available on ST X-NUCLEO-IKS01A1 expansion board. datasheet is available on ST web site : http://www.st.com/content/ccc/resource/technical/document/datasheet/9a/4c/aa/72/1f/45/4e/24/DM00141379.pdf/files/DM00141379.pdf/jcr:content/translations/en.DM00141379.pdf

Use the LPS25HB (About Modules) module for it.

You can wire this up as follows:

Device Pin Espruino Pico
D15 (SCL) B6
D14 (SDA) B7
GND GND
+5V VBAT
+3V3 3.3

Note: To avoid links, you can use the ArduinoPico adaptor. In this case, check the pins to use for SPI1, it should be B8 and B9.

How to use module:

I2C1.setup({scl:B6,sda:B7});
var pressure = require("LPS25HB").connect(I2C1);
pressure.getPressure(print);

Besides the I2C connection, connect() takes an optional argument to provide debug information :

I2C1.setup({scl:B6,sda:B7});
var pressure = require("LPS25HB").connect(I2C1, 1);
pressure.getPressure(print);

Buying:

Shield can be purchased from many places:

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