@tibbo-tps/tibbit-35
v0.0.4
Published
Tibbit #30 Module (Barometric pressure/temperature sensor)
Downloads
1
Readme
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.