Adafruit SHT31-D Temperature & Humidity Sensor Breakout

Similar documents
Adafruit MCP9808 Precision I2C Temperature Sensor Guide

Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout

Adafruit LSM9DS0 Accelerometer + Gyro + Magnetometer 9-DOF Breakouts

Adafruit Si4713 FM Radio Transmitter with RDS/RDBS Support

Adafruit ATWINC1500 WiFi Breakout

2.2" TFT Display. Created by Ladyada. Last updated on :15:09 PM EDT

2.3" Monochrome 128x32 OLED Display Module

1.5" & 2.1" Monochrome 128x64 OLED Display Module

TSL2561 Luminosity Sensor

1.8" TFT Display Breakout and Shield

DS1307 Real Time Clock Breakout Board Kit

Tiny Arduino Music Visualizer

Arduino ADK Back. For information on using the board with the Android OS, see Google's ADK documentation.

A REST API for Arduino & the CC3000 WiFi Chip

Arduino Due Back. Warning: Unlike other Arduino boards, the Arduino Due board runs at 3.3V. The maximum. Overview

ARDUINO SEVERINO SERIAL SINGLE SIDED VERSION 3 S3v3 (REVISION 2) USER MANUAL

Adafruit Music Maker Shield

MCP4725 Digital to Analog Converter Hookup Guide

Adafruit Proto Shield for Arduino

Hardware Connections between Arduino and IMU Nori Wilkins Apr. 5, 2013

Designing VM2 Application Boards

PN532 NFC RFID Module User Guide

Arduino Lesson 14. Servo Motors

Pololu DRV8835 Dual Motor Driver Shield for Arduino

UniPi technical documentation REV 1.1

Lab 3: PCB design with EAGLE

Green House Monitoring and Controlling Using Android Mobile Application

Arduino Lesson 0. Getting Started

Arduino Lesson 13. DC Motors. Created by Simon Monk

Adafruit LED Backpacks

KTA-223 Arduino Compatible Relay Controller

Adding a Real Time Clock to Raspberry Pi

Web Site: Forums: forums.parallax.com Sales: Technical:

Arduino Lesson 1. Blink

DATASHEET. ADAM Arduino Display Adaptor Module. Arduino Compatible Shield P/N: 4Display-Shield-FT843 For the 4D Systems 4DLCD-FT843 Display

Matrix and 7-Segment LED Backpack with the Raspberry Pi

PCAN-MicroMod Universal I/O Module with CAN Interface. User Manual. Document version ( )

TEECES DOME LIGHTING SYSTEMS

Wireless Temperature

MAX6683 Evaluation System/Evaluation Kit

7 OUT1 8 OUT2 9 OUT3 10 OUT4 11 OUT5 12 OUT6 13 OUT7 14 OUT8 15 OUT9 16 OUT10 17 OUT11 18 OUT12 19 OUT13 20 OUT14 21 OUT15 22 OUT16 OUT17 23 OUT18

AR1100 Resistive Touch Screen Controller Guide

USBSPYDER08 Discovery Kit for Freescale MC9RS08KA, MC9S08QD and MC9S08QG Microcontrollers User s Manual

RGB LED Strips. Created by lady ada. Last updated on :00:18 PM EST

Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II

Future Technology Devices International Ltd

INTRODUCTION TO SERIAL ARM

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

PHYS 2P32 Project: MIDI for Arduino/ 8 Note Keyboard

Real Time Clock USB Evaluation Board V3.0

CAN-Bus Shield Hookup Guide

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Figure 1. 8-Bit USB Debug Adapter

Thermistor. Created by Ladyada. Last updated on :30:46 PM EDT

PIR Motion Sensor. Created by Ladyada. Last updated on :15:25 PM EST

All About Arduino Libraries

EXPRESS PCB TUTORIAL Author: Lee Morey Revised: JE Feb 2015

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

USB / Data-Acquisition Module NOW LEAD-FREE

The self-starting solar-powered Stirling engine

- 35mA Standby, mA Speaking pre-defined phrases with up to 1925 total characters.

UPS PIco. to be used with. Raspberry Pi B+, A+, B, and A. HAT Compliant. Raspberry Pi is a trademark of the Raspberry Pi Foundation

Monitor Your Home With the Raspberry Pi B+

DHT11 Humidity & Temperature Sensor D-Robotics UK (

Web Site: Forums: forums.parallax.com Sales: Technical:

DSO138 oscilloscope program upgrade method

Work with Arduino Hardware

PhidgetInterfaceKit 8/8/8

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

Model 201 Wiegand Touchpad Reader Installation Guide

LCD I 2 C/Serial RX Backpack. Data Sheet. LCD to I2C/Serial RX Backpack I2C or Serial RX communication with Standard 16 Pin LCD modules

DS Wire Digital Thermometer and Thermostat

MAX5417L Evaluation Kit/Evaluation System

SMS Alarm Messenger. Setup Software Guide. SMSPro_Setup. Revision [Version 2.2]

DKWF121 WF121-A B/G/N MODULE EVALUATION BOARD

AXE114S BINARY CLOCK. revolution Revolution Education Ltd. Web: Version /09/08 AXE114.PMD.

DIY Pocket LED Gamer - Tiny Tetris!

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable

CryptoAuth Xplained Pro

Arduino Lesson 4. Eight LEDs and a Shift Register

NB3H5150 I2C Programming Guide. I2C/SMBus Custom Configuration Application Note

2.8" TFT Touchscreen. Created by lady ada. Last updated on :00:25 PM EST

Arduino Lab 1 - The Voltage Divider

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

ICS379. Quad PLL with VCXO Quick Turn Clock. Description. Features. Block Diagram

Introducing AVR Dragon

MARTECH SPI Tools. MARTECH SPI Tools User Manual v1.0. User Manual

DS1307ZN. 64 x 8 Serial Real-Time Clock

DS1621 Digital Thermometer and Thermostat

DS1621 Digital Thermometer and Thermostat

AVR Butterfly Training. Atmel Norway, AVR Applications Group

Testing Data Radio Modem with Serial Port Tool V1.20

Board also Supports MicroBridge

ICS SPREAD SPECTRUM CLOCK SYNTHESIZER. Description. Features. Block Diagram DATASHEET

RC2200DK Demonstration Kit User Manual

SainSmart UNO R3 Starter Kit

RS232/DB9 An RS232 to TTL Level Converter

PolyBot Board. User's Guide V1.11 9/20/08

EARTH PEOPLE TECHNOLOGY SERIAL GRAPH TOOL FOR THE ARDUINO UNO USER MANUAL

Transcription:

Adafruit SHT31-D Temperature & Humidity Sensor Breakout Created by lady ada Last updated on 2016-06-23 10:13:40 PM EDT

Guide Contents Guide Contents Overview Pinouts Power Pins: I2C Logic pins: Other Pins: Assembly Prepare the header strip: Add the breakout board: And Solder! Wiring & Test Download Adafruit_SHT31 Load Demo Library Reference Downloads Datasheets & Files Schematic Fabrication Print 2 3 7 7 7 8 9 9 9 10 11 12 12 13 15 15 15 15 Page 2 of 16

Overview Sensirion Temperature/Humidity sensors are some of the finest & highest-accuracy devices you can get. And, finally we have some that have a true I2C interface for easy reading. The SHT31-D sensor has an excellent ±2% relative humidity and ±0.3 C accuracy for most uses. Page 3 of 16

Unlike earlier SHT sensors, this sensor has a true I2C interface, with two address options. It also is 3V or 5V compliant, so you can power and communicate with it using any microcontroller or microcomputer. Page 4 of 16

Such a lovely chip - so we spun up a breakout board with the SHT31-D and some supporting circuitry such as pullup resistors and capacitors. Each order comes with one fully assembled and tested PCB breakout and a small piece of header. You'll need to solder the header onto the PCB but it's fairly easy and takes only a few minutes even for a beginner. Page 5 of 16

Page 6 of 16

Pinouts The HTU21D-F is a I2C sensor. That means it uses the two I2C data/clock wires available on most microcontrollers, and can share those pins with other sensors as long as they don't have an address collision. For future reference, the default I2C address is 0x44 and you can also select address 0x45 by connecting the ADDR pin to a high voltage signal. Power Pins: Vin - this is the power pin. The chip can use 2.5-5VDC for power. To power the board, give it the same power as the logic level of your microcontroller - e.g. for a 5V micro like Arduino, use 5V. For a 3.3V controller like a Raspbery Pi, connect to 3.3V GND - common ground for power and logic I2C Logic pins: Page 7 of 16

SCL - I2C clock pin, connect to your microcontrollers I2C clock line. This pin has a 10K pullup resistor to Vin SDA - I2C data pin, connect to your microcontrollers I2C data line. This pin has a 10K pullup resistor to Vin Other Pins: ADR - This is the I2C address selection pin. This pin has a 10K pull down resistor to make the default I2C address 0x44. You can tie this pin to Vin to make the address 0x45 RST - Hardware reset pint. Has a 10K pullup on it to make the chip active by default. Connect to ground to do a hardware reset! ALR - Alert/Interrupt output. You can set up the sensor to alert you when an event has occured. Check the datasheet for how you can set up the alerts Page 8 of 16

Assembly Prepare the header strip: Cut the strip to length if necessary. It will be easier to solder if you insert it into a breadboard - long pins down Page 9 of 16

Add the breakout board: Place the breakout board over the pins so that the short pins poke through the breakout pads And Solder! Be sure to solder all pins for reliable electrical contact. (For tips on soldering, be sure to check out our Guide to Excellent Soldering (http://adafru.it/atk)). You're done! Check your solder joints visually and continue onto the next steps Page 10 of 16

Wiring & Test You can easily wire this breakout to any microcontroller, we'll be using an Arduino. For another kind of microcontroller, just make sure it has I2C, then port the code - its pretty simple stuff! Connect Vin to the power supply, 3-5V is fine. Use the same voltage that the microcontroller logic is based off of. For most Arduinos, that is 5V Connect GND to common power/data ground Connect the SCL pin to the I2C clock SCL pin on your Arduino. On an UNO & '328 based Arduino, this is also known as A5, on a Mega it is also known as digital 21 and on a Leonardo/Micro, digital 3 Connect the SDA pin to the I2C data SDA pin on your Arduino. On an UNO & '328 based Arduino, this is also known as A4, on a Mega it is also known as digital 20 and on a Leonardo/Micro, digital 2 The SHT31-D has a default I2C address of 0x44 which you can change to 0x45 by connecting the ADR pin to the VIN pin Page 11 of 16

Download Adafruit_SHT31 To begin reading sensor data, you will need to download Adafruit_SHT31 from our github repository (http://adafru.it/k6d). You can do that by visiting the github repo and manually downloading or, easier, just click this button to download the zip Download Adafruit_SHT31 Library http://adafru.it/k6e Rename the uncompressed folder Adafruit_SHT31 and check that the Adafruit_SHT31 folder contains Adafruit_SHT31.cpp and Adafruit_SHT31.h Place the Adafruit_SHT31 library folder your arduinosketchfolder/libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE. We also have a great tutorial on Arduino library installation at: http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use (http://adafru.it/aym) Load Demo Open up File->Examples->Adafruit_SHT31->SHT31test and upload to your Arduino wired up to the sensor Page 12 of 16

Thats it! Now open up the serial terminal window at 9600 speed to begin the test. You can try breathing on the sensor to increase the humidity. The sensor reacts very fast! Library Reference The library we have is simple and easy to use You can create the Adafruit_SHT31 object with: Adafruit_SHT31 sht31 = Adafruit_SHT31(); There are no pins to set since you must use the I2C bus! Then initialize the sensor with: sht31.begin(0x44) Page 13 of 16

This function returns True if the sensor was found and responded correctly and False if it was not found The 0x44 is the i2c address you have the sensor set up for. By default its 0x44, you can also adjust the sensor for 0x45 and then pass that value in Once initialized, you can query the temperature in C with sht31.readtemperature() Which will return floating point (decimal + fractional) temperature. You can convert to Fahrenheit by multiplying by 1.8 and adding 32 as you have learned in grade school! Reading the humidity is equally simple. Call sht31.readhumidity() to read the humidity also as a floating point value between 0 and 100 (this reads % humidity) We also have a few helper functions. Want to soft-reset the sensor? Use sht31.reset() There's also a heater built into the sensor, used to heat/evaporate any condensation. You can turn it on or off with sht31.heater(true) sht31.heater(false) Page 14 of 16

Downloads Datasheets & Files SHT31-DIS dataheet (http://adafru.it/k6a) EagleCAD PCB Files on GitHub (http://adafru.it/owf) Schematic Click to enlarge Fabrication Print Dimensions in inches Page 15 of 16

Adafruit Industries Last Updated: 2016-06-23 10:13:39 PM EDT Page 16 of 16