0.0.4 • Published 5 years ago

@tibbo-tps/tibbit-35 v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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.

0.0.4

5 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago