node-red-contrib-mlx-sensor
v0.1.1
Published
MLX90614 Infrared Temperature Sensor
Downloads
17
Maintainers
Readme
MLX90614 sensor for node.js
A node.js module for working with the infrared temperature sensor via i2c. Ported from
About the sensor
TThe MLX90614 is an infrared thermometer for non-contact temperature measurements. Both the IR sensitive thermopile detector chip and the signal conditioning ASIC are integrated in the same TO-39 can. Integrated into the MLX90614 are a low noise amplifier, 17-bit ADC and powerful DSP unit thus achieving high accuracy and resolution of the thermometer. Datasheet available via from melexis.
Install
TODO Have not published package yet use alternative
$ npm install mlx90614-driver
Alternative
$ cd <your-user-node-directory>
$ git clone https://github.com/prosperv/mlx90614-driver.git
$ npm install <path-to-mlx90614-driver>
Note: If you are installing the node module locally, the repo needs to be inside due to how node.js looks for packages.
Raspberry PI
Enable i2c on your Pi if you haven't done already. To avoid having to run the i2c tools as root add the ‘pi’ user to the i2c group:
sudo adduser pi i2c
Usage
var MLX90614 = require('mlx90614-driver');
var sensor = new MLX90614();
function getTemp() {
var temp = sensor.readObject();
console.log(temp);
}
window.setInterval(getTemp, 1000);