EB - Humidity Temperature Sensor

$3.80

  • Model: EB0200010M
  • Shipping Weight: 4gram
  • 9992 Units in Stock

Add to Cart:



Item specifics

Brand Name:Maker Studio

Product Description

 

Electronic Brick - Temperature and Humidity Sensor can be used to detect the Temperature and Humidity of environment at the same time. 

Features

  • Working Voltage: 5V
  • Detect Range:20~90%RH,0-50°C
  • Accuracy: ±5%RH;±2°C
  • Resolution:1%RH;1°C
  • Sampling rate: no more than 1Hz
  • Low power consumption
  • With Makerduino Demo Code
  • Compact size
  • Weight:5g

 

Applications

  • Real-time detect
  • Household appliances  

 

Details

aeProduct.getSubject()

Use with Makerduino

The following steps show how to use EB - Temperature and Humidity Sensor with Makerduino.

Materials

  • Makerduino
  • Electronic Brick Shield
  • EB - Temperature and Humidity Sensor
  • A/B type USB cable
  • Female DuPont wires

Steps

1. Connect Electronic Brick Shield onto Makerduino to bring out all the Makerduino Pins.

aeProduct.getSubject()

 

2. Connect EB - Temperature and Humidity Sensor to Makerduino as following.

aeProduct.getSubject()

3. Connect the Makerduino to Computer by the USB cable.

 

4. Download the Makerduino demo code EB - Temperature and Humidity Sensor.zip. Unzip the code directly into the libraries folder.

 

5. Open Makerduino IDE, choose the right Board and Serial Port. Open the sketch EB_HumandTempSensor.ino and upload it to the Makerduino.

 

The following is the demo code for EB - Temperature and Humidity Sensor. (Note: It could be a little different from the code file downloaded. Please follow the downloaded file.)

 

/*

  EB - HumAndTempSensor demo code

 

  Get the Temperature and Humidity value from DHT11,

and display it on the Serial Monitor.

 

*/

#include <Makerduino.h>

#include <Wire.h>

#include <DHT11.h>

 

dht11 DHT11;

 

#define DHT11PIN 2

 

void setup()

{

  Serial.begin(9600);

}

 

void loop()

{

  Serial.println("n");

 

  int chk = DHT11.read(DHT11PIN);

 

  Serial.print("Read sensor: ");

  switch (chk)

  {

    case DHTLIB_OK:

        Serial.println("OK");

        break;

    case DHTLIB_ERROR_CHECKSUM:

        Serial.println("Checksum error");

        break;

    case DHTLIB_ERROR_TIMEOUT:

        Serial.println("Time out error");

        break;

    default:

        Serial.println("Unknown error");

        break;

  }

 

  Serial.print("Humidity (%): ");

  Serial.println((float)DHT11.humidity, 2);

 

  Serial.print("Temperature (oC): ");

  Serial.println((float)DHT11.temperature, 2);

 

  delay(2000);

}

 

6. Check the Results. After the sketch is successfully uploaded, let's open the Serial Monitor. You can see similar information as following:

aeProduct.getSubject()

 

Download information

https://drive.google.com/?usp=folder&authuser=0&usp=folder#folders/0BzxrU4QvH7jEd3ZJTVdnNUpXNVE

Find EB - Temperature and Humidity Sensor Material.zip to download schematic and other material.

 

 

about us 02

This product was added to our catalog on Tuesday 11 February, 2014.

Your IP Address is: 54.221.93.187
Copyright © 2017 Maker Studio