Difference between revisions of "Sensor-Tem&Hum-S2"

From Microduino Wiki
Jump to: navigation, search
(Created page with "{{Language|Microduino-Temp&Hum}} {| style="width: 800px;" |- | 400px|thumb|right| Microduino-Temp&Hum Microduino-Temp&Hum is temperature and...")
 
 
(5 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
|-
 
|-
 
|
 
|
[[File: Microduino-Temp&Hum.jpg|400px|thumb|right| Microduino-Temp&Hum]]
+
[[File: Microduino-Temp&Hum.jpg|400px|thumb|right| Sensor-Temp&Hum]]
  
Microduino-Temp&Hum is temperature and humidity detection sensor module.  
+
The product number of Sensor-Temp&HumS2 is: MSDT31. Sensor-Temp&Hum is a temperature and humidity detection sensor module.  
  
It is a temperature and humidity compound sensor containing calibration digital signal output, adopting special technology of collecting the data of temperature and humidity to confirm that the product has high reliability and excellent long-term stability. The sensor includes a capacitive moisture component and a high-precision integrate temperature measuring component, and it is connected to a high performance microprocessor. So this product has excellent quality, super fast response, strong anti-interference ability, extremely high performance-price ration and other advantages.
+
SHT20 sensor contains a capacitive humidity component and a high precision integrated temperature measuring component, and it is connected with a high performance microprocessor.
  
  
 
==Instruction of Sensor Pin==
 
==Instruction of Sensor Pin==
{{Sensor_explain
+
{{ST_Pinout
|nameA=[[Sensor-Tem&Hum-S2]]
+
|st_name=Temperature & Humidity S2 Sensor
|modeA=SDA
+
|pin3=IIC SDA
|modeB=SCL
+
|pin4=IIC SCL
 
}}
 
}}
 +
 
==Features==
 
==Features==
*Adopts AM2321 temperature and humidity sensor
+
*Adopts SHT20 temperature and humidity sensor
 
*With high accuracy and sensitivity
 
*With high accuracy and sensitivity
 
*With low power consumption, long service life and good stability
 
*With low power consumption, long service life and good stability
Line 25: Line 26:
 
==Specification==
 
==Specification==
 
*Electric specification
 
*Electric specification
**Working voltage: 2.6~5V
+
**Working voltage: 3.3~5V
**Input device
+
*Size of the sensor
 +
**Size of the board: 23.5mm*13mm
 +
**1.27mm-spacing 4Pin interface connected to sensorhub
 +
**The CAD drawing of the sensor: '''[[File:Sensor_CAD.zip]]'''
 
*Technical parameters  
 
*Technical parameters  
 
**Resolution: temperature 0.1°C, and relative humidity 0.1%RH
 
**Resolution: temperature 0.1°C, and relative humidity 0.1%RH
*Size
 
**Size of the sensor: 8mm*11mm
 
**Size of the board: 20mm*10mm
 
**1.27mm-spacing 4Pin interface
 
 
*Connection
 
*Connection
**Interface: I2C
+
**This sensor can be connected to I2C pin of core
**Pin description: GND, VCC, signal1 and signal2, the signal is IIC signal, so you need to use IIC interface to receive it. And it can be connected to the IIC pin of Sensor-hub.
 
[[file:mCookie-sensorhub_rule.JPG|thumb|800px|center]]
 
[[File: Microduino-Temp&Hum_I2C.jpg|600px|thumb|center]]
 
  
 
==Document==
 
==Document==
*Schematic diagram: '''[[File: Microduino_Temp&Hum.Zip]]'''
+
*Schematic diagram: '''[[File: Sensor-Temp&HumS2.Zip]]'''
 +
*Main chip: '''[[File: ST20 datasheet.pdf]]'''
  
 
==Development==
 
==Development==
===Preparation===
+
===Program Download===
*Confirm that you have set up the development environment of Microduino, otherwise you can refer to: [[Microduino Getting started]]
+
*Download and unzip the program '''[[File:Sensor-Tem&Hum_S2_Test.zip]]'''
*Core choose
+
 
**1.Adopt [[Microduino-CoreUSB]] or [[mCookie-CoreUSB]] as the core directly.
+
===Programming===
**2.Adopt [[Microduino-Core]] or [[Microduino-Core+]] as the core, and you also need to use [[Microduino-USBTTL]] to download program.
+
{{Upload
===Program===
+
|nameA=[[Microduino-Core]], [[Microduino-USBTTL]]
*Open the program “read_simple” in the library.
+
|nameB=[[Microduino-USBTTL]]
[[file:mCookie-readSimple.JPG|thumb|800px|center]]
+
|boardName=Microduino/mCookie-Core(328p), Atmega328P@16M,5V
*include <AM2321.h>  Call the library function of temperature and humidity AM2312.
+
|fileName=Sensor-Tem&Hum-S2 Test.ino
*AM2321 am2321;    Define the object of am2312.
+
}}
*am2321.read();    Obtain the temperature and humidity data of the sensor.
 
*Serial.print(am2321.temperature/10.0);    Deal with and output temperature value.  
 
*Serial.print(am2321.humidity/10.0);    Deal with and output humidity value.
 
  
 
===Hardware Setup===
 
===Hardware Setup===
*Connect the sensor to the IIC port of sensorhub through patch cord.
+
*Referring to the following diagram, connect the Sensor--Tem&Hum-S2 to pin IIC of '''[[Microduino-Sensorhub]]'''.
[[Microduino-Sensorhub]]
+
<br>
[[file:Microduino-sensorhub_I2C.PNG|thumb|400px|center]]
+
[[file:Microduino-sensorhub_I2C.JPG|thumb|400px|left]]
[[mCookie-Hub]]
+
<br style="clear: left"/>
[[file:mCookie-sensorhub_I2C.PNG|thumb|400px|center]]
+
 
*Connect the core, Sensorhub, and AM2312 together, and then connect them to the computer with USB cable.
+
===Result===
*Choose the right board card and COM port, and download directly after compiling.You can refer to [[AVR Core: Getting Started]]
+
*After download, open the serial monitor.
[[file:upload.JPG|thumb|800px|center]]
+
*The current temperature and humidity value will be printed out in cycle in serial monitor.
*Open Arduino IDE, choose File→Examples→Microduino→Sensor_Tem_Hum_AM2321→read_simple sample program, select the right board card in Tools→Board, and then compile.
 
*Choose the right port in Tools→Serial Port of Arduino IDE, and then download the program.
 
*After download, you can open the serial monitor, and the console will print out the current temperature and humidity value in cycle.  
 
  
 
==Application==
 
==Application==
Line 84: Line 76:
  
 
*Front
 
*Front
[[file: Microduino-Temp&Hum-F.JPG|thumb|600px|center|Microduino-Temp&Hum Front]]
+
[[file: Microduino-Temp&HumS2-F.JPG|thumb|600px|center|Sensor-Temp&HumS2 Front]]
 
*Back
 
*Back
[[file: Microduino-Temp&Hum -b.JPG|thumb|600px|center|Microduino-Temp&Hum Back]]
+
[[file: Microduino-Temp&HumS2 -b.JPG|thumb|600px|center|Sensor-Temp&HumS2 Back]]
 
|}
 
|}

Latest revision as of 06:51, 4 August 2017

Language: English  • 中文
Sensor-Temp&Hum

The product number of Sensor-Temp&HumS2 is: MSDT31. Sensor-Temp&Hum is a temperature and humidity detection sensor module.

SHT20 sensor contains a capacitive humidity component and a high precision integrated temperature measuring component, and it is connected with a high performance microprocessor.


Instruction of Sensor Pin

Sensor backpin.png

Temperature & Humidity S2 Sensor
General Pin Out Sensor / Trinket's Pin Out
PIN1 (GND) GND
PIN2 (VCC) VCC
PIN3 (SIGNAL-A) IIC SDA
PIN4 (SIGNAL-B) IIC SCL
  • General Pin Out is the standard pin out of a Sensor / Trinket connector.
  • Sensor / Trinket's Pin Out is this specific Sensor / Trinket's wiring in relation to the General Pin Out.
  • SIGNAL-A / SIGNAL-B are signals that could be digital input, digital output, analog input or analog output. Or special signals such as serial communication (SoftwareSerial, IIC (I2C), etc) or other special signals.
  • Not Connected refers to the Pin not being used for this particular Sensor / Trinket.
  • Read more about the hub module.

Features

  • Adopts SHT20 temperature and humidity sensor
  • With high accuracy and sensitivity
  • With low power consumption, long service life and good stability
  • With wide working voltage
  • With small size which is easy to install

Specification

  • Electric specification
    • Working voltage: 3.3~5V
  • Size of the sensor
    • Size of the board: 23.5mm*13mm
    • 1.27mm-spacing 4Pin interface connected to sensorhub
    • The CAD drawing of the sensor: File:Sensor CAD.zip
  • Technical parameters
    • Resolution: temperature 0.1°C, and relative humidity 0.1%RH
  • Connection
    • This sensor can be connected to I2C pin of core

Document

Development

Program Download

Programming

  • Follow the Software Getting Started Guide.
  • Select the Board, Processor and Port.
  • Click [File]->[Open], browse to the project program address, and click "Sensor-Tem&Hum-S2 Test.ino" to open the program.
  • After confirming all these items are correct, click "→" to download the program to the development board.

Hardware Setup

  • Referring to the following diagram, connect the Sensor--Tem&Hum-S2 to pin IIC of Microduino-Sensorhub.


Microduino-sensorhub I2C.JPG


Result

  • After download, open the serial monitor.
  • The current temperature and humidity value will be printed out in cycle in serial monitor.

Application

It can be used to detect the temperature and humidity of the environment, and as temperature and humidity switch to control the air conditioner , fan and so on.

Project


Purchase

History

Gallery

  • Front
File:Microduino-Temp&HumS2-F.JPG
Sensor-Temp&HumS2 Front
  • Back
File:Microduino-Temp&HumS2 -b.JPG
Sensor-Temp&HumS2 Back
Retrieved from "https://wiki.microduinoinc.com/index.php?title=Sensor-Tem%26Hum-S2&oldid=21499"