github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

practicalarduino / SHT1x

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 7
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Arduino library to support SHT1x-series (SHT10, SHT11, SHT15) temperature / humidity sensors from Sensirion — Read more

  cancel

http://www.practicalarduino.com/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Changed comment about negative values for RH 
jonoxer (author)
Tue Sep 22 22:43:59 -0700 2009
commit  d22f0e1da1014066db32d6cb299d6b7ba0988c50
tree    f0b84ab4b272842df652f69097de079b86dc1267
parent  4c8cff197d40ecf36f90c8b2b7acb2b623859952
SHT1x /
name age
history
message
file DISTRIBUTION Wed Aug 05 03:48:41 -0700 2009 Added Maurice Ribble to copyright list in DISTR... [jonoxer]
file README.markdown Tue Sep 22 22:43:59 -0700 2009 Changed comment about negative values for RH [jonoxer]
file SHT1x.cpp Tue Jun 16 02:58:30 -0700 2009 Another s/C/F in a comment [jonoxer]
file SHT1x.h Mon Jun 15 23:17:05 -0700 2009 Initial version of library [jonoxer]
directory examples/ Mon Jun 15 23:17:05 -0700 2009 Initial version of library [jonoxer]
file keywords.txt Mon Jul 06 04:22:05 -0700 2009 Added syntax highlighting hint file [jonoxer]
README.markdown

SHT1x Temperature / Humidity Sensor Library for Arduino

Copyright 2009 Jonathan Oxer jon@oxer.com.au / http://www.practicalarduino.com
Copyright 2008 Maurice Ribble ribblem@yahoo.com / http://www.glacialwanderer.com

Provides a simple interface to the SHT1x series (SHT10, SHT11, SHT15) temperature / humidity sensors from Sensirion, http://www.sensirion.com. These sensors use a "2-wire" communications buss that is similar to I2C and can co-exist on the same physical wire as I2C devices.

Installation

Download the directory "SHT1x" and move it into the "libraries" directory inside your sketchbook directory, then restart the Arduino IDE. You will then see it listed under File->Examples->SHT1x.

Usage

The library is instantiated as an object with methods provided to read relative humidity and temperature. Include it in your sketch and then create an object, specifying the pins to use for communication with the sensor:

#include <SHT1x.h>
#define dataPin 10
#define clockPin 11
SHT1x sht1x(dataPin, clockPin);

You can then call methods on that object within your program. In this example we created an object called "sht1x", but it could have been called whatever you like. A complete example program is included with the library and can be accessed from the File->Examples->SHT1x menu.

readTemperatureC()

Returns a float within the valid range of the sensor of -40 to +123.8C. A value of -40 is returned in the event of a communication error with the sensor.

Example:

float tempC = sht1x.readTemperatureC();

readTemperatureF()

Returns a float within the valid range of the sensor of -40 to +254.9F. A value of -40 is returned in the event of a communication error with the sensor.

Example:

float tempF = sht1x.readTemperatureF();

readHumidity()

Returns a float within the valid range of the sensor of 0 to 100%. A negative value is returned in the event of a communication error with the sensor.

Example:

float humidity = sht1x.readHumidity();
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server