background image

RedBoard.

2-Wire Interface

Please note that the SHT15 has a 2-wire interface that is similar to I C but 
is 

NOT I C

. You may use the SDA and SCL lines to communicate with this 

sensor so long as they are connected to A4 and A5 on your Arduino or 
Arduino compatible board. You may use any other I/O pins for the Data and 
SCK lines as well.

Heads up!

The datasheet states: “The sensor 

cannot

be addressed 

by I2C protocol; however, the sensor can be connected to an I C bus 
without interference with other devices connected to the bus. The 
controller must switch between the protocols.” We have experimented 
with this with mixed results. Make sure you test extensively if adding 
this to an I C bus containing other sensors. Should bus contention be 
a problem, simply use two other I/O pins to communicate with the 
SHT15. 

Multiple Sensors

Unfortunately, the SHT15 has its address hard-coded, making it non-
addressable. As a result, you may not have more than one SHT15 hooked 
up to any two pins at a given time. The 2-wire protocol used for this sensor 
does not allow for multiple of the same sensor to be on the bus, but it does 
allow multiple I C devices to share the same bus as the SHT15, as 
mentioned above. In order to use more than one SHT15, you will need to 
use a dedicated pin for each sensor’s Data line. You may share the Clock 
(SCK) line between multiple sensors. For example, you could have one 
sensor’s Data line connected to pin 8 and another connected to pin 7, while 
both are sharing pin 9 as the SCK line. Declaring this using the library 
mentioned in the next section would look like this:

//Create two instances of the SHT1X sensor
SHT1x sht15(8, 9);//Data, SCK
SHT1x sht15_2(7, 9);//Data, SCK

Pull-up Resistor

As suggested in the datasheet, a 10K

Ω

 pull-up resistor was added to the 

Data line. Should you find yourself in a situation where you want this sensor 
and another I C sensor with pull-up resistors to share the I C lines, you may 
cut the trace in between the solder jumper labeled 

PU

. If you ever need that 

pull-up again, simply place a blob of solder between the two pads.

2

2

2

2

2

2

2

Page 3 of 7

Summary of Contents for SHT15

Page 1: ...ated sensors for relative humidity temperature Digital 2 wire interface Not I C but similar Measurement range 0 100 RH Absolute RH accuracy 2 RH 10 90 RH Repeatability RH 0 1 RH Temp accuracy 0 3 C 25...

Page 2: ...ns that need to be hooked up in order to start using this sensor in a project One for VCC one for GND and two data lines VCC 3 3V or 5V GND GND Data Any I O Pin SCK Any I O Pin You can connect this se...

Page 3: ...SHT15 hooked up to any two pins at a given time The 2 wire protocol used for this sensor does not allow for multiple of the same sensor to be on the bus but it does allow multiple I C devices to shar...

Page 4: ...SparkFun_ISL29125_Breakout_Ardu This example shows how to get the temperature in F or C and Developed Tested with SparkFun RedBoard Arduino IDE 1 6 5 Connections GND A2 Vcc A3 DATA A4 SCK A5 Requires...

Page 5: ...s directly from the button below SHT15 ARDUINO LIBRARY Need help using the Library Manager or want to install the library the old fashioned way Visit our Arduino Library tutorial for more information...

Page 6: ...com sparkfun SHT15_Breakout This code is beerware Distributed as is no warranty is given include SHT1X h variables for storing values float tempC 0 float tempF 0 float humidity 0 Create an instance o...

Page 7: ...dea of how to add humidity and temperature sensing into your next project Need some inspiration Check out these other tutorials Make an automated terrarium that manages heat and humidity levels Build...

Reviews: