Sensor-Tem&Hum-S2

From Microduino Wiki
Revision as of 03:38, 2 September 2016 by Fengfeng (talk) (Created page with "{{Language|Microduino-Temp&Hum}} {| style="width: 800px;" |- | 400px|thumb|right| Microduino-Temp&Hum Microduino-Temp&Hum is temperature and...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language: English  • 中文
Microduino-Temp&Hum

Microduino-Temp&Hum is 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.


Instruction of Sensor Pin

Sensor backpin.png
  • Pins of the sensor:
    • PIN1: GND
    • PIN2: VCC
    • General signal pins:
      • PIN3(IO1): digital/analog signal
      • PIN4(IO2): NC(null)
    • Special signal pins:
      • If it is IIC: IO1/IO2 are respectively SDA/SCL.
      • If it is soft serial port: IO1/IO2 are respectively tx/rx.
  • Special to Sensor-Tem&Hum-S2 sensor pins
    • PIN1: GND
    • PIN2: VCC
    • PIN3(IO1): SDA
    • PIN4(IO2): SCL


Microduino sensor can communicate with core module through the connection with Microduino-Module Sensor Hub.

Features

  • Adopts AM2321 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: 2.6~5V
    • Input device
  • Technical parameters
    • 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
    • Interface: I2C
    • 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.
MCookie-sensorhub rule.JPG

Document

Development

Preparation

Program

  • Open the program “read_simple” in the library.
MCookie-readSimple.JPG
  • include <AM2321.h> Call the library function of temperature and humidity AM2312.
  • 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

  • Connect the sensor to the IIC port of sensorhub through patch cord.

Microduino-Sensorhub

Microduino-sensorhub I2C.PNG

mCookie-Hub

MCookie-sensorhub I2C.PNG
  • Connect the core, Sensorhub, and AM2312 together, and then connect them to the computer with USB cable.
  • Choose the right board card and COM port, and download directly after compiling.You can refer to AVR Core: Getting Started
Upload.JPG
  • 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

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
Microduino-Temp&Hum Front
  • Back
Microduino-Temp&Hum Back