Reply to topic  [ 1 post ] 
WeMos SHT30 Temp & Humidity Sensor Shield (HCWEMO0011) 
Author Message
Site Admin

Joined: Sun Aug 05, 2012 4:02 pm
Posts: 650
Post WeMos SHT30 Temp & Humidity Sensor Shield (HCWEMO0011)
Image






The WeMos SHT30 shield is a digital temperature and humidity sensor based upon the Sensirion SHT30 Sensor IC. This shield adds the ability to sense temperature to an accuracy of +/- 0.3oC and relative humidity to +/-3%. It is compatible with the WeMos mini, mini Pro (see item HWEMO0002), and mini lite (see item HCWEMO012) ESP8266/8285 based development boards. Although it is intended to be used with these WeMos boards is can also be used as a standalone module for other development boards.

To make programming this shield from your D1 mini / Arduino board as easy as possible we have created our own HCSHT3x Arduino compatible library. See below for where to download this library.

ImageImage




Image



Image

Product code: HCWEMO011
Interface: I2C Interface
Two user selectable addresses 0x44 & 0x45 (0x45 default)
Temperature accuracy: ±0.3°C
Humidity accuracy: ±3%RH



Image

Code:
/* FILE:    HCSHT3x_Library_Example
   DATE:    24/05/17
   VERSION: 0.1
   AUTHOR:  Andrew Davies
   
24/05/17 version 0.1: Original version

This example sketch uses the HCSHT3x library to read the current temperature and humidity
from a SHT3x device. The sketch repeatedly read the sensor once a second and output the results
to the serial UART.

Hobby Components (HobbyComponents.com) products currently supported by this library:

WeMos SHT30 I2C Digital Temperature Humidity Sensor Shield (HCWEMO0011).

More information about the library can be found in the software section of our support
forum here:

http://forum.hobbycomponents.com/software


You may copy, alter and reuse this code in any way you like, but please leave
reference to HobbyComponents.com in your comments if you redistribute this code.
This software may not be used directly for the purpose of selling products that
directly compete with Hobby Components Ltd's own range of products.
THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES, WHETHER
EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR LACK OF NEGLIGENCE.
HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR ANY DAMAGES,
INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY
REASON WHATSOEVER.
*/



#include <HCSHT3x.h>      //Include the HCSHT3x library.

#define I2CADD 0x45       //I2C address of the SHT3x (0x44 or 0x45).

HCSHT3x HCSHT3x(I2CADD);  //Create an instance of the library.


void setup()
{
  Serial.begin(9600);     //Initiliase the Arduino serial library.
 
  HCSHT3x.init();         //Initiliase the library.
}


void loop()
{
  //Trigger a temperature & humidity measurement and read back the results.
  HCSHT3x.Read();       

  //If there are no errors out put the results to the serial UART.
  if(HCSHT3x.CheckCRC())
  {
    Serial.print("Temp (oC): ");
    Serial.print(HCSHT3x.Temp_oC());
    Serial.print("\tTemp (oF): ");
    Serial.print(HCSHT3x.Temp_oF());
    Serial.print("\tHumidity (%RH): ");
    Serial.println(HCSHT3x.Hum());
  }else
  {
    Serial.println("CRC ERROR!");
  }

  //Wait a second before taking another measurement.
  delay(1000);
}




Image

Attachment:
sch_sht30_v1.0.0_HCWEMO0011.pdf


Attachment:
Sensirion_Humidity_Sensors_SHT3x_Datasheet.pdf




HCSHT3x Arduino library can be downloaded from the software section of our support forum here: http://forum.hobbycomponents.com/viewtopic.php?f=58&t=2192




Disclaimer: Libraries, example code, and diagrams are provided as an additional free service by Hobby Components and are not sold as part of this product. We do not provide any guarantees or warranties as to their accuracy or fitness for purpose.

Descriptions and diagrams on this page are copyright Hobby Components Ltd and may not be reproduced without permission.


You do not have the required permissions to view the files attached to this post.


Thu Jun 08, 2017 9:57 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Thank you to phpBB.com & phpBB.ro.
Design created by Florea Cosmin Ionut.
© 2011 All contents of this site are © Hobby Components LTD