Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

bme680-sensor

0.1.8 • Public • Published

bme680

Node.js module for controlling Bosch Sensortec BME680 sensors.

pipeline status coverage report Quality Gate

Installation

npm install bme680-sensor

Wiring

bme680 pin Raspberry Pi pin Raspberry Pi GPIO
VIN (3,3 V) 1
GND 6
SDI 3 2
SCK 5 3

Available Methods

initialize

Initialize the sensor.

Setting Default value
Temperature offset 0 °C
Gas heater temperature 320 °C
Gas heater duration 150 ms
Gas heater profile 0

Usage:

'use strict';
 
const { Bme680 } = require('bme680-sensor');
const bme680 = new Bme680(1, 0x76);
 
bme680.initialize().then(async () => {
    console.info('Sensor initialized');
    setInterval(async () => {
        console.info(await bme680.getSensorData());
    }, 3000);
});

Credits

Install

npm i bme680-sensor

DownloadsWeekly Downloads

5

Version

0.1.8

License

MIT

Unpacked Size

32.8 kB

Total Files

11

Last publish

Collaborators

  • avatar