DHT11 Humidity Temperature Sensor Brick

4.00

This brick includes a DHT11Temperature & Humidity Sensor.Its feature is that a temperature & humidity sensor complex with a calibrated digital signal output. By using the exclusive digital-signal-acquisition technique and temperature & humidity sensing technology, it ensures high reliability and excellent long-term stability.

Laost otsas

Kirjeldus

This temperature & humidity sensor provides a pre-calibrated digital output. A unique capacitive sensor element measures relative humidity and the temperature is measured by a negative temperature coefficient (NTC) thermistor. It has excellent reliability and long term stability. Please note that this sensor will not work for temperatures below 0 degree.

Connect the + pin to 5v and – pin to GND, S pin will output the temperature & humidity data

 

Features

  • Relative Humidity and temperature measurement
  • Full range temperature compensation calibrated
  • Digital signal Long term stability
  • Long transmission distance
  • Low power consumption

 

Programming

Connect the Temperature and Humidity sensor to iteaduino D0.Then you can use the following programme to gain the temperature and humidity of the environment. The code is for iteaduino only.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#define DHT11_PIN 0 // ADC0  
byte read_dht11_dat()
byte i = 0;
  byte result=0;
  for(i=0; i< 8; i++)
  {    
      while(!(PINC & _BV(DHT11_PIN))); // wait for 50us delayMicroseconds(30);  
      if(PINC & _BV(DHT11_PIN)) result |=(1<<(7-i));
      while((PINC & _BV(DHT11_PIN))); // wait '1' finish    
   }
   return result;
}    
void setup()
{
DDRC |= _BV(DHT11_PIN);
PORTC |= _BV(DHT11_PIN);  
Serial.begin(9600);  
Serial.println("Ready");
}
void loop()
{
 byte dht11_dat[5];
 byte dht11_in;
 byte i; // start condition
 // 1. pull-down i/o pin from 18ms
 PORTC &= ~_BV(DHT11_PIN);
 delay(18);
 PORTC |= _BV(DHT11_PIN);
 delayMicroseconds(40);
 DDRC &= ~_BV(DHT11_PIN);
 delayMicroseconds(40);
 dht11_in = PINC & _BV(DHT11_PIN);
 if(dht11_in)
 {
   Serial.println("dht11 start condition 1 not met");
   return;
  }
 delayMicroseconds(80); 
 dht11_in = PINC & _BV(DHT11_PIN); 
 if(!dht11_in)
 {
   Serial.println("dht11 start condition 2 not met");
   return;
 }
 delayMicroseconds(80); // now ready for data reception
 for (i=0; i<5; i++)
   dht11_dat[i] = read_dht11_dat();  
 DDRC |= _BV(DHT11_PIN);
 PORTC |= _BV(DHT11_PIN);
 byte dht11_check_sum = dht11_dat[0]+dht11_dat[1]+dht11_dat[2]+dht11_dat[3];
 if(dht11_dat[4]!= dht11_check_sum)
 {
  Serial.println("DHT11 checksum error");
 }  
 Serial.print("Current humdity = ");
 Serial.print(dht11_dat[0], DEC);
 Serial.print(".");
 Serial.print(dht11_dat[1], DEC);
 Serial.print("% ");
 Serial.print("temperature = ");
 Serial.print(dht11_dat[2], DEC);
 Serial.print(".");
 Serial.print(dht11_dat[3], DEC);
 Serial.println("C ");
 delay(2000);
}

 

Specification

Brick Type Sensor Brick
Brick Interface 3PIN
Brick Power Supply 5V
Board Size 37 × 21 × 1.6mm
Weight 15.00g
Model IM120710021

 

Documents

Schematic
Demo Code

This temperature & humidity sensor provides a pre-calibrated digital output. A unique capacitive sensor element measures relative humidity and the temperature is measured by a negative temperature coefficient (NTC) thermistor. It has excellent reliability and long term stability. Please note that this sensor will not work for temperatures below 0 degree.

Connect the + pin to 5v and – pin to GND, S pin will output the temperature & humidity data

 

Features

  • Relative Humidity and temperature measurement
  • Full range temperature compensation calibrated
  • Digital signal Long term stability
  • Long transmission distance
  • Low power consumption

 

Programming

Connect the Temperature and Humidity sensor to iteaduino D0.Then you can use the following programme to gain the temperature and humidity of the environment. The code is for iteaduino only.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#define DHT11_PIN 0 // ADC0  
byte read_dht11_dat()
byte i = 0;
  byte result=0;
  for(i=0; i< 8; i++)
  {    
      while(!(PINC & _BV(DHT11_PIN))); // wait for 50us delayMicroseconds(30);  
      if(PINC & _BV(DHT11_PIN)) result |=(1<<(7-i));
      while((PINC & _BV(DHT11_PIN))); // wait '1' finish    
   }
   return result;
}    
void setup()
{
DDRC |= _BV(DHT11_PIN);
PORTC |= _BV(DHT11_PIN);  
Serial.begin(9600);  
Serial.println("Ready");
}
void loop()
{
 byte dht11_dat[5];
 byte dht11_in;
 byte i; // start condition
 // 1. pull-down i/o pin from 18ms
 PORTC &= ~_BV(DHT11_PIN);
 delay(18);
 PORTC |= _BV(DHT11_PIN);
 delayMicroseconds(40);
 DDRC &= ~_BV(DHT11_PIN);
 delayMicroseconds(40);
 dht11_in = PINC & _BV(DHT11_PIN);
 if(dht11_in)
 {
   Serial.println("dht11 start condition 1 not met");
   return;
  }
 delayMicroseconds(80); 
 dht11_in = PINC & _BV(DHT11_PIN); 
 if(!dht11_in)
 {
   Serial.println("dht11 start condition 2 not met");
   return;
 }
 delayMicroseconds(80); // now ready for data reception
 for (i=0; i<5; i++)
   dht11_dat[i] = read_dht11_dat();  
 DDRC |= _BV(DHT11_PIN);
 PORTC |= _BV(DHT11_PIN);
 byte dht11_check_sum = dht11_dat[0]+dht11_dat[1]+dht11_dat[2]+dht11_dat[3];
 if(dht11_dat[4]!= dht11_check_sum)
 {
  Serial.println("DHT11 checksum error");
 }  
 Serial.print("Current humdity = ");
 Serial.print(dht11_dat[0], DEC);
 Serial.print(".");
 Serial.print(dht11_dat[1], DEC);
 Serial.print("% ");
 Serial.print("temperature = ");
 Serial.print(dht11_dat[2], DEC);
 Serial.print(".");
 Serial.print(dht11_dat[3], DEC);
 Serial.println("C ");
 delay(2000);
}

 

Specification

Brick Type Sensor Brick
Brick Interface 3PIN
Brick Power Supply 5V
Board Size 37 × 21 × 1.6mm
Weight 15.00g
Model IM120710021

 

Documents

Schematic
Demo Code

Lisainfo

Kaal 15 g
Mõõtmed 37 × 21 × 1.6 mm

Arvustused

Tooteülevaateid veel ei ole.

Ole esimene, kes hindab toodet “DHT11 Humidity Temperature Sensor Brick”

Sinu e-postiaadressi ei avaldata. Nõutavad väljad on tähistatud *-ga

This site uses Akismet to reduce spam. Learn how your comment data is processed.