Skip to content

JS library for the si7005 temperature and humidity sensor.

Notifications You must be signed in to change notification settings

LinusU/climate-si7005

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

climate-s17005

A port of @jjalling's Si7005-B-GM Arduino library to JS.

Uses the Si7005 chip as the Temp/Humid sensor.

##Example

var climate = require('climate-s17005').connect(hardwareapi);
climate.on('connected', function () {
  climate.readTemperature('f', function (err, temp) {
    console.log('Degrees:', temp.toFixed(4) + 'F');
  });
});

##Method calls

###.connect(interface[, csn])

Takes in the port bank that the module is connected to. Returns the Temp/Humid object.

###.readTemperature([format,] callback(err, temp))

Returns the temperature in degrees Celcius or Fahrenheit.

###.readHumidity(callback(err, humidity))

Returns the humidity level.

###.setHeater(bool[, callback(err)])

Sets the HEAT config register. According to section 5.1.4 of the datasheet

Turning on the heater will reduce the tendency of the humidity sensor to accumulate an offset due to “memory” of sustained high humidity conditions. When the heater is enabled, the reading of the on-chip temperature sensor will be affected (increased).

###.setFastMeasure(bool[, callback(err)])

Sets the FAST config register. According to section 5.1.3 of the datasheet

Fast mode reduces the total power consumed during a conversion or the average power consumed by the Si7005 when making periodic conversions. It also reduces the resolution of the measurements.

| Normal | Fast --- | --- | --- converstion time | 35ms | 18ms temp resolution | 14 bit | 13 bit humidity resolution | 12 bit | 11 bit

##References

About

JS library for the si7005 temperature and humidity sensor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published