Me Temperature and Humidity Sensor

微信截图_20160129134216

Overview

Me Temperature and Humidity Sensor is a sensor that contains a calibrated digital signal output. It adopts specific digital module collecting technology and temperature-humidity sensing technology to ensure high reliability and excellent long-term stability. This module can measure the temperature from 0℃ to 50℃. Users can use it to build a cost-effective temperature and humidity monitoring system. Its yellow ID means that it has a single-digital port and needs to be connected to the port with yellow ID on Makeblock Orion.

Technical specifications

● Power supply voltage: 5V DC
● Control mode: Single bus digital signal
● Power supply current: max 2.5mA
● Temperature range: 0-50℃ ± 2℃
● Humidity range: 20-90% RH ± 5% RH
● Precision: 1% RH, 1℃
● Module dimension: 51 x 24 x 18mm(L x W x H)

Functional characteristics

● Small size and low power consumption
● Strong anti-interference ability
● Total calibrated digital output
● White area of module is the reference area to contact metal beams
● Support Arduino IDE programming and provide runtime library to simplify programming
● Adopt RJ25 port for easy connection
● Provide pins to support most Arduino Baseboards

Pin definition

The port of Me Temperature and Humidity Sensor has three pins, and their functions are as follows:微信截图_20160129134529

Wiring mode

● Connecting with RJ25
Since the port of Me Temperature and Humidity Sensor has yellow ID, you need to connect the port with yellow ID on Makeblock Orion when using RJ25 port. Taking Makeblock Orion as example, you can connect to ports No. 3, 4, 5, 6, 7, and 8 as follows:

微信截图_20160129134631

● Connecting with Dupont wire
When the Dupont wire is used to connect the module to the Arduino UNO Baseboard, its DATA pin should be connected to digital port as follows:微信截图_20160129134707

Guide to programming

● Arduino programming
If you use Arduino to write a program, the library Makeblock- Library-master should be invoked to control the Me Temperature and Humidity Sensor. This is a routine to read the current temperature and humidity through Arduino programming.微信截图_20160129134748微信截图_20160129134813The function of the code segment is: to read the result measured by Me Temperature and Humidity Sensor, and output the result to the serial monitor in Arduino IDE. Upload the code segment to the Makeblock Orion and click the Arduino serial monitor, and then you will see the running result as follows:微信截图_20160129134851

Principle analysis

Me Temperature and Humidity Sensor is composed of sensor DHT11, which comprises a resistive humidity-sensing component and an NTC temperature-measuring component. Calibration coefficients are stored in OTP memory in the form of program, and invoked by the sensor during processing the detection signal. Adopting single bus serial port, the sensor can implement two-way communication with the microprocessor by a bus only, and the time period of one communication is about 4ms. The system integration becomes quick and easy.

Schematic

Huminity and temp

11 thoughts on “Me Temperature and Humidity Sensor”

  1. Hi,
    I bought this sensor for my mBot robot.
    But when I program MeTempadHumid it’s not running (not in MeMCore.h) if I put MeOrion.h , I have a conflit with MeMCore.h.

    Where can I have an update of the MeMCore.h file ?

  2. I download the library V3.22
    I don’t find the MeTempandHumid.h.

    What is the next step ?

    1. Hi Laurent,
      The head file is MeHumitureSensor.h instead. You could find it in library by this file path: makeblock->src. Thank you.

      1. Hi,

        Ok so what you explaine is to use “MeHumitureSensor” and not “TempandHumid” as explained upper in the program example “Guide to programming” . Isn’t it ?

        1. Hi,
          I test with the MeHumiture. There is no error but it’s not running. See below the config and the program

          The hardware configuration is : mBot with mCore card.
          Port 1 MeTempandHumid
          Port 2 MeLineFollower
          Port 3 MeUltrasonicSensor
          Port 4 Me TFT LCD Screen

          See below the program :

          /**
          * \
          *
          *
          */
          #include
          #include
          #include
          #include
          MeHumiture Humidity(1);
          MeUltrasonicSensor ultraSensor(3);
          MeRGBLed Led(7, 7==7?2:4);
          MePort lightsensor_6(6);
          MeBuzzer buzzer;
          MeSerial ScreenTFT(4);
          MeLineFollower LineFollower(2);

          void setup() // programme réalisé à la mise sous tension de la carte mCore
          {
          pinMode(A7,INPUT);
          ScreenTFT.begin(9600);
          Led.setColor(0,0,0,60);
          Led.show();
          buzzer.tone(123, 1000);
          delay(1000);
          Led.setColor(0,0,0,0);
          Led.show();
          buzzer.noTone();
          ScreenTFT.print(“CLS(0);”);
          delay(200);
          ScreenTFT.print(“DR0;”);
          }
          void loop()
          {
          ScreenTFT.print(“DS24(10,10,’ mBot Robot’,2);”);
          ScreenTFT.print(“DS24(20,50,’Distance : “);
          ScreenTFT.print(ultraSensor.distanceCm());
          ScreenTFT.print(” Cm’,1);”);
          ScreenTFT.print(“DS24(20,90,’Temperature : “);
          ScreenTFT.print(Humidity.getTemperature());
          ScreenTFT.print(” C’,1);”);
          ScreenTFT.print(“DS24(20,130,’Humidity : “);
          ScreenTFT.print(Humidity.getHumidity());
          ScreenTFT.print(” %’,1);”);
          ScreenTFT.print(“DS24(20,170,’Light : “);
          ScreenTFT.print(lightsensor_6.aRead2());
          ScreenTFT.println(“‘,1);”);
          }

          1. Hi Laurent,
            You should add the function “MeHumiture humiture(PORT_1);” in your code content. Parameter”PORT_1″ means that you connect the sensor to port 1 of the board.The position of function in context should be like below:

            #include “MeOrion.h”
            MeHumiture humiture(PORT_1);

            void setup()
            {
            }

            We recommend that you could refer to the example program we built when you are coding. It could make you master the usage of library and module quickly. Hope this could help you. Thank you.

  3. I made the change without success …the temperature and humidity stay at 0
    see below the code :

    #include
    #include
    #include
    #include
    MeHumiture Humidity(PORT_1);
    MeUltrasonicSensor ultraSensor(PORT_3);
    MePort lightsensor_6(PORT_6);
    MeSerial ScreenTFT(PORT_4);

    void setup()
    {
    ScreenTFT.begin(9600);
    delay(15000);
    ScreenTFT.print(“CLS(0);”);
    delay(200);
    ScreenTFT.print(“DR0;”);
    }
    void loop(){
    ScreenTFT.print(“DS24(10,10,’ mBot Robot ‘,2);”);
    ScreenTFT.print(“DS24(20,50,’Distance : “);
    ScreenTFT.print(ultraSensor.distanceCm());
    ScreenTFT.println(” cm’,2);”);
    ScreenTFT.print(“DS24(20,90,’Temperature : “);
    ScreenTFT.print(Humidity.getTemperature());
    ScreenTFT.print(” C’,1);”);
    ScreenTFT.print(“DS24(20,130,’Humidite : “);
    ScreenTFT.print(Humidity.getHumidity());
    ScreenTFT.print(” %’,1);”);
    ScreenTFT.print(“DS24(20,170,’Lumiere : “);
    ScreenTFT.print(lightsensor_6.aRead2());
    ScreenTFT.println(” ‘,1);”);
    }

  4. I find the error… I was not updating the values .update();

    how it’s Ok

    Thanks for the support

  5. HELLO
    so.. it is not possible to use this sensor with the Blocks in arduino mode ?

    louis

    1. Hi Louis Weiss

      The Me Temperature and Humidity Sensor can work with the Arduino uno, while you need program for it through Arduino software yourself.
      For Graphical program block on mBlock, you need use the Me uno shield with the Arduino uno, and then you can do the graphical program for the sensor.

Comments are closed.