@tibbo-tps/tibbit-35

0.0.4 • Public • Published

Tibbit #30 (Barometric pressure/temperature sensor)

The node module for collecting data from Tibbit #35 (Barometric pressure/temperature sensor).

Installation Instructions

The module is available as precompiled binary and C source code.

Install the module

npm install @tibbo-tps/tibbit-35

Usage

var pressureSensor = require("@tibbo-tps/tibbit-35").init(socket);

API Methods:

init(socket)

  • socked - TPP socket number

Returns an object with a singe method:

.getData()

Returns an object with the following properties:

  • pressure - Pressure, mmHg
  • temperature - Temperature, Celsius

Example:

var pressureSensor = require("@tibbo-tps/tibbit-35").init("S1");
setInterval(function(){
    var data = pressureSensor.getData();
    console.log("Pressure, mmHg: "+data.pressure);
    console.log("Temperature, C: "+data.temperature);
},1000);

Units conversion

To convert mmHg into Pa do:

var pressureInPa = 133.3223684 * pressureInHgmm

About the Tibbit #35 block

This Tibbit is based on the MPL115A2 barometric pressure measurement IC with I2C interface. The sensor is implemented as the C1 device with perforated front face.

The module measures the atmospheric pressure with 0.15 kPa resolution and +/-1 kPa accuracy.

This C1 device requires that Tibbit #00-3 is installed in the neighbouring "M" socket. #00-3 provides two direct lines for I2C comms, as well as the ground and +5V power for the MPL115A2 IC.

Readme

Keywords

none

Package Sidebar

Install

npm i @tibbo-tps/tibbit-35

Weekly Downloads

2

Version

0.0.4

License

MIT

Unpacked Size

54 kB

Total Files

5

Last publish

Collaborators

  • tibbo-tps