Phone: +86-20-8520 1025       Email: SALES@FRIENDLYARM.COM / techsupport@friendlyarm.com Forum    Wiki

  • Shopping Cart
  • Login
  • Register
  • CPU Module
  • Mini Board
    • Cortex-A9(Quad-Core)
    • Cortex-A8
    • ARM11
    • ARM9
  • NanoPC & NanoPi
  • Hats & Docks
  • Enclosure & Holder
    • 3D Printed
    • Acrylic
    • Metal
    • Plastic
  • Matrix Accessories
    • Actuator
    • Camera
    • Communication
    • Display
    • GPS
    • Heat Sink
    • Power
    • Sensor
    • Serial Comm Board
    • SSD/MicroSD
    • Others
  • BakeBit Sensors/Modules
  • LCD Module
  • Value Pack & Kit
FriendlyElec

    Login | Register

    • Home
    • Downloads
    • Forum
    • Wiki
    • Information
      • About Us
      • Privacy Policy
      • Terms & Conditions
    • Distributor
    • FreeBoard
    • Sensor
    • Temperature and Humidity Sensor THM-01
    Temperature and Humidity Sensor THM-01 Temperature and Humidity Sensor THM-01 Temperature and Humidity Sensor THM-01 Temperature and Humidity Sensor THM-01
    Temperature and Humidity Sensor THM-01

    Temperature and Humidity Sensor THM-01

    0 reviews / Write a review
    • $99,999.00
    (USD)
    Buyer responsible for payment of duty.
    • Availability: Out Of Stock

    • Brand: FriendlyElec
    • Product Code: THM-01


    • Description
    • Reviews (0)

    1 Introduction

    This module utilizes the DHT11 temperature and humidity sensor. The DHT11 sensor's relative humidity range is 20%-80% ±5% and its temperature range is 0℃-50℃ ±2℃. DHT11 uses a single bus communication which needs only one data line. Its DATA line is used for communication and synchronization between the microprocessor and DHT11. Its data format consists of the 8bit humidity integer data and 8bit the Humidity decimal data, and 8 bit temperature integer data and 8bit fractional temperature data and 8 bit parity bit. Its application of a dedicated digital modules collection technology and the temperature and humidity sensing technology, to ensure that the product has high reliability, excellent long-term stability, low cost and long distance (up to 20 meters) signal transmission. We simplified the DHT11's 4-pin to 3-pin.

    2 Features

    • Humidity range: 20-80%RH, temperature range: 0~50℃
    • Humidity accuracy:±5%RH, temperature accuracy: ±2℃
    • Single bus (I/O) communication
    • 2.54 mm spacing pin

    3 How To

    • Connect to Tiny4412 SDK (1506)

      GND: Ground

      VCC: 5V

      S: GPIO PIN1, this pin has to be connected to an interrupt pin.

    Code Sample in C Under Linux

    #include <stdio.h>#include <stdlib.h>#include "libfahw.h" void parseCmd(int argc, char **argv, int *pin)
    {
    int num = atoi(argv[1]);
    switch(num) {
    case 1:
    *pin = TINY4412_GPIO_PIN1;
    break;
    case 2:
    *pin = TINY4412_GPIO_PIN2;
    break;
    case 3:
    *pin = TINY4412_GPIO_PIN3;
    break;
    case 4:
    *pin = TINY4412_GPIO_PIN4;
    break;
    case 9:
    *pin = TINY4412_GPIO_PIN9;
    break;
    case 10:
    *pin = TINY4412_GPIO_PIN10;
    break;
    default:
    printf("Unsupported pin TINY4412_GPIO_PIN%d ", num);
    num = 1;
    *pin = TINY4412_GPIO_PIN1;
    }
    printf("Using pin TINY4412_GPIO_PIN%d ", num);
    }
     int main(int argc, char ** argv)
    {
    int ret = -1;
    int dhtTemp = 0;
    int dhtHdty = 0;
    int devFD = -1;
    int pin = TINY4412_GPIO_PIN1;
      if (argc == 2) {
    parseCmd(argc, argv, &pin);
    } else {
    printf("Using default pin TINY4412_GPIO_PIN1 ");
    }
    if ((devFD = dht11Init(pin)) == -1) {
    printf("Fail to init dht11 ");
    return -1;
    }
      if ((ret = dht11Read(DHT_HUMIDITY, &dhtHdty)) != -1) {
    printf("Get humidity : %d ", dhtHdty);
    } else {
    printf("Faided to get humidity ");
    }
      if ((ret = dht11Read(DHT_TEMP, &dhtTemp)) != -1) {
    printf("Get temperature : %d ", dhtTemp);
    } else {
    printf("Faided to get temperature ");
    }
      dht11DeInit(devFD);
    return ret;
    }

    Compile and Run

    git clone http://github.com/friendlyarm/fa-hardware.git
    cd fa-hardware
    cd demo
    cd matrix-temperature_and_humidity_sensor
    make

    Copy your compiled bin to your board and you are ready to go.

    Resources


    There are no reviews for this product.

    Write a review

    Write a review

    Note: HTML is not translated!
        Bad           Good
    Recently viewed
    Temperature and Humidity Sensor THM-01

    Temperature and Humidity Sensor THM-01

    1 Introduction This module utilizes the DHT11 temperature and humidity sensor. The DHT11 sensor's.....

    $99,999.00


    Power & Source of Big Ideas

    Follow us
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    Newsletter

    New in alerts - Sign up to our Newsletter.

    Contact Us
    • Room 118,Building A, Shilian Technology Park, No.33 Science Road,Science City,Luogang District, Guangzhou,GuangDong China
    • +86-20-8520 1025
    • sales@friendlyarm.com
    • techsupport@friendlyarm.com
    Information
    • About Us
    • Downloads
    • Privacy Policy
    • Terms&Conditions
    • Distributor
    • FreeBoard
    Customer Service
    • Contact Us
    • Returns
    • Site Map
    My Account
    • My Account
    • Order History
    • Wish List
    • Newsletter


    Copyright © 2008-2025 friendlyelec.com All rights reserved.
    Top
    Categories
    • CPU Module (14)
    • Mini Board (3)
    • NanoPC & NanoPi (34)
    • Hats & Docks (12)
    • Enclosure & Holder (16)
    • BakeBit Sensors/Modules (2)
    • Matrix Accessories (73)
    • LCD Module (16)
    • Value Pack & Kit (11)