• Stars
    star
    153
  • Rank 243,368 (Top 5 %)
  • Language
    C++
  • Created over 15 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

SHT1x Temperature / Humidity Sensor Library for Arduino

Copyright 2009 Jonathan Oxer [email protected] / http://www.practicalarduino.com
Copyright 2008 Maurice Ribble [email protected] / http://www.glacialwanderer.com

Provides a simple interface to the SHT1x series (SHT10, SHT11, SHT15) and SHT7x series (SHT71, SHT75) 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();

More Repositories

1

VirtualUsbKeyboard

Use an Arduino to send HID (Human Interface Device) events to a host computer as if it were a keyboard
126
star
2

WeatherStationReceiver

Use an Arduino and a 433MHz receiver module to intercept and process weather data from a La Crosse home weather station
63
star
3

WaterFlowGauge

Use an Arduino and a hall-effect flow rate sensor to measure water usage.
49
star
4

WaterTankDepthSensor

Measure how much water is in a tank and graph it online or use it to control pumps or an irrigation system
32
star
5

CarEngineDatalogger

Read and store values from an engine management system and GPS using an Arduino to create your own "black box" flight recorder
26
star
6

TimeLapseController

Create amazing time-lapse film sequences using an Arduino and a digital camera
21
star
7

SecuritySensors

Arduino sketch to read the status of security sensors connected via EOL (end-of-line) circuitry
20
star
8

TouchScreen

Arduino library to support 4-wire resistive touchscreens such as the Nintendo DS screen
C++
20
star
9

ShieldUSBDevice

Arduino shield to function as a USB device for keyboard and mouse emulation
16
star
10

OnlineThermometer

Use an Arduino to connect temperature sensors to the Internet and log / graph data over time
16
star
11

SpeechSynthesizerSimple

Simple test program to drive a SpeakJet chip with an Arduino
13
star
12

ProtoShieldMega

General purpose prototyping shield for the Arduino Mega
13
star
13

Ps2Keyboard

Read keypress events from a PS/2 keyboard connected to an Arduino and report them back to the host
13
star
14

ScopeAnalog

Firmware to read analog inputs
10
star
15

ShieldUSBHost

Arduino shield to function as a USB host using a Vinculum VDIP1 module
10
star
16

TouchscreenCoordinates

Minimal example code to read X and Y values from a Nintendo DS touch screen using an Arduino
Java
10
star
17

Shield433Rx

General purpose 433MHz receiver shield for the Arduino
9
star
18

ScopeDigital

Digital-read firmware
9
star
19

ScopeDigitalOptimized

Digital-read firmware with optimized communications
9
star
20

PanTiltControl

Control a Seeed Studio pan/tilt controller using a Sparkfun analog joystick
9
star
21

ProtoShieldPro

General purpose prototyping shield for the Arduino Pro
9
star
22

TimeLapseControllerAiko

Create amazing time-lapse film sequences using an Arduino and a digital camera (Aiko-based variant)
8
star
23

NetworkedGPIO

Network-connected general-purpose IO interface
8
star
24

TouchControlPanel

Use a Nintendo DS touch screen connected to an Arduino as a control surface for a home automation system
8
star
25

TouchControlPanelDisplay

Processing application to process and display X/Y coordinates from an Arduino connected to a touch screen
7
star
26

ApplianceRemoteControl

Control a domestic appliance using an Arduino and a modified appliance remote
7
star
27

PracticalArduinoEagleLib

A library of Eagle parts used to design PCBs for some of the Practical Arduino projects
7
star
28

OnlineThermometerWebduino

Updated version of the OnlineThermometer project compatible with the official Ethernet shield and the Freetronics Ethernet shield
Java
7
star
29

TouchCube

Visualisation using Processing to control a 3D cube using a Nintendo DS touch screen connected via an Arduino running NintendoDSTouchScreen
6
star
30

ApplianceRemoteControlCompact

Alternative version of ApplianceRemoteControl that uses more advanced programming techniques
5
star